diff options
author | Sergey Karayev <sergeykarayev@gmail.com> | 2014-09-18 16:11:07 -0700 |
---|---|---|
committer | Evan Shelhamer <shelhamer@imaginarynumber.net> | 2014-09-18 16:27:44 -0700 |
commit | 08d7f8c6398cd9103cceb128aff8e3e7e3fd94cb (patch) | |
tree | 7d116239cd2cb678d165a849398dc91a06922350 /scripts | |
parent | 8008533ec92226f02b805452c1c7490b6f082e61 (diff) | |
download | caffeonacl-08d7f8c6398cd9103cceb128aff8e3e7e3fd94cb.tar.gz caffeonacl-08d7f8c6398cd9103cceb128aff8e3e7e3fd94cb.tar.bz2 caffeonacl-08d7f8c6398cd9103cceb128aff8e3e7e3fd94cb.zip |
[model zoo] download gist script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/download_model_from_gist.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/download_model_from_gist.sh b/scripts/download_model_from_gist.sh new file mode 100755 index 00000000..61d995fb --- /dev/null +++ b/scripts/download_model_from_gist.sh @@ -0,0 +1,16 @@ +echo "usage: download_model_from_gist.sh <gist_id> <dirname>" + +GIST=$1 +DIRNAME=$2 + +if [ -d "$DIRNAME/$GIST" ]; then + echo "$DIRNAME/$GIST already exists! Please make sure you're not overwriting anything important!" + exit +fi + +echo "Downloading Caffe model info to $DIRNAME/$GIST ..." +mkdir -p $DIRNAME/$GIST +wget https://gist.github.com/$GIST/download -O $DIRNAME/$GIST/gist.tar.gz +tar xzf $DIRNAME/$GIST/gist.tar.gz --directory=$DIRNAME/$GIST --strip-components=1 +rm $DIRNAME/$GIST/gist.tar.gz +echo "Done" |