mirror of
https://github.com/open-mmlab/mmpretrain.git
synced 2025-06-03 14:59:18 +08:00
16 lines
301 B
Bash
Executable File
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/
|