--- license: mit tags: - cifar10 - image-classification - subset - computer-vision source_datasets: - tanganke/cifar10 task_categories: - image-classification --- # CIFAR-10 — Subset Stratified random subset of [CIFAR-10](https://www.cs.toronto.edu/~kriz/cifar.html). | Split | Rows | Per class | |------------|-----------|-----------| | train | 5,000 | 500 | | test | 1,000 | 100 | | validation | 500 | 50 | **Classes:** airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck **Images:** 32 × 32 RGB | **Seed:** 42 ## Label Map | ID | Class | ID | Class | |----|------------|----|-------| | 0 | airplane | 5 | dog | | 1 | automobile | 6 | frog | | 2 | bird | 7 | horse | | 3 | cat | 8 | ship | | 4 | deer | 9 | truck | ## Usage ```python from datasets import load_dataset ds = load_dataset("Chiranjeev007/CIFAR-10_Subset") print(ds) # DatasetDict({ # train: Dataset(num_rows: 5000), # validation: Dataset(num_rows: 500), # test: Dataset(num_rows: 1000) # }) sample = ds["train"][0] sample["image"] # PIL Image 32×32 RGB sample["label"] # int 0–9 ```