Created
April 9, 2018 09:41
-
-
Save mkocabas/a6177fc00315403d31572e17700d7fd9 to your computer and use it in GitHub Desktop.
Download COCO dataset. Run under 'datasets' directory.
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
mkdir coco | |
cd coco | |
mkdir images | |
cd images | |
wget http://images.cocodataset.org/zips/train2017.zip | |
wget http://images.cocodataset.org/zips/val2017.zip | |
wget http://images.cocodataset.org/zips/test2017.zip | |
wget http://images.cocodataset.org/zips/unlabeled2017.zip | |
unzip train2017.zip | |
unzip val2017.zip | |
unzip test2017.zip | |
unzip unlabeled2017.zip | |
rm train2017.zip | |
rm val2017.zip | |
rm test2017.zip | |
rm unlabeled2017.zip | |
cd ../ | |
wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip | |
wget http://images.cocodataset.org/annotations/stuff_annotations_trainval2017.zip | |
wget http://images.cocodataset.org/annotations/image_info_test2017.zip | |
wget http://images.cocodataset.org/annotations/image_info_unlabeled2017.zip | |
unzip annotations_trainval2017.zip | |
unzip stuff_annotations_trainval2017.zip | |
unzip image_info_test2017.zip | |
unzip image_info_unlabeled2017.zip | |
rm annotations_trainval2017.zip | |
rm stuff_annotations_trainval2017.zip | |
rm image_info_test2017.zip | |
rm image_info_unlabeled2017.zip |
Everything but Claude Haiku-fied with <script> + separate and run them in parallel (maybe background processes)
# Create the coco directory and cd into it
mkdir coco
cd coco
# Create the images directory and cd into it
mkdir images
cd images
# Download the dataset zip files in parallel
wget http://images.cocodataset.org/zips/train2017.zip &
wget http://images.cocodataset.org/zips/val2017.zip &
wget http://images.cocodataset.org/zips/test2017.zip &
wget http://images.cocodataset.org/zips/unlabeled2017.zip &
wait
# Unzip the dataset zip files in parallel
unzip train2017.zip &
unzip val2017.zip &
unzip test2017.zip &
unzip unlabeled2017.zip &
wait
# Remove the zip files
rm train2017.zip
rm val2017.zip
rm test2017.zip
rm unlabeled2017.zip
# Go back to the coco directory
cd ../
# Download the annotation zip files in parallel
wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip &
wget http://images.cocodataset.org/annotations/stuff_annotations_trainval2017.zip &
wget http://images.cocodataset.org/annotations/image_info_test2017.zip &
wget http://images.cocodataset.org/annotations/image_info_unlabeled2017.zip &
wait
# Unzip the annotation zip files in parallel
unzip annotations_trainval2017.zip &
unzip stuff_annotations_trainval2017.zip &
unzip image_info_test2017.zip &
unzip image_info_unlabeled2017.zip &
wait
# Remove the zip files
rm annotations_trainval2017.zip
rm stuff_annotations_trainval2017.zip
rm image_info_test2017.zip
rm image_info_unlabeled2017.zip
Lol, the script downloaeded files, and then deleted them right away, because unzip was not found.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
same script but instead of 5 min stretch, try doing squats.