Datasets:
Add files
Browse files- GENERATION_NOTES.py +3 -0
- README.md +87 -0
- VALIDATION.json +21 -0
- core_test.csv +2 -0
- core_train.csv +5 -0
- core_val.csv +2 -0
- full_test.csv +3 -0
- full_train.csv +9 -0
- full_val.csv +3 -0
- images/sample_00.webp +3 -0
- images/sample_01.webp +3 -0
- images/sample_02.webp +3 -0
- images/sample_03.webp +3 -0
- images/sample_04.webp +3 -0
- images/sample_05.webp +3 -0
- images/sample_06.webp +3 -0
- images/sample_07.webp +3 -0
- images/sample_08.webp +3 -0
- images/sample_09.webp +3 -0
- images/sample_10.webp +3 -0
- images/sample_11.webp +3 -0
- manifest.csv +13 -0
- preview.png +3 -0
- splits/core/test.csv +2 -0
- splits/core/train.csv +5 -0
- splits/core/val.csv +2 -0
- splits/full/test.csv +3 -0
- splits/full/train.csv +9 -0
- splits/full/val.csv +3 -0
GENERATION_NOTES.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Synthetic test fixture generated for Hugging Face ImageFolder.
|
| 2 |
+
# Every image is deterministic, 128x128, and stored as lossless WebP.
|
| 3 |
+
# The numeric badge in each image is its sample index.
|
README.md
CHANGED
|
@@ -1,3 +1,90 @@
|
|
| 1 |
---
|
| 2 |
license: cc0-1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc0-1.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
tags:
|
| 6 |
+
- image
|
| 7 |
+
- synthetic
|
| 8 |
+
- imagefolder
|
| 9 |
+
size_categories:
|
| 10 |
+
- n<1K
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: full
|
| 13 |
+
default: true
|
| 14 |
+
metadata_filenames:
|
| 15 |
+
- full_train.csv
|
| 16 |
+
- full_val.csv
|
| 17 |
+
- full_test.csv
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path:
|
| 21 |
+
- images/*.webp
|
| 22 |
+
- full_train.csv
|
| 23 |
+
- split: validation
|
| 24 |
+
path:
|
| 25 |
+
- images/*.webp
|
| 26 |
+
- full_val.csv
|
| 27 |
+
- split: test
|
| 28 |
+
path:
|
| 29 |
+
- images/*.webp
|
| 30 |
+
- full_test.csv
|
| 31 |
+
- config_name: core
|
| 32 |
+
metadata_filenames:
|
| 33 |
+
- core_train.csv
|
| 34 |
+
- core_val.csv
|
| 35 |
+
- core_test.csv
|
| 36 |
+
data_files:
|
| 37 |
+
- split: train
|
| 38 |
+
path:
|
| 39 |
+
- images/*.webp
|
| 40 |
+
- core_train.csv
|
| 41 |
+
- split: validation
|
| 42 |
+
path:
|
| 43 |
+
- images/*.webp
|
| 44 |
+
- core_val.csv
|
| 45 |
+
- split: test
|
| 46 |
+
path:
|
| 47 |
+
- images/*.webp
|
| 48 |
+
- core_test.csv
|
| 49 |
---
|
| 50 |
+
|
| 51 |
+
# Tiny overlapping ImageFolder demo
|
| 52 |
+
|
| 53 |
+
A tiny synthetic repository for testing Hugging Face Dataset Viewer.
|
| 54 |
+
|
| 55 |
+
- 12 lossless WebP images, each exactly 128×128.
|
| 56 |
+
- `full`: 8 train, 2 validation, 2 test.
|
| 57 |
+
- `core`: 4 train, 1 validation, 1 test.
|
| 58 |
+
- `core` is a subset of `full`.
|
| 59 |
+
- Images exist once in `images/`.
|
| 60 |
+
- `manifest.csv` is the canonical manifest.
|
| 61 |
+
- `splits/` contains lightweight source indices.
|
| 62 |
+
- Root `full_*.csv` and `core_*.csv` are materialized metadata files used by ImageFolder.
|
| 63 |
+
|
| 64 |
+
## Expected Viewer
|
| 65 |
+
|
| 66 |
+
The Viewer should show:
|
| 67 |
+
|
| 68 |
+
- subsets: `full`, `core`
|
| 69 |
+
- splits: `train`, `validation`, `test`
|
| 70 |
+
- an `image` column with thumbnails
|
| 71 |
+
- metadata such as `shape`, `background`, and `caption`
|
| 72 |
+
|
| 73 |
+
## Load
|
| 74 |
+
|
| 75 |
+
```python
|
| 76 |
+
from datasets import load_dataset
|
| 77 |
+
|
| 78 |
+
full = load_dataset("YOUR_USERNAME/YOUR_DATASET", "full")
|
| 79 |
+
core = load_dataset("YOUR_USERNAME/YOUR_DATASET", "core")
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
## Upload
|
| 83 |
+
|
| 84 |
+
Run from this directory:
|
| 85 |
+
|
| 86 |
+
```bash
|
| 87 |
+
pip install -U huggingface_hub
|
| 88 |
+
hf auth login
|
| 89 |
+
hf upload YOUR_USERNAME/YOUR_DATASET . . --repo-type=dataset
|
| 90 |
+
```
|
VALIDATION.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"images": 12,
|
| 3 |
+
"image_size": [
|
| 4 |
+
128,
|
| 5 |
+
128
|
| 6 |
+
],
|
| 7 |
+
"format": "WebP lossless",
|
| 8 |
+
"image_feature_detected": true,
|
| 9 |
+
"configs": {
|
| 10 |
+
"full": {
|
| 11 |
+
"train": 8,
|
| 12 |
+
"validation": 2,
|
| 13 |
+
"test": 2
|
| 14 |
+
},
|
| 15 |
+
"core": {
|
| 16 |
+
"train": 4,
|
| 17 |
+
"validation": 1,
|
| 18 |
+
"test": 1
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
core_test.csv
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
file_name,sample_id,shape,background,has_stripes,is_core,subset,split,caption
|
| 2 |
+
images/sample_10.webp,synthetic-10,square,sky,1,1,core,test,A square on a sky background with diagonal stripes.
|
core_train.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
file_name,sample_id,shape,background,has_stripes,is_core,subset,split,caption
|
| 2 |
+
images/sample_00.webp,synthetic-00,circle,coral,1,1,core,train,A circle on a coral background with diagonal stripes.
|
| 3 |
+
images/sample_01.webp,synthetic-01,square,mint,0,1,core,train,A square on a mint background.
|
| 4 |
+
images/sample_03.webp,synthetic-03,circle,sand,0,1,core,train,A circle on a sand background.
|
| 5 |
+
images/sample_04.webp,synthetic-04,square,coral,1,1,core,train,A square on a coral background with diagonal stripes.
|
core_val.csv
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
file_name,sample_id,shape,background,has_stripes,is_core,subset,split,caption
|
| 2 |
+
images/sample_08.webp,synthetic-08,triangle,coral,1,1,core,validation,A triangle on a coral background with diagonal stripes.
|
full_test.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
file_name,sample_id,shape,background,has_stripes,is_core,subset,split,caption
|
| 2 |
+
images/sample_10.webp,synthetic-10,square,sky,1,1,full,test,A square on a sky background with diagonal stripes.
|
| 3 |
+
images/sample_11.webp,synthetic-11,triangle,sand,0,0,full,test,A triangle on a sand background.
|
full_train.csv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
file_name,sample_id,shape,background,has_stripes,is_core,subset,split,caption
|
| 2 |
+
images/sample_00.webp,synthetic-00,circle,coral,1,1,full,train,A circle on a coral background with diagonal stripes.
|
| 3 |
+
images/sample_01.webp,synthetic-01,square,mint,0,1,full,train,A square on a mint background.
|
| 4 |
+
images/sample_02.webp,synthetic-02,triangle,sky,1,0,full,train,A triangle on a sky background with diagonal stripes.
|
| 5 |
+
images/sample_03.webp,synthetic-03,circle,sand,0,1,full,train,A circle on a sand background.
|
| 6 |
+
images/sample_04.webp,synthetic-04,square,coral,1,1,full,train,A square on a coral background with diagonal stripes.
|
| 7 |
+
images/sample_05.webp,synthetic-05,triangle,mint,0,0,full,train,A triangle on a mint background.
|
| 8 |
+
images/sample_06.webp,synthetic-06,circle,sky,1,0,full,train,A circle on a sky background with diagonal stripes.
|
| 9 |
+
images/sample_07.webp,synthetic-07,square,sand,0,0,full,train,A square on a sand background.
|
full_val.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
file_name,sample_id,shape,background,has_stripes,is_core,subset,split,caption
|
| 2 |
+
images/sample_08.webp,synthetic-08,triangle,coral,1,1,full,validation,A triangle on a coral background with diagonal stripes.
|
| 3 |
+
images/sample_09.webp,synthetic-09,circle,mint,0,0,full,validation,A circle on a mint background.
|
images/sample_00.webp
ADDED
|
Git LFS Details
|
images/sample_01.webp
ADDED
|
Git LFS Details
|
images/sample_02.webp
ADDED
|
Git LFS Details
|
images/sample_03.webp
ADDED
|
Git LFS Details
|
images/sample_04.webp
ADDED
|
Git LFS Details
|
images/sample_05.webp
ADDED
|
Git LFS Details
|
images/sample_06.webp
ADDED
|
Git LFS Details
|
images/sample_07.webp
ADDED
|
Git LFS Details
|
images/sample_08.webp
ADDED
|
Git LFS Details
|
images/sample_09.webp
ADDED
|
Git LFS Details
|
images/sample_10.webp
ADDED
|
Git LFS Details
|
images/sample_11.webp
ADDED
|
Git LFS Details
|
manifest.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
image_path,sample_id,shape,background,has_stripes,is_core,caption
|
| 2 |
+
sample_00.webp,synthetic-00,circle,coral,1,1,A circle on a coral background with diagonal stripes.
|
| 3 |
+
sample_01.webp,synthetic-01,square,mint,0,1,A square on a mint background.
|
| 4 |
+
sample_02.webp,synthetic-02,triangle,sky,1,0,A triangle on a sky background with diagonal stripes.
|
| 5 |
+
sample_03.webp,synthetic-03,circle,sand,0,1,A circle on a sand background.
|
| 6 |
+
sample_04.webp,synthetic-04,square,coral,1,1,A square on a coral background with diagonal stripes.
|
| 7 |
+
sample_05.webp,synthetic-05,triangle,mint,0,0,A triangle on a mint background.
|
| 8 |
+
sample_06.webp,synthetic-06,circle,sky,1,0,A circle on a sky background with diagonal stripes.
|
| 9 |
+
sample_07.webp,synthetic-07,square,sand,0,0,A square on a sand background.
|
| 10 |
+
sample_08.webp,synthetic-08,triangle,coral,1,1,A triangle on a coral background with diagonal stripes.
|
| 11 |
+
sample_09.webp,synthetic-09,circle,mint,0,0,A circle on a mint background.
|
| 12 |
+
sample_10.webp,synthetic-10,square,sky,1,1,A square on a sky background with diagonal stripes.
|
| 13 |
+
sample_11.webp,synthetic-11,triangle,sand,0,0,A triangle on a sand background.
|
preview.png
ADDED
|
Git LFS Details
|
splits/core/test.csv
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
image_path
|
| 2 |
+
sample_10.webp
|
splits/core/train.csv
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
image_path
|
| 2 |
+
sample_00.webp
|
| 3 |
+
sample_01.webp
|
| 4 |
+
sample_03.webp
|
| 5 |
+
sample_04.webp
|
splits/core/val.csv
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
image_path
|
| 2 |
+
sample_08.webp
|
splits/full/test.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
image_path
|
| 2 |
+
sample_10.webp
|
| 3 |
+
sample_11.webp
|
splits/full/train.csv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
image_path
|
| 2 |
+
sample_00.webp
|
| 3 |
+
sample_01.webp
|
| 4 |
+
sample_02.webp
|
| 5 |
+
sample_03.webp
|
| 6 |
+
sample_04.webp
|
| 7 |
+
sample_05.webp
|
| 8 |
+
sample_06.webp
|
| 9 |
+
sample_07.webp
|
splits/full/val.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
image_path
|
| 2 |
+
sample_08.webp
|
| 3 |
+
sample_09.webp
|