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
7ad66311
"docs/source/vscode:/vscode.git/clone" did not exist on "351aab60e9028002d3b3a3685694ba17fd2223df"
Commit
7ad66311
authored
Jun 09, 2021
by
LDOUBLEV
Browse files
fix save_log_path as null
parent
d93a445d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
tools/infer/predict_det.py
tools/infer/predict_det.py
+2
-1
tools/infer/predict_rec.py
tools/infer/predict_rec.py
+2
-1
No files found.
tools/infer/predict_det.py
View file @
7ad66311
...
@@ -283,5 +283,6 @@ if __name__ == "__main__":
...
@@ -283,5 +283,6 @@ if __name__ == "__main__":
'total_time_s'
:
det_time_dict
[
'total_time'
]
'total_time_s'
:
det_time_dict
[
'total_time'
]
}
}
benchmark_log
=
benchmark_utils
.
PaddleInferBenchmark
(
benchmark_log
=
benchmark_utils
.
PaddleInferBenchmark
(
text_detector
.
config
,
model_info
,
data_info
,
perf_info
,
mems
)
text_detector
.
config
,
model_info
,
data_info
,
perf_info
,
mems
,
args
.
save_log_path
)
benchmark_log
(
"Det"
)
benchmark_log
(
"Det"
)
tools/infer/predict_rec.py
View file @
7ad66311
...
@@ -320,7 +320,8 @@ def main(args):
...
@@ -320,7 +320,8 @@ def main(args):
'total_time_s'
:
rec_time_dict
[
'total_time'
]
'total_time_s'
:
rec_time_dict
[
'total_time'
]
}
}
benchmark_log
=
benchmark_utils
.
PaddleInferBenchmark
(
benchmark_log
=
benchmark_utils
.
PaddleInferBenchmark
(
text_recognizer
.
config
,
model_info
,
data_info
,
perf_info
,
mems
)
text_recognizer
.
config
,
model_info
,
data_info
,
perf_info
,
mems
,
args
.
save_log_path
)
benchmark_log
(
"Rec"
)
benchmark_log
(
"Rec"
)
...
...
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