datadings.sets.VOC2012_write module
- usage: VOC2012_write.py [-h] [-o PATH] [-y] [-s] [–shuffle {yes,no}]
[–calculate-weights] INDIR
Create Pascal VOC 2012 dataset files.
This tool will look for the following files in the input directory and download them if necessary:
VOCtrainval_11-May-2012.tar
Important
Samples have the following keys:
"key"
"image"
"label_image"
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) –calculate-weights Calculate median-frequency class weights.