arudaev commited on
Commit
a3ff0d7
·
verified ·
1 Parent(s): 8666aa2

card: declare configs so the viewer can build the image subsets

Browse files
Files changed (1) hide show
  1. README.md +34 -0
README.md CHANGED
@@ -7,6 +7,40 @@ tags:
7
  - waste
8
  - recycling
9
  - smart-bin-recognition
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ---
11
 
12
  # arudaev/smart-bin-detect
 
7
  - waste
8
  - recycling
9
  - smart-bin-recognition
10
+ # THE VIEWER, and what it can honestly show.
11
+ #
12
+ # Without this block the viewer fails with "The dataset generation failed": the
13
+ # layout is a YOLO detection tree - JPEGs beside .txt labels, two of the three
14
+ # subsets sharded two levels deep - and nothing in it is a format the viewer
15
+ # auto-detects.
16
+ #
17
+ # These configs expose the IMAGES so the corpus can be browsed. They deliberately
18
+ # do NOT claim to expose the labels: a YOLO .txt beside each frame is not a
19
+ # feature the viewer can render, and a config that silently dropped them while
20
+ # looking complete would be worse than one that says so. Use snapshot_download
21
+ # for training data; the viewer is for looking.
22
+ #
23
+ # `drop_labels: true` matters on the sharded subsets. imagefolder infers a class
24
+ # label from the directory name, and those directories are `00`..`ff` - the first
25
+ # two characters of sha256(stem), chosen because the Hub rejects a push where any
26
+ # directory holds more than 10 000 files. Without this the viewer would show a
27
+ # 256-class label column that means nothing at all.
28
+ configs:
29
+ - config_name: legacy
30
+ drop_labels: true
31
+ data_files:
32
+ - split: train
33
+ path: legacy/images/*.jpg
34
+ - config_name: open_images
35
+ drop_labels: true
36
+ data_files:
37
+ - split: train
38
+ path: open_images/images/*/*.jpg
39
+ - config_name: negatives
40
+ drop_labels: true
41
+ data_files:
42
+ - split: train
43
+ path: negatives/images/*/*.jpg
44
  ---
45
 
46
  # arudaev/smart-bin-detect