Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fast-rcnn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maxmzkr
fast-rcnn
Commits
d5e46ea6
Commit
d5e46ea6
authored
10 years ago
by
Ross Girshick
Browse files
Options
Downloads
Patches
Plain Diff
fix output path
parent
b10068af
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/compress_model.py
+2
-1
2 additions, 1 deletion
tools/compress_model.py
tools/scripts/fetch_fast_rcnn_models.sh
+37
-0
37 additions, 0 deletions
tools/scripts/fetch_fast_rcnn_models.sh
with
39 additions
and
1 deletion
tools/compress_model.py
+
2
−
1
View file @
d5e46ea6
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
tools/scripts/fetch_fast_rcnn_models.sh
0 → 100755
+
37
−
0
View file @
d5e46ea6
#!/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
."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment