JLOG
COCO2017 segmentation Dataset 다운로드 본문
COCO dataset 공식 웹페이지에서 gsutil로 받는걸 추천한다고 하여 시도했는데,
오류가 발생해서, wget으로 편하게 받을 수 있는 방법을 공유한다.
출처)
https://gist.github.com/mkocabas/a6177fc00315403d31572e17700d7fd9
아래 명령어를 따라 다운로드 받으면 된다.
혹은 bash 파일에 아래 명령어를 복사해 실행시켜주면 된다.
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
Comments