Datasets:
image imagewidth (px) 25 243 | class_id int32 0 34 | original_path stringlengths 49 49 | source_split stringclasses 1
value | track_id stringclasses 798
values | width int32 25 243 | height int32 25 225 | roi_x1 int32 3 20 | roi_y1 int32 5 20 | roi_x2 int32 20 223 | roi_y2 int32 20 205 |
|---|---|---|---|---|---|---|---|---|---|---|
0 | GTSRB/Final_Training/Images/00000/00001_00000.ppm | official_train | 00000/00001 | 29 | 30 | 6 | 6 | 24 | 25 | |
0 | GTSRB/Final_Training/Images/00000/00001_00001.ppm | official_train | 00000/00001 | 30 | 30 | 6 | 5 | 25 | 25 | |
0 | GTSRB/Final_Training/Images/00000/00001_00002.ppm | official_train | 00000/00001 | 30 | 29 | 6 | 5 | 25 | 24 | |
0 | GTSRB/Final_Training/Images/00000/00001_00003.ppm | official_train | 00000/00001 | 31 | 31 | 6 | 6 | 26 | 26 | |
0 | GTSRB/Final_Training/Images/00000/00001_00004.ppm | official_train | 00000/00001 | 31 | 31 | 5 | 5 | 26 | 26 | |
0 | GTSRB/Final_Training/Images/00000/00001_00005.ppm | official_train | 00000/00001 | 32 | 32 | 6 | 6 | 27 | 27 | |
0 | GTSRB/Final_Training/Images/00000/00001_00006.ppm | official_train | 00000/00001 | 33 | 34 | 5 | 6 | 28 | 29 | |
0 | GTSRB/Final_Training/Images/00000/00001_00007.ppm | official_train | 00000/00001 | 34 | 33 | 6 | 5 | 29 | 28 | |
0 | GTSRB/Final_Training/Images/00000/00001_00008.ppm | official_train | 00000/00001 | 33 | 33 | 5 | 5 | 28 | 28 | |
0 | GTSRB/Final_Training/Images/00000/00001_00009.ppm | official_train | 00000/00001 | 34 | 33 | 6 | 5 | 29 | 28 | |
0 | GTSRB/Final_Training/Images/00000/00001_00010.ppm | official_train | 00000/00001 | 36 | 35 | 6 | 5 | 30 | 29 | |
0 | GTSRB/Final_Training/Images/00000/00001_00011.ppm | official_train | 00000/00001 | 35 | 36 | 5 | 6 | 30 | 31 | |
0 | GTSRB/Final_Training/Images/00000/00001_00012.ppm | official_train | 00000/00001 | 36 | 36 | 6 | 6 | 31 | 31 | |
0 | GTSRB/Final_Training/Images/00000/00001_00013.ppm | official_train | 00000/00001 | 36 | 36 | 5 | 6 | 31 | 31 | |
0 | GTSRB/Final_Training/Images/00000/00001_00014.ppm | official_train | 00000/00001 | 37 | 36 | 5 | 5 | 31 | 31 | |
0 | GTSRB/Final_Training/Images/00000/00001_00015.ppm | official_train | 00000/00001 | 38 | 38 | 5 | 6 | 32 | 33 | |
0 | GTSRB/Final_Training/Images/00000/00001_00016.ppm | official_train | 00000/00001 | 38 | 39 | 5 | 6 | 33 | 34 | |
0 | GTSRB/Final_Training/Images/00000/00001_00017.ppm | official_train | 00000/00001 | 39 | 41 | 5 | 6 | 34 | 35 | |
0 | GTSRB/Final_Training/Images/00000/00001_00018.ppm | official_train | 00000/00001 | 40 | 41 | 5 | 6 | 35 | 36 | |
0 | GTSRB/Final_Training/Images/00000/00001_00019.ppm | official_train | 00000/00001 | 42 | 43 | 5 | 5 | 36 | 37 | |
0 | GTSRB/Final_Training/Images/00000/00001_00020.ppm | official_train | 00000/00001 | 43 | 43 | 6 | 5 | 38 | 38 | |
0 | GTSRB/Final_Training/Images/00000/00001_00021.ppm | official_train | 00000/00001 | 45 | 45 | 6 | 5 | 40 | 40 | |
0 | GTSRB/Final_Training/Images/00000/00001_00022.ppm | official_train | 00000/00001 | 45 | 47 | 5 | 6 | 40 | 42 | |
0 | GTSRB/Final_Training/Images/00000/00001_00023.ppm | official_train | 00000/00001 | 47 | 48 | 5 | 5 | 41 | 42 | |
0 | GTSRB/Final_Training/Images/00000/00001_00024.ppm | official_train | 00000/00001 | 49 | 49 | 6 | 5 | 44 | 44 | |
0 | GTSRB/Final_Training/Images/00000/00001_00025.ppm | official_train | 00000/00001 | 50 | 52 | 5 | 5 | 45 | 47 | |
0 | GTSRB/Final_Training/Images/00000/00001_00026.ppm | official_train | 00000/00001 | 53 | 54 | 6 | 5 | 48 | 49 | |
0 | GTSRB/Final_Training/Images/00000/00001_00027.ppm | official_train | 00000/00001 | 55 | 56 | 6 | 5 | 50 | 51 | |
0 | GTSRB/Final_Training/Images/00000/00001_00028.ppm | official_train | 00000/00001 | 57 | 59 | 5 | 6 | 51 | 54 | |
0 | GTSRB/Final_Training/Images/00000/00001_00029.ppm | official_train | 00000/00001 | 59 | 61 | 5 | 5 | 54 | 55 | |
0 | GTSRB/Final_Training/Images/00000/00002_00000.ppm | official_train | 00000/00002 | 27 | 26 | 6 | 5 | 22 | 21 | |
0 | GTSRB/Final_Training/Images/00000/00002_00001.ppm | official_train | 00000/00002 | 27 | 28 | 5 | 6 | 22 | 23 | |
0 | GTSRB/Final_Training/Images/00000/00002_00002.ppm | official_train | 00000/00002 | 27 | 28 | 5 | 6 | 22 | 23 | |
0 | GTSRB/Final_Training/Images/00000/00002_00003.ppm | official_train | 00000/00002 | 30 | 29 | 6 | 5 | 25 | 24 | |
0 | GTSRB/Final_Training/Images/00000/00002_00004.ppm | official_train | 00000/00002 | 30 | 29 | 6 | 5 | 25 | 24 | |
0 | GTSRB/Final_Training/Images/00000/00002_00005.ppm | official_train | 00000/00002 | 31 | 31 | 6 | 6 | 26 | 26 | |
0 | GTSRB/Final_Training/Images/00000/00002_00006.ppm | official_train | 00000/00002 | 30 | 30 | 5 | 5 | 25 | 25 | |
0 | GTSRB/Final_Training/Images/00000/00002_00007.ppm | official_train | 00000/00002 | 32 | 31 | 6 | 5 | 27 | 26 | |
0 | GTSRB/Final_Training/Images/00000/00002_00008.ppm | official_train | 00000/00002 | 31 | 32 | 5 | 6 | 26 | 27 | |
0 | GTSRB/Final_Training/Images/00000/00002_00009.ppm | official_train | 00000/00002 | 34 | 33 | 6 | 5 | 29 | 28 | |
0 | GTSRB/Final_Training/Images/00000/00002_00010.ppm | official_train | 00000/00002 | 34 | 34 | 5 | 5 | 29 | 29 | |
0 | GTSRB/Final_Training/Images/00000/00002_00011.ppm | official_train | 00000/00002 | 35 | 35 | 5 | 5 | 30 | 30 | |
0 | GTSRB/Final_Training/Images/00000/00002_00012.ppm | official_train | 00000/00002 | 38 | 37 | 6 | 5 | 33 | 32 | |
0 | GTSRB/Final_Training/Images/00000/00002_00013.ppm | official_train | 00000/00002 | 39 | 39 | 6 | 6 | 34 | 34 | |
0 | GTSRB/Final_Training/Images/00000/00002_00014.ppm | official_train | 00000/00002 | 40 | 39 | 6 | 5 | 35 | 34 | |
0 | GTSRB/Final_Training/Images/00000/00002_00015.ppm | official_train | 00000/00002 | 41 | 41 | 6 | 6 | 36 | 36 | |
0 | GTSRB/Final_Training/Images/00000/00002_00016.ppm | official_train | 00000/00002 | 44 | 44 | 6 | 6 | 39 | 39 | |
0 | GTSRB/Final_Training/Images/00000/00002_00017.ppm | official_train | 00000/00002 | 46 | 45 | 6 | 5 | 41 | 40 | |
0 | GTSRB/Final_Training/Images/00000/00002_00018.ppm | official_train | 00000/00002 | 48 | 47 | 6 | 5 | 43 | 42 | |
0 | GTSRB/Final_Training/Images/00000/00002_00019.ppm | official_train | 00000/00002 | 51 | 50 | 6 | 5 | 46 | 45 | |
0 | GTSRB/Final_Training/Images/00000/00002_00020.ppm | official_train | 00000/00002 | 52 | 52 | 5 | 5 | 47 | 47 | |
0 | GTSRB/Final_Training/Images/00000/00002_00021.ppm | official_train | 00000/00002 | 55 | 55 | 6 | 6 | 50 | 50 | |
0 | GTSRB/Final_Training/Images/00000/00002_00022.ppm | official_train | 00000/00002 | 59 | 59 | 6 | 6 | 54 | 54 | |
0 | GTSRB/Final_Training/Images/00000/00002_00023.ppm | official_train | 00000/00002 | 62 | 63 | 5 | 6 | 57 | 58 | |
0 | GTSRB/Final_Training/Images/00000/00002_00024.ppm | official_train | 00000/00002 | 69 | 70 | 7 | 6 | 63 | 64 | |
0 | GTSRB/Final_Training/Images/00000/00002_00025.ppm | official_train | 00000/00002 | 74 | 75 | 6 | 6 | 68 | 69 | |
0 | GTSRB/Final_Training/Images/00000/00002_00026.ppm | official_train | 00000/00002 | 83 | 85 | 7 | 8 | 76 | 78 | |
0 | GTSRB/Final_Training/Images/00000/00002_00027.ppm | official_train | 00000/00002 | 92 | 95 | 8 | 9 | 84 | 87 | |
0 | GTSRB/Final_Training/Images/00000/00002_00028.ppm | official_train | 00000/00002 | 107 | 108 | 10 | 9 | 98 | 99 | |
0 | GTSRB/Final_Training/Images/00000/00002_00029.ppm | official_train | 00000/00002 | 122 | 124 | 11 | 11 | 112 | 114 | |
0 | GTSRB/Final_Training/Images/00000/00003_00000.ppm | official_train | 00000/00003 | 27 | 28 | 5 | 6 | 22 | 23 | |
0 | GTSRB/Final_Training/Images/00000/00003_00001.ppm | official_train | 00000/00003 | 28 | 29 | 5 | 6 | 22 | 23 | |
0 | GTSRB/Final_Training/Images/00000/00003_00002.ppm | official_train | 00000/00003 | 29 | 28 | 6 | 5 | 24 | 23 | |
0 | GTSRB/Final_Training/Images/00000/00003_00003.ppm | official_train | 00000/00003 | 29 | 30 | 5 | 6 | 24 | 25 | |
0 | GTSRB/Final_Training/Images/00000/00003_00004.ppm | official_train | 00000/00003 | 28 | 30 | 5 | 6 | 23 | 25 | |
0 | GTSRB/Final_Training/Images/00000/00003_00005.ppm | official_train | 00000/00003 | 31 | 31 | 6 | 6 | 25 | 25 | |
0 | GTSRB/Final_Training/Images/00000/00003_00006.ppm | official_train | 00000/00003 | 33 | 32 | 6 | 5 | 28 | 27 | |
0 | GTSRB/Final_Training/Images/00000/00003_00007.ppm | official_train | 00000/00003 | 31 | 33 | 6 | 6 | 26 | 28 | |
0 | GTSRB/Final_Training/Images/00000/00003_00008.ppm | official_train | 00000/00003 | 33 | 33 | 5 | 5 | 28 | 28 | |
0 | GTSRB/Final_Training/Images/00000/00003_00009.ppm | official_train | 00000/00003 | 34 | 34 | 5 | 5 | 29 | 29 | |
0 | GTSRB/Final_Training/Images/00000/00003_00010.ppm | official_train | 00000/00003 | 36 | 35 | 6 | 5 | 31 | 30 | |
0 | GTSRB/Final_Training/Images/00000/00003_00011.ppm | official_train | 00000/00003 | 37 | 37 | 6 | 6 | 31 | 31 | |
0 | GTSRB/Final_Training/Images/00000/00003_00012.ppm | official_train | 00000/00003 | 37 | 36 | 5 | 5 | 31 | 31 | |
0 | GTSRB/Final_Training/Images/00000/00003_00013.ppm | official_train | 00000/00003 | 38 | 39 | 5 | 6 | 32 | 33 | |
0 | GTSRB/Final_Training/Images/00000/00003_00014.ppm | official_train | 00000/00003 | 40 | 39 | 6 | 5 | 35 | 34 | |
0 | GTSRB/Final_Training/Images/00000/00003_00015.ppm | official_train | 00000/00003 | 41 | 40 | 6 | 5 | 36 | 35 | |
0 | GTSRB/Final_Training/Images/00000/00003_00016.ppm | official_train | 00000/00003 | 43 | 44 | 6 | 6 | 38 | 38 | |
0 | GTSRB/Final_Training/Images/00000/00003_00017.ppm | official_train | 00000/00003 | 43 | 45 | 5 | 5 | 38 | 40 | |
0 | GTSRB/Final_Training/Images/00000/00003_00018.ppm | official_train | 00000/00003 | 47 | 46 | 6 | 5 | 42 | 41 | |
0 | GTSRB/Final_Training/Images/00000/00003_00019.ppm | official_train | 00000/00003 | 50 | 50 | 5 | 5 | 45 | 45 | |
0 | GTSRB/Final_Training/Images/00000/00003_00020.ppm | official_train | 00000/00003 | 51 | 52 | 5 | 5 | 46 | 47 | |
0 | GTSRB/Final_Training/Images/00000/00003_00021.ppm | official_train | 00000/00003 | 53 | 54 | 5 | 5 | 48 | 49 | |
0 | GTSRB/Final_Training/Images/00000/00003_00022.ppm | official_train | 00000/00003 | 58 | 57 | 5 | 5 | 52 | 51 | |
0 | GTSRB/Final_Training/Images/00000/00003_00023.ppm | official_train | 00000/00003 | 62 | 60 | 5 | 6 | 56 | 55 | |
0 | GTSRB/Final_Training/Images/00000/00003_00024.ppm | official_train | 00000/00003 | 64 | 61 | 5 | 5 | 59 | 56 | |
0 | GTSRB/Final_Training/Images/00000/00003_00025.ppm | official_train | 00000/00003 | 70 | 69 | 6 | 7 | 64 | 62 | |
0 | GTSRB/Final_Training/Images/00000/00003_00026.ppm | official_train | 00000/00003 | 76 | 75 | 6 | 6 | 70 | 69 | |
0 | GTSRB/Final_Training/Images/00000/00003_00027.ppm | official_train | 00000/00003 | 85 | 84 | 8 | 8 | 78 | 76 | |
0 | GTSRB/Final_Training/Images/00000/00003_00028.ppm | official_train | 00000/00003 | 94 | 93 | 8 | 9 | 86 | 85 | |
0 | GTSRB/Final_Training/Images/00000/00003_00029.ppm | official_train | 00000/00003 | 109 | 104 | 10 | 9 | 100 | 95 | |
0 | GTSRB/Final_Training/Images/00000/00004_00000.ppm | official_train | 00000/00004 | 55 | 59 | 6 | 6 | 50 | 54 | |
0 | GTSRB/Final_Training/Images/00000/00004_00001.ppm | official_train | 00000/00004 | 56 | 60 | 5 | 5 | 50 | 54 | |
0 | GTSRB/Final_Training/Images/00000/00004_00002.ppm | official_train | 00000/00004 | 56 | 60 | 5 | 5 | 51 | 55 | |
0 | GTSRB/Final_Training/Images/00000/00004_00003.ppm | official_train | 00000/00004 | 57 | 61 | 5 | 5 | 52 | 55 | |
0 | GTSRB/Final_Training/Images/00000/00004_00004.ppm | official_train | 00000/00004 | 59 | 62 | 6 | 5 | 54 | 57 | |
0 | GTSRB/Final_Training/Images/00000/00004_00005.ppm | official_train | 00000/00004 | 59 | 63 | 5 | 5 | 54 | 58 | |
0 | GTSRB/Final_Training/Images/00000/00004_00006.ppm | official_train | 00000/00004 | 59 | 66 | 5 | 6 | 54 | 60 | |
0 | GTSRB/Final_Training/Images/00000/00004_00007.ppm | official_train | 00000/00004 | 63 | 68 | 6 | 6 | 57 | 62 | |
0 | GTSRB/Final_Training/Images/00000/00004_00008.ppm | official_train | 00000/00004 | 63 | 69 | 6 | 6 | 58 | 63 | |
0 | GTSRB/Final_Training/Images/00000/00004_00009.ppm | official_train | 00000/00004 | 65 | 70 | 6 | 6 | 60 | 64 |
GTSRB for PranavX AI Reliability Experiments
This repository repackages the German Traffic Sign Recognition Benchmark (GTSRB) for a traffic-sign classification reliability experiment. It preserves the original PPM image bytes and GTSRB class IDs in Parquet. No image is resized, cropped further, enhanced, or synthetically corrupted here. This is a project-specific derivative split, not a new official GTSRB release or an official benchmark leaderboard split.
The uploader reports receiving written permission for public rehosting of the GTSRB images. The permission text has not been supplied for independent review, so this card does not claim a general redistribution license or permission for downstream users to republish the images. The original public distribution pages do not specify a machine-readable redistribution license. No CC0, MIT, or other open license is claimed for the source images. Consult the original archive and obtain any rights you need before further redistribution.
Purpose and experimental protocol
GTSRB contains cropped images with one traffic sign per image. The original dataset has 43 class IDs. For this project's known-versus-unseen-class experiment, IDs 0–34 are known to the classifier and IDs 35–42 are withheld from classifier training. This 35/8 choice is an experimental protocol, not a property or requirement of the original benchmark. A published traffic-sign OOD study has used a similar GTSRB class-withholding setup: Iyengar et al..
| Split | What it contains | Permitted role in this project |
|---|---|---|
train |
Original training images, IDs 0–34 | Fit the image classifier. |
validation |
Different physical-sign training tracks, IDs 0–34 | Choose the architecture and checkpoint; tune hyperparameters here. |
calibration |
Different physical-sign training tracks, IDs 0–34 | Fit temperature scaling and freeze known-class reliability thresholds. |
unused_ood_train |
Original training images, IDs 35–42 | Archive completeness only. Do not use to fit the classifier or choose OOD thresholds in the claimed unseen-class experiment. |
test_known |
Original official test images, IDs 0–34 | Final evaluation of clean recognition and reliability only. |
test_ood |
Original official test images, IDs 35–42 | Final held-out-class OOD evaluation only. |
Verified row counts are shown in this table:
| Split | Images |
|---|---|
train |
23,940 |
validation |
5,100 |
calibration |
5,159 |
unused_ood_train |
5,010 |
test_known |
11,040 |
test_ood |
1,590 |
Together these are all 39,209 original training images and all 12,630 original test images. The exact per-class counts and source ZIP SHA-256 values are in manifest.json.
The train, validation, and calibration assignments are deterministic and grouped by GTSRB physical-sign track within each known class. The same sign's near-duplicate frames never cross these three splits. Tracks are shuffled per class with the seed and algorithm recorded in manifest.json. The official test set is never used to train, calibrate, or select thresholds. The test images are split into known and unseen classes only after the protocol is fixed.
Withholding eight classes does not make this a complete real-world OOD benchmark. The unseen signs still come from GTSRB's acquisition setting. Live phone images, full road scenes, non-German sign systems, and unrelated objects are outside this benchmark. A full-scene upload needs a detector or manual crop before this classifier can be evaluated fairly.
Data fields
Each row has:
image: the exact original PPM file bytes, exposed as a Hugging FaceImagefeature.class_id: original integer label from GTSRB, unchanged.original_path: path within the corresponding official ZIP.source_split:official_trainorofficial_test.track_id:<class>/<physical-sign-track>for original training images. It is null for ordinary official test images because their ground-truth CSV does not provide the same track key.width,height: original dimensions.roi_x1,roi_y1,roi_x2,roi_y2: original annotated sign region coordinates.
The files are sharded Parquet with embedded images. manifest.json records exact row and track counts by split, source archive SHA-256 values, class counts, and the split seed. The preparation script, prepare.py, validates archive records, image dimensions, and track separation before writing.
Loading and using it
from datasets import load_dataset
ds = load_dataset("Yuvrajg2107/pranavx-gtsrb-reliability")
known_train = ds["train"]
calibration = ds["calibration"]
ood_test = ds["test_ood"]
sample = known_train[0]
print(sample["class_id"], sample["image"].size)
The dataset contains unprocessed images with varying sizes. Resize and normalize inside the model pipeline. Use the same deterministic preprocessing for validation, calibration, testing and single-image demonstrations. Train-time augmentation must apply only to train. Do not merge unused_ood_train into train, and do not retune thresholds after inspecting test_known or test_ood outcomes.
To reproduce the packaged data from the three original ZIPs:
python prepare.py --source "C:\path\to\official_gtsrb_zips" --output "C:\path\to\empty_output_folder"
Required Python packages: datasets, pyarrow, and Pillow. The source files are GTSRB_Final_Training_Images.zip, GTSRB_Final_Test_Images.zip, and GTSRB_Final_Test_GT.zip from the official archive. The output directory must be new or empty. The script does not modify those ZIPs.
Source and limitations
Original dataset: Johannes Stallkamp, Marc Schlipsing, Jan Salmen, and Christian Igel, The German Traffic Sign Recognition Benchmark: A Multi-class Classification Competition, IJCNN 2011, pp. 1453–1460. The maintainers' benchmark page asks users to cite this paper. The original archive identifies the official training and test files.
This collection was designed for traffic-sign recognition of an already cropped sign, not whole-scene detection or deployment in a vehicle. Its images vary in resolution and lighting and may not represent current roads, countries outside Germany, or all sign designs. A model's confidence on a sign does not certify safe driving. Reliability labels in the associated project are research outputs, not operational safety approvals.
Project relationship
This repository is the data input for the PranavX AI Reliability Engine project. The project's own evaluation will report calibrated confidence, uncertainty, OOD scores, selective prediction decisions, error analysis, and failure cases. This dataset card does not claim those results already exist.
- Downloads last month
- 94