Skip to content

Commit

Permalink
Fix download model script to use zip archive
Browse files Browse the repository at this point in the history
Currently GitHub is not using tarballs as archive for downloading gists
therefore the script was broken as actually a zip archive was being downloaded.
  • Loading branch information
gut committed Aug 6, 2015
1 parent ac6d4b6 commit 4c23e93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/download_model_from_gist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi

echo "Downloading Caffe model info to $MODEL_DIR ..."
mkdir -p $MODEL_DIR
wget https://gist.github.com/$GIST/download -O $MODEL_DIR/gist.tar.gz
tar xzf $MODEL_DIR/gist.tar.gz --directory=$MODEL_DIR --strip-components=1
rm $MODEL_DIR/gist.tar.gz
wget https://gist.github.com/$GIST/download -O $MODEL_DIR/gist.zip
unzip -j $MODEL_DIR/gist.zip -d $MODEL_DIR
rm $MODEL_DIR/gist.zip
echo "Done"

0 comments on commit 4c23e93

Please sign in to comment.