forked from facebookresearch/detectron2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
download mini data in OSS CI, and enable more tests
Summary: Pull Request resolved: facebookresearch#3689 Differential Revision: D32410043 Pulled By: ppwwyyxx fbshipit-source-id: 6e75bddfb6899a9a294a3f2d927cdf806db54120
- Loading branch information
1 parent
3fd63b2
commit 2106ed1
Showing
11 changed files
with
56 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,31 @@ | ||
#!/bin/bash -e | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
|
||
# Download some files needed for running tests. | ||
# Download the mini dataset (coco val2017_100, with only 100 images) | ||
# to be used in unittests & integration tests. | ||
|
||
cd "${0%/*}" | ||
|
||
BASE=https://dl.fbaipublicfiles.com/detectron2 | ||
mkdir -p coco/annotations | ||
ROOT=${DETECTRON2_DATASETS:-./} | ||
ROOT=${ROOT/#\~/$HOME} # expand ~ to HOME | ||
mkdir -p $ROOT/coco/annotations | ||
|
||
for anno in instances_val2017_100 \ | ||
person_keypoints_val2017_100 \ | ||
instances_minival2014_100 \ | ||
person_keypoints_minival2014_100; do | ||
person_keypoints_val2017_100 ; do | ||
|
||
dest=coco/annotations/$anno.json | ||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters