Skip to content

Instantly share code, notes, and snippets.

@jss367
Last active July 4, 2023 07:48
Show Gist options
  • Save jss367/a8eb11e5abd6e674f35ebfbb1f0d801c to your computer and use it in GitHub Desktop.
Save jss367/a8eb11e5abd6e674f35ebfbb1f0d801c to your computer and use it in GitHub Desktop.
Download coco dataset for detectron2
# if you want to change the path
# you'll need to:
# export DETECTRON2_DATASETS=/home/jsimonelli/data/detectron2
# or
# import os
# os.environ['DETECTRON2_DATASETS'] = '/home/jsimonelli/data/detectron2'
# detectron2 expects it to be in a folder called coco
mkdir coco
cd coco
wget -c http://images.cocodataset.org/annotations/annotations_trainval2017.zip
wget -c http://images.cocodataset.org/zips/train2017.zip
wget -c http://images.cocodataset.org/zips/val2017.zip
unzip annotations_trainval2017.zip
unzip train2017.zip
unzip val2017.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment