CoolFace
Datasetpublic

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.

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes370downloads
Dataset Card

CARLA Autonomous Driving Dataset

<div align="center">

![License: MIT](https://opensource.org/licenses/MIT) ![CARLA 0.9.15](https://carla.org/) ![GitHub](https://github.com/Jkdxbns/autonomous-driving-carla) ![Models](https://huggingface.co/jkdxbns/autonomous-driving-carla)

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:

DatasetTaskImagesFormatSize
YOLO DatasetObject Detection4,000YOLOv8/v11~1.2 GB
UFLD DatasetLane Detection10,000TuSimple-like~3.4 GB

๐Ÿš— 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

Class IDClass NameTotal AnnotationsDescription
0vehicle2,797Cars, trucks, vans
1pedestrian3,329Walking pedestrians
2traffic_light409Traffic signals
3speed_limit43Speed limit signs

Total Annotations: 6,578

Split Distribution

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    YOLO Dataset Splits                          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Train (70.3%)  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  2,812     โ”‚
โ”‚  Val (19.8%)    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘    790     โ”‚
โ”‚  Test (9.9%)    โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘    398     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
SplitImagesVehiclePedestrianTraffic LightSpeed Limit
Train2,8121,9492,25230133
Val790562712775
Test398288365315
Total4,0002,7973,32940943

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.028472

Directory 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     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
SplitImagesPercentage
Train7,00070%
Val2,00020%
Test1,00010%
Total10,000100%

Annotation Format

Each image has:

  1. 1.Polyline annotations (.lines.txt): X,Y coordinate pairs for lane boundaries
  2. 2.Segmentation labels (.png): Pixel-wise lane masks
  3. 3.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 list
Note: Images and labels are provided as ZIP files to reduce file count. Extract after downloading.

๐Ÿ“ฅ Download Instructions

Using Hugging Face CLI

bash
# 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

bash
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

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

PropertyValue
Resolution1640 ร— 590 pixels
FormatJPEG
ColorRGB
FOV150ยฐ (wide-angle)
Camera PositionFront-mounted, 2.4m height
SimulatorCARLA 0.9.15
MapTown01 (optimized graphics)

๐ŸŽฏ 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:

ModelTaskPerformance
YOLO11nObject DetectionmAP50: 0.85+
UFLD ResNet-18Lane DetectionAccuracy: 92%+

Pre-trained weights available at: ๐Ÿค— jkdxbns/autonomous-driving-carla


๐Ÿ“š Citation

If you use this dataset in your research, please cite:

bibtex
@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


<div align="center">

Created with โค๏ธ for CMPE 789 - Robot Perception @ RIT

</div>

jkdxbns/autonomous-driving-carla ยท CoolFace