Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
6241b8f9
Commit
6241b8f9
authored
Oct 22, 2020
by
WenmuZhou
Browse files
添加静态图的create_predictor
parent
60711baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/infer/utility.py
tools/infer/utility.py
+2
-2
No files found.
tools/infer/utility.py
View file @
6241b8f9
...
...
@@ -85,8 +85,8 @@ def create_predictor(args, mode, logger):
if
model_dir
is
None
:
logger
.
info
(
"not find {} model file path {}"
.
format
(
mode
,
model_dir
))
sys
.
exit
(
0
)
model_file_path
=
model_dir
+
"/
__
model
__
"
params_file_path
=
model_dir
+
"/
__variables__
"
model_file_path
=
model_dir
+
"/model"
params_file_path
=
model_dir
+
"/
params
"
if
not
os
.
path
.
exists
(
model_file_path
):
logger
.
info
(
"not find model file path {}"
.
format
(
model_file_path
))
sys
.
exit
(
0
)
...
...
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