Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
py-faster-rcnn
Commits
d9c54f87
Commit
d9c54f87
authored
Apr 29, 2015
by
Ross Girshick
Browse files
update scripts; create cache dir if needed
parent
c5d213de
Changes
4
Hide whitespace changes
Inline
Side-by-side
data/scripts/fetch_fast_rcnn_models.sh
View file @
d9c54f87
...
...
@@ -4,7 +4,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
cd
$DIR
FILE
=
fast_rcnn_models.tgz
URL
=
http://www.cs.berkeley.edu/~rbg/fast-rcnn-data/
fast_rcnn_models.tgz
URL
=
http://www.cs.berkeley.edu/~rbg/fast-rcnn-data/
$FILE
CHECKSUM
=
5f7dde9f5376e18c8e065338cc5df3f7
if
[
-f
$FILE
]
;
then
...
...
data/scripts/fetch_imagenet_models.sh
View file @
d9c54f87
...
...
@@ -4,7 +4,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
cd
$DIR
FILE
=
imagenet_models.tgz
URL
=
http://www.cs.berkeley.edu/~rbg/fast-rcnn-data/
imagenet_models.tgz
URL
=
http://www.cs.berkeley.edu/~rbg/fast-rcnn-data/
$FILE
CHECKSUM
=
8b1d4b9da0593fc70ef403284f810adc
if
[
-f
$FILE
]
;
then
...
...
data/scripts/fetch_selective_search_data.sh
View file @
d9c54f87
...
...
@@ -4,8 +4,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
cd
$DIR
FILE
=
selective_search_data.tgz
URL
=
http://www.cs.berkeley.edu/~rbg/
r-cnn-release1-selective-search.tgz
CHECKSUM
=
6cf6df219c1e514f64482f11d00bd0b4
URL
=
http://www.cs.berkeley.edu/~rbg/
fast-rcnn-data/
$FILE
CHECKSUM
=
7078c1db87a7851b31966b96774cd9b9
if
[
-f
$FILE
]
;
then
echo
"File already exists. Checking md5..."
...
...
@@ -23,7 +23,7 @@ if [ -f $FILE ]; then
fi
fi
echo
"Downloading precomputed selective search boxes (
1.8
G)..."
echo
"Downloading precomputed selective search boxes (
0.5
G)..."
wget
$URL
-O
$FILE
...
...
lib/datasets/imdb.py
View file @
d9c54f87
...
...
@@ -6,6 +6,7 @@
# --------------------------------------------------------
import
os
import
os.path
as
osp
import
PIL
from
utils.cython_bbox
import
bbox_overlaps
import
numpy
as
np
...
...
@@ -64,7 +65,10 @@ class imdb(object):
@
property
def
cache_path
(
self
):
return
os
.
path
.
join
(
datasets
.
ROOT_DIR
,
'data'
,
'cache'
)
cache_path
=
osp
.
abspath
(
osp
.
join
(
datasets
.
ROOT_DIR
,
'data'
,
'cache'
))
if
not
os
.
path
.
exists
(
cache_path
):
os
.
makedirs
(
cache_path
)
return
cache_path
@
property
def
num_images
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment