Skip to content
Snippets Groups Projects
Commit d5e46ea6 authored by Ross Girshick's avatar Ross Girshick
Browse files

fix output path

parent b10068af
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,7 @@ def main():
print('Compressed network prototxt {}'.format(args.prototxt_svd))
out = os.path.splitext(os.path.basename(args.caffemodel))[0] + '_svd'
out_dir = os.path.dirname(args.caffemodel)
# Compress fc6
if net_svd.params.has_key('fc6_L'):
......@@ -121,7 +122,7 @@ def main():
out += '_fc7_{}'.format(l_fc7)
filename = 'snapshots/{}.caffemodel'.format(out)
filename = '{}/{}.caffemodel'.format(out_dir, out)
net_svd.save(filename)
print 'Wrote svd model to: {:s}'.format(filename)
......
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../../data" && pwd )"
cd $DIR
FILE=fast_rcnn_models.tgz
# TODO
URL=
# TODO
CHECKSUM=
if [ -f $FILE ]; then
echo "File already exists. Checking md5..."
os=`uname -s`
if [ "$os" = "Linux" ]; then
checksum=`md5sum $FILE | awk '{ print $1 }'`
elif [ "$os" = "Darwin" ]; then
checksum=`cat $FILE | md5`
fi
if [ "$checksum" = "$CHECKSUM" ]; then
echo "Checksum is correct. No need to download."
exit 0
else
echo "Checksum is incorrect. Need to download again."
fi
fi
# TODO
echo "Downloading precomputed selective search boxes (1.8G)..."
wget $URL -O $FILE
echo "Unzipping..."
tar zxvf $FILE
echo "Done. Please run this command again to verify that checksum = $CHECKSUM."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment