Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
tags:
|
| 6 |
+
- image-classification
|
| 7 |
+
- cifar-10
|
| 8 |
+
- computer-vision
|
| 9 |
+
- data-centric-ai
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# CIFAR-10 Subset
|
| 13 |
+
|
| 14 |
+
This dataset contains a subset of the CIFAR-10 image classification dataset.
|
| 15 |
+
|
| 16 |
+
## Dataset Description
|
| 17 |
+
|
| 18 |
+
A curated subset of the CIFAR-10 dataset useful for demonstrating image classification and data quality techniques without requiring the full dataset.
|
| 19 |
+
|
| 20 |
+
## Usage
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
# Download the dataset
|
| 24 |
+
wget https://huggingface.co/datasets/Cleanlab/cifar-10-subset/resolve/main/CIFAR-10-subset.zip
|
| 25 |
+
unzip CIFAR-10-subset.zip
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from huggingface_hub import hf_hub_download
|
| 30 |
+
|
| 31 |
+
# Download the zip file
|
| 32 |
+
file_path = hf_hub_download(
|
| 33 |
+
repo_id="Cleanlab/cifar-10-subset",
|
| 34 |
+
filename="CIFAR-10-subset.zip",
|
| 35 |
+
repo_type="dataset"
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
# Extract and use
|
| 39 |
+
import zipfile
|
| 40 |
+
with zipfile.ZipFile(file_path, "r") as zip_ref:
|
| 41 |
+
zip_ref.extractall("cifar-10-subset")
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## License
|
| 45 |
+
|
| 46 |
+
MIT License
|