| #!/bin/bash -e |
| |
|
|
| |
| |
|
|
| cd "${0%/*}" |
|
|
| BASE=https://dl.fbaipublicfiles.com/detectron2 |
| ROOT=${DETECTRON2_DATASETS:-./} |
| ROOT=${ROOT/#\~/$HOME} |
| mkdir -p $ROOT/coco/annotations |
|
|
| for anno in instances_val2017_100 \ |
| person_keypoints_val2017_100 ; do |
|
|
| dest=$ROOT/coco/annotations/$anno.json |
| [[ -s $dest ]] && { |
| echo "$dest exists. Skipping ..." |
| } || { |
| wget $BASE/annotations/coco/$anno.json -O $dest |
| } |
| done |
|
|
| dest=$ROOT/coco/val2017_100.tgz |
| [[ -d $ROOT/coco/val2017 ]] && { |
| echo "$ROOT/coco/val2017 exists. Skipping ..." |
| } || { |
| wget $BASE/annotations/coco/val2017_100.tgz -O $dest |
| tar xzf $dest -C $ROOT/coco/ && rm -f $dest |
| } |
|
|