Datasets:
Tasks:
Image Classification
Modalities:
Image
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
License:
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
annotations_creators:
|
| 3 |
+
- expert-generated
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
license:
|
| 7 |
+
- other
|
| 8 |
+
multilinguality:
|
| 9 |
+
- monolingual
|
| 10 |
+
pretty_name: CIFAR-10
|
| 11 |
+
size_categories:
|
| 12 |
+
- 100K<n<1M
|
| 13 |
+
source_datasets:
|
| 14 |
+
- original
|
| 15 |
+
task_categories:
|
| 16 |
+
- image-classification
|
| 17 |
+
task_ids:
|
| 18 |
+
- multi-class-image-classification
|
| 19 |
+
tags:
|
| 20 |
+
- computer-vision
|
| 21 |
+
- image-classification
|
| 22 |
+
- benchmark
|
| 23 |
+
- cifar
|
| 24 |
+
- object-detection
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
# CIFAR-10 - Object Recognition in Images
|
| 28 |
+
|
| 29 |
+
> Benchmark dataset for object classification.
|
| 30 |
+
> 🖼️ 60,000 32x32 color images
|
| 31 |
+
> 🏷️ 10 classes
|
| 32 |
+
> 📁 Format: PNG, CSV
|
| 33 |
+
> 📦 Files: 4
|
| 34 |
+
> 🧪 Subset of the 80 million tiny images dataset
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## Dataset Summary
|
| 39 |
+
|
| 40 |
+
**CIFAR-10** is a widely used computer vision dataset consisting of 60,000 32x32 color images in 10 mutually exclusive classes. It was created by **Alex Krizhevsky**, **Vinod Nair**, and **Geoffrey Hinton**. The dataset is a labeled subset of the 80 million tiny images dataset and is often used as a benchmark for image classification tasks.
|
| 41 |
+
|
| 42 |
+
This Hugging Face version mirrors the original Kaggle competition structure, including additional junk test images to discourage cheating.
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## Dataset Structure
|
| 47 |
+
|
| 48 |
+
### Files Included
|
| 49 |
+
|
| 50 |
+
| File | Description |
|
| 51 |
+
|----------------------|-----------------------------------------------|
|
| 52 |
+
| `train.7z` | Training images in PNG format (50,000 images) |
|
| 53 |
+
| `test.7z` | Test images in PNG format (300,000 images incl. junk) |
|
| 54 |
+
| `trainLabels.csv` | Training image labels |
|
| 55 |
+
| `sampleSubmission.csv` | Sample format for submission predictions |
|
| 56 |
+
|
| 57 |
+
### Label Classes
|
| 58 |
+
|
| 59 |
+
Each image is labeled with one of the following 10 classes:
|
| 60 |
+
|
| 61 |
+
- airplane
|
| 62 |
+
- automobile
|
| 63 |
+
- bird
|
| 64 |
+
- cat
|
| 65 |
+
- deer
|
| 66 |
+
- dog
|
| 67 |
+
- frog
|
| 68 |
+
- horse
|
| 69 |
+
- ship
|
| 70 |
+
- truck
|
| 71 |
+
|
| 72 |
+
> **Note**: "automobile" includes sedans and SUVs; "truck" includes large trucks only (not pickups).
|
| 73 |
+
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
## Data Splits
|
| 77 |
+
|
| 78 |
+
| Split | Number of Images |
|
| 79 |
+
|---------|------------------|
|
| 80 |
+
| Train | 50,000 |
|
| 81 |
+
| Test | 10,000 (scored) + 290,000 (junk) |
|
| 82 |
+
|
| 83 |
+
**Total:** 300,000 test image predictions are required, though only 10,000 are scored.
|
| 84 |
+
|
| 85 |
+
---
|
| 86 |
+
|
| 87 |
+
## Usage Example
|
| 88 |
+
|
| 89 |
+
```python
|
| 90 |
+
from torchvision.datasets import CIFAR10
|
| 91 |
+
import torchvision.transforms as transforms
|
| 92 |
+
|
| 93 |
+
transform = transforms.Compose([
|
| 94 |
+
transforms.ToTensor()
|
| 95 |
+
])
|
| 96 |
+
|
| 97 |
+
trainset = CIFAR10(root='./data', train=True, download=True, transform=transform)
|
| 98 |
+
testset = CIFAR10(root='./data', train=False, download=True, transform=transform)
|