Skip to content

Commit 5c1cc67

Browse files
committed
add trainval35 support
1 parent de38521 commit 5c1cc67

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

data/scripts/COCO2014.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ rm ../images/train2014.zip
6060
rm ../images/val2014.zip
6161
rm ./annotations_trainval2014.zip
6262

63+
echo "Creating trainval35k dataset..."
64+
65+
# Download annotations json
66+
echo "Downloading trainval35k annotations from S3"
67+
curl -LO https://s3.amazonaws.com/amdegroot-datasets/instances_trainval35k.json.zip
68+
69+
# combine train and val
70+
echo "Combining train and val images"
71+
mkdir ../images/trainval35k
72+
cd ../images/train2014
73+
find -maxdepth 1 -name '*.jpg' -exec cp -t ../trainval35k {} + # dir too large for cp
74+
cd ../val2014
75+
find -maxdepth 1 -name '*.jpg' -exec cp -t ../trainval35k {} +
76+
77+
6378
end=`date +%s`
6479
runtime=$((end-start))
6580

0 commit comments

Comments
 (0)