jkdxbns/autonomous-driving-carla
CARLA Autonomous Driving Dataset Custom datasets for autonomous driving in CARLA simulator Created for CMPE 789 - Robot Perception at Rochester Institute of Technology ๐ Dataset Overview This repository contains two custom-generated datasets from the CARLA 0.9.15 simulator for training autonomous driving perception models: Dataset Task Images Format Size YOLO Dataset Object Detection 4,000 YOLOv8/v11 ~1.2 GB UFLD Dataset Lane Detection 10โฆ See the full description on the dataset page: https://huggingface.co/datasets/jkdxbns/autonomous-driving-carla.
CARLA Autonomous Driving Dataset
<div align="center">
   
Custom datasets for autonomous driving in CARLA simulator
Created for CMPE 789 - Robot Perception at Rochester Institute of Technology
</div>
๐ Dataset Overview
This repository contains two custom-generated datasets from the CARLA 0.9.15 simulator for training autonomous driving perception models:
๐ YOLO Object Detection Dataset
Description
Custom object detection dataset generated from CARLA Town01 with optimized graphics settings. Contains annotations for vehicles, pedestrians, traffic lights, and speed limit signs.
Classes
Total Annotations: 6,578
Split Distribution
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ YOLO Dataset Splits โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Train (70.3%) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 2,812 โ
โ Val (19.8%) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 790 โ
โ Test (9.9%) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 398 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโClass Distribution Chart
Class Distribution (Total Annotations)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
pedestrian โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 3,329 (50.6%)
vehicle โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 2,797 (42.5%)
traffic_light โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 409 (6.2%)
speed_limit โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 43 (0.7%)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโFormat
Standard YOLO format with normalized bounding boxes:
<class_id> <x_center> <y_center> <width> <height>Example:
0 0.499978 0.660904 0.117395 0.253719
1 0.726564 0.544706 0.078319 0.045380
2 0.545117 0.490625 0.004297 0.028472Directory Structure
yolo_dataset/
โโโ train/
โ โโโ images/ # 2,812 JPG images (1640ร590)
โ โโโ labels/ # 2,812 TXT label files
โโโ val/
โ โโโ images/ # 790 JPG images
โ โโโ labels/ # 790 TXT label files
โโโ test/
โ โโโ images/ # 398 JPG images
โ โโโ labels/ # 398 TXT label files
โโโ dataset.yaml # YOLO configuration file
โโโ classes.json # Class ID mapping๐ฃ๏ธ UFLD Lane Detection Dataset
Description
Lane detection dataset in TuSimple-like format, generated from CARLA Town01 for training Ultra-Fast Lane Detection (UFLD) models. Contains polyline annotations for left and right lane boundaries.
Split Distribution
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ UFLD Dataset Splits โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Train (70%) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 7,000 โ
โ Val (20%) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 2,000 โ
โ Test (10%) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 1,000 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโAnnotation Format
Each image has:
- Polyline annotations (
.lines.txt): X,Y coordinate pairs for lane boundaries - Segmentation labels (
.png): Pixel-wise lane masks - Ground truth list (
train_gt.txt,val_gt.txt): Image paths with lane existence flags
Ground Truth Format:
<image_path> <label_path> <lane1_exist> <lane2_exist> <lane3_exist> <lane4_exist>Example:
/images/train/000000.jpg /labels/train/000000.png 1 1 0 0(Two lanes detected: left and right)
Directory Structure
ufld_dataset/
โโโ annotations/
โ โโโ train/ # 7,000 .lines.txt files
โ โโโ val/ # 2,000 .lines.txt files
โ โโโ test/ # 1,000 .lines.txt files
โโโ images_train.zip # 7,000 JPG images (2.3 GB)
โโโ images_val.zip # 2,000 JPG images (647 MB)
โโโ images_test.zip # 1,000 JPG images (325 MB)
โโโ labels_train.zip # 7,000 PNG segmentation masks (18 MB)
โโโ labels_val.zip # 2,000 PNG segmentation masks (5.1 MB)
โโโ labels_test.zip # 1,000 PNG segmentation masks (2.6 MB)
โโโ list/
โโโ train_gt.txt # Training split ground truth
โโโ val_gt.txt # Validation split ground truth
โโโ test.txt # Test image listNote: Images and labels are provided as ZIP files to reduce file count. Extract after downloading.
๐ฅ Download Instructions
Using Hugging Face CLI
# Install huggingface_hub if needed
pip install huggingface_hub
# Download YOLO dataset (ready to use)
huggingface-cli download jkdxbns/autonomous-driving-carla yolo_dataset --repo-type dataset --local-dir ./
# Download UFLD dataset
huggingface-cli download jkdxbns/autonomous-driving-carla ufld_dataset --repo-type dataset --local-dir ./Extract UFLD ZIP Files
cd ufld_dataset
# Extract images
unzip images_train.zip -d .
unzip images_val.zip -d .
unzip images_test.zip -d .
# Extract labels
unzip labels_train.zip -d .
unzip labels_val.zip -d .
unzip labels_test.zip -d .Using Python
from huggingface_hub import snapshot_download
# Download entire dataset
snapshot_download(
repo_id="jkdxbns/autonomous-driving-carla",
repo_type="dataset",
local_dir="./datasets"
)๐ผ๏ธ Image Specifications
๐ฏ Intended Use
These datasets are designed for:
- Training object detection models (YOLO, Faster R-CNN, etc.) for autonomous driving
- Training lane detection models (UFLD, LaneNet, etc.)
- Research in simulation-to-real transfer learning
- Educational purposes in robotics and computer vision courses
- Benchmarking perception algorithms in controlled environments
๐ Training Results
Models trained on these datasets achieve:
Pre-trained weights available at: ๐ค jkdxbns/autonomous-driving-carla
๐ Citation
If you use this dataset in your research, please cite:
@misc{carla_autonomous_driving_dataset_2024,
author = {Jatin Khokhani},
title = {CARLA Autonomous Driving Dataset},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/jkdxbns/autonomous-driving-carla}
}๐ License
This dataset is released under the MIT License.
๐ Related Resources
- GitHub Repository: autonomous-driving-carla
- Pre-trained Models: Hugging Face Models
- CARLA Simulator: carla.org
- UFLD Paper: Ultra Fast Structure-aware Deep Lane Detection
<div align="center">
Created with โค๏ธ for CMPE 789 - Robot Perception @ RIT
</div>
