preprocess_coco2017.sh 816 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. DOWNLOAD_DIR=$1
  3. DATA_ROOT=$2
  4. unzip $DOWNLOAD_DIR/COCO_2017/raw/Images/val2017.zip -d $DATA_ROOT
  5. unzip $DOWNLOAD_DIR/COCO_2017/raw/Images/train2017.zip -d $DATA_ROOT
  6. unzip $DOWNLOAD_DIR/COCO_2017/raw/Images/test2017.zip -d $DATA_ROOT/
  7. unzip $DOWNLOAD_DIR/COCO_2017/raw/Images/unlabeled2017.zip -d $DATA_ROOT
  8. unzip $DOWNLOAD_DIR/COCO_2017/raw/Annotations/stuff_annotations_trainval2017.zip -d $DATA_ROOT/
  9. unzip $DOWNLOAD_DIR/COCO_2017/raw/Annotations/panoptic_annotations_trainval2017.zip -d $DATA_ROOT/
  10. unzip $DOWNLOAD_DIR/COCO_2017/raw/Annotations/image_info_unlabeled2017.zip -d $DATA_ROOT/
  11. unzip $DOWNLOAD_DIR/COCO_2017/raw/Annotations/image_info_test2017.zip -d $DATA_ROOT/
  12. unzip $DOWNLOAD_DIR/COCO_2017/raw/Annotations/annotations_trainval2017.zip -d $DATA_ROOT
  13. rm -rf $DATA_ROOT/COCO_2017