Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
242dc71c
You need to sign in or sign up before continuing.
Commit
242dc71c
authored
Jul 27, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
1cdd2e9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/FasterRCNN/predict.py
examples/FasterRCNN/predict.py
+3
-3
No files found.
examples/FasterRCNN/predict.py
View file @
242dc71c
...
@@ -115,8 +115,8 @@ if __name__ == '__main__':
...
@@ -115,8 +115,8 @@ if __name__ == '__main__':
parser
.
add_argument
(
'--benchmark'
,
action
=
'store_true'
,
help
=
"Benchmark the speed of the model + postprocessing"
)
parser
.
add_argument
(
'--benchmark'
,
action
=
'store_true'
,
help
=
"Benchmark the speed of the model + postprocessing"
)
parser
.
add_argument
(
'--config'
,
help
=
"A list of KEY=VALUE to overwrite those defined in config.py"
,
parser
.
add_argument
(
'--config'
,
help
=
"A list of KEY=VALUE to overwrite those defined in config.py"
,
nargs
=
'+'
)
nargs
=
'+'
)
parser
.
add_argument
(
'--compact'
,
help
=
'
if you want to s
ave a model to .pb'
)
parser
.
add_argument
(
'--compact'
,
help
=
'
S
ave a model to .pb'
)
parser
.
add_argument
(
'--serving'
,
help
=
'
if you want to s
ave a model to serving file'
)
parser
.
add_argument
(
'--serving'
,
help
=
'
S
ave a model to serving file'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
if
args
.
config
:
if
args
.
config
:
...
@@ -147,7 +147,7 @@ if __name__ == '__main__':
...
@@ -147,7 +147,7 @@ if __name__ == '__main__':
ModelExporter
(
predcfg
)
.
export_compact
(
args
.
compact
,
optimize
=
False
)
ModelExporter
(
predcfg
)
.
export_compact
(
args
.
compact
,
optimize
=
False
)
elif
args
.
serving
:
elif
args
.
serving
:
ModelExporter
(
predcfg
)
.
export_serving
(
args
.
serving
,
optimize
=
False
)
ModelExporter
(
predcfg
)
.
export_serving
(
args
.
serving
,
optimize
=
False
)
if
args
.
predict
:
if
args
.
predict
:
predictor
=
OfflinePredictor
(
predcfg
)
predictor
=
OfflinePredictor
(
predcfg
)
for
image_file
in
args
.
predict
:
for
image_file
in
args
.
predict
:
...
...
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