File size: 508 Bytes
4121bec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -e
# Copyright (c) Facebook, Inc. and its affiliates.

# Download some files needed for running tests.

cd "${0%/*}"

BASE=https://dl.fbaipublicfiles.com/detectron2
mkdir -p coco/annotations

for anno in instances_val2017_100 \
  person_keypoints_val2017_100 \
  instances_minival2014_100 \
  person_keypoints_minival2014_100; do

  dest=coco/annotations/$anno.json
  [[ -s $dest ]] && {
    echo "$dest exists. Skipping ..."
  } || {
    wget $BASE/annotations/coco/$anno.json -O $dest
  }
done