mmpretrain/tools/dataset_converters/odl_cub_preprocess.sh
Ezra-Yu 59c077746f
[Feat] Download dataset by using MIM&OpenDataLab (#1630)
* add dataset.index

* update preprocess shell

* update shell

* update docs

* update docs
2023-06-30 13:55:13 +08:00

16 lines
301 B
Bash
Executable File

#!/usr/bin/env bash
set -x
DOWNLOAD_DIR=$1
DATA_ROOT=$2
# unzip all of data
cat $DOWNLOAD_DIR/CUB-200-2011/raw/*.tar.gz | tar -xvz -C $DOWNLOAD_DIR
# move data into DATA_ROOT
mv -f $DOWNLOAD_DIR/CUB-200-2011/CUB-200-2011/* $DATA_ROOT/
# remove useless data file
rm -R $DOWNLOAD_DIR/CUB-200-2011/