-
Notifications
You must be signed in to change notification settings - Fork 87
/
coco.sh
25 lines (20 loc) · 631 Bytes
/
coco.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mkdir COCODIR
cd COCODIR
wget -c http://images.cocodataset.org/zips/train2017.zip
echo "Extracting train2017.zip"
unzip -qq train2017.zip
rm train2017.zip
wget -c http://images.cocodataset.org/zips/val2017.zip
echo "Extracting val2017.zip"
unzip -qq val2017.zip
rm val2017.zip
wget -c http://images.cocodataset.org/annotations/annotations_trainval2017.zip
echo "Extracting annotations_trainval2017.zip"
unzip -qq annotations_trainval2017.zip
rm annotations_trainval2017.zip
cd annotations
find . -type f \
-not -wholename ./instances_train2017.json \
-not -wholename ./instances_val2017.json \
-delete
echo "DONE."