forked from z-harry-sun/TattDL
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add data without tattc_voc.caffemodel
- Loading branch information
1 parent
d0f55ad
commit 8b34e9e
Showing
10 changed files
with
158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cache | ||
*.tgz | ||
pylintrc | ||
selective_search_data | ||
tatt* | ||
VOC* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
This directory holds (*after you download them*): | ||
- Caffe models pre-trained on ImageNet | ||
- Faster R-CNN models | ||
- Symlinks to datasets | ||
|
||
To download Caffe models (ZF, VGG16) pre-trained on ImageNet, run: | ||
|
||
``` | ||
./data/scripts/fetch_imagenet_models.sh | ||
``` | ||
|
||
This script will populate `data/imagenet_models`. | ||
|
||
To download Faster R-CNN models trained on VOC 2007, run: | ||
|
||
``` | ||
./data/scripts/fetch_faster_rcnn_models.sh | ||
``` | ||
|
||
This script will populate `data/faster_rcnn_models`. | ||
|
||
In order to train and test with PASCAL VOC, you will need to establish symlinks. | ||
From the `data` directory (`cd data`): | ||
|
||
``` | ||
# For VOC 2007 | ||
ln -s /your/path/to/VOC2007/VOCdevkit VOCdevkit2007 | ||
# For VOC 2012 | ||
ln -s /your/path/to/VOC2012/VOCdevkit VOCdevkit2012 | ||
``` | ||
|
||
Since you'll likely be experimenting with multiple installs of Fast/er R-CNN in | ||
parallel, you'll probably want to keep all of this data in a shared place and | ||
use symlinks. On my system I create the following symlinks inside `data`: | ||
|
||
``` | ||
# data/cache holds various outputs created by the datasets package | ||
ln -s /data/fast_rcnn_shared/cache | ||
# move the imagenet_models to shared location and symlink to them | ||
ln -s /data/fast_rcnn_shared/imagenet_models | ||
# move the selective search data to a shared location and symlink to them | ||
# (only applicable to Fast R-CNN training) | ||
ln -s /data/fast_rcnn_shared/selective_search_data | ||
ln -s /data/VOC2007/VOCdevkit VOCdevkit2007 | ||
ln -s /data/VOC2012/VOCdevkit VOCdevkit2012 | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )" | ||
cd $DIR | ||
|
||
FILE=faster_rcnn_models.tgz | ||
URL=http://www.cs.berkeley.edu/~rbg/faster-rcnn-data/$FILE | ||
CHECKSUM=ac116844f66aefe29587214272054668 | ||
|
||
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 | ||
|
||
echo "Downloading Faster R-CNN demo models (695M)..." | ||
|
||
wget $URL -O $FILE | ||
|
||
echo "Unzipping..." | ||
|
||
tar zxvf $FILE | ||
|
||
echo "Done. Please run this command again to verify that checksum = $CHECKSUM." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )" | ||
cd $DIR | ||
|
||
FILE=imagenet_models.tgz | ||
URL=http://www.cs.berkeley.edu/~rbg/faster-rcnn-data/$FILE | ||
CHECKSUM=ed34ca912d6782edfb673a8c3a0bda6d | ||
|
||
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 | ||
|
||
echo "Downloading pretrained ImageNet models (1G)..." | ||
|
||
wget $URL -O $FILE | ||
|
||
echo "Unzipping..." | ||
|
||
tar zxvf $FILE | ||
|
||
echo "Done. Please run this command again to verify that checksum = $CHECKSUM." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )" | ||
cd $DIR | ||
|
||
FILE=selective_search_data.tgz | ||
URL=http://www.cs.berkeley.edu/~rbg/fast-rcnn-data/$FILE | ||
CHECKSUM=7078c1db87a7851b31966b96774cd9b9 | ||
|
||
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 | ||
|
||
echo "Downloading precomputed selective search boxes (0.5G)..." | ||
|
||
wget $URL -O $FILE | ||
|
||
echo "Unzipping..." | ||
|
||
tar zxvf $FILE | ||
|
||
echo "Done. Please run this command again to verify that checksum = $CHECKSUM." |