aaaa commited on
Commit
bcf01b7
·
1 Parent(s): 59c968a

Add files

Browse files
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

  • SHA256: 3a1038768ede68f751c7ea7a0c86cf8b6bb7f2508ec5605586abbb57a52f2dd6
  • Pointer size: 128 Bytes
  • Size of remote file: 586 Bytes
images/sample_01.webp ADDED

Git LFS Details

  • SHA256: ab0c33c48cf2cbce89d940a6a145aaee63d0474761b3e33e3c9b6f11817b9452
  • Pointer size: 128 Bytes
  • Size of remote file: 252 Bytes
images/sample_02.webp ADDED

Git LFS Details

  • SHA256: a6c0162fe9823985db190e20047e59023f7006a6e8cf0812434b762ae4be962f
  • Pointer size: 128 Bytes
  • Size of remote file: 544 Bytes
images/sample_03.webp ADDED

Git LFS Details

  • SHA256: 3f6fa0b3b21fe37e34c21fa91cd2eafd3aa3bdb0618df704ef2237e089ec282f
  • Pointer size: 128 Bytes
  • Size of remote file: 464 Bytes
images/sample_04.webp ADDED

Git LFS Details

  • SHA256: 04f329f26e5c3916d49d72720688d1bc347897ffb51ed71e9b551daf71e50370
  • Pointer size: 128 Bytes
  • Size of remote file: 438 Bytes
images/sample_05.webp ADDED

Git LFS Details

  • SHA256: 9d4c949853b8236b44e7a3e2cd7cbfe2090a66be0e247bac827455166a0d7c2b
  • Pointer size: 128 Bytes
  • Size of remote file: 380 Bytes
images/sample_06.webp ADDED

Git LFS Details

  • SHA256: 937c95dc73ff9399526389e91edd852d17f956028697e06fb14783a533c388e6
  • Pointer size: 128 Bytes
  • Size of remote file: 672 Bytes
images/sample_07.webp ADDED

Git LFS Details

  • SHA256: 499e821f1e5b444c38f127fd3d315730ff711b8a79e07a5130195912315ba26b
  • Pointer size: 128 Bytes
  • Size of remote file: 282 Bytes
images/sample_08.webp ADDED

Git LFS Details

  • SHA256: dfccfcf65447d4af8f99ffab943b379f8bc8d0ea5854bcd41757ef63aed8cd14
  • Pointer size: 128 Bytes
  • Size of remote file: 558 Bytes
images/sample_09.webp ADDED

Git LFS Details

  • SHA256: afa9ed2617a0c4fa5c902f772e390ae070e34681f88041f2b7f57d8bda85eef3
  • Pointer size: 128 Bytes
  • Size of remote file: 462 Bytes
images/sample_10.webp ADDED

Git LFS Details

  • SHA256: 11033f4a79feefbf0813d86a03556073f8bb2f153c4347870d17733219709318
  • Pointer size: 128 Bytes
  • Size of remote file: 398 Bytes
images/sample_11.webp ADDED

Git LFS Details

  • SHA256: db52227c0319d8762c4a2febcf0a9e22d185b694c0e338f91f1c0f7b9be8557d
  • Pointer size: 128 Bytes
  • Size of remote file: 338 Bytes
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

  • SHA256: a68cf31da551365c24c24db27251de729fdddd9878b69978f34d4691b5b18fa3
  • Pointer size: 130 Bytes
  • Size of remote file: 13.2 kB
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