datadings.sets.ADE20k_write module
- usage: ADE20k_write.py [-h] [-o PATH] [-y] [-s] [–shuffle {yes,no}] [-t 0-2]
[–calculate-weights] [–scenelabels] INDIR
Create ADE20k data set files.
This tool will look for the following files in the input directory and download them if necessary:
ADE20K_2016_07_26.zip
Important
Samples have the following keys:
"key"
"image"
"label"
"label_image"
"parts_images"
Positional arguments
INDIR Directory that contains dataset source files.
- options:
- -h, --help
show this help message and exit
- -o PATH, --outdir PATH
Output directory. Defaults to indir.
- -y, --no-confirm
Don’t require user interaction.
- -s, --skip-verification
Skip verification of source files.
–shuffle {yes,no} Write samples in random order. (default: yes) -t 0-2, –threads 0-2
Number of threads for conversion. 0 uses all available CPUs (default 2).
- --calculate-weights
Calculate median-frequency class weights.
- --scenelabels
extract list of scene labels