Spaces:
Sleeping
Sleeping
File size: 521 Bytes
d4b77ac |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Preprocessing COCO
### Download raw images and annotations
````shell
wget http://images.cocodataset.org/zips/train2017.zip
wget http://images.cocodataset.org/zips/val2017.zip
wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip
unzip ./train2017.zip
unzip ./val2017.zip
unzip ./annotations_trainval2017.zip
cd pycocotools && make && cd ..
````
### Crop & Generate data info (~20 min)
````shell
#python par_crop.py -h
python par_crop.py --enable_mask --num_threads 24
python gen_json.py
````
|