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
42853ff0
"docs/source/en/vscode:/vscode.git/clone" did not exist on "b4cbbd5ed2691d51100aa2991d7ad3d82e50cd70"
Commit
42853ff0
authored
Jun 24, 2021
by
LDOUBLEV
Browse files
save visualized image
parent
b2260182
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tools/infer/predict_det.py
tools/infer/predict_det.py
+1
-1
tools/infer_det.py
tools/infer_det.py
+1
-1
No files found.
tools/infer/predict_det.py
View file @
42853ff0
...
...
@@ -250,7 +250,7 @@ if __name__ == "__main__":
img_name_pure
=
os
.
path
.
split
(
image_file
)[
-
1
]
img_path
=
os
.
path
.
join
(
draw_img_save
,
"det_res_{}"
.
format
(
img_name_pure
))
cv2
.
imwrite
(
img_path
,
src_im
)
logger
.
info
(
"The visualized image saved in {}"
.
format
(
img_path
))
# print the information about memory and time-spent
if
args
.
benchmark
:
...
...
tools/infer_det.py
View file @
42853ff0
...
...
@@ -112,4 +112,4 @@ def main():
if
__name__
==
'__main__'
:
config
,
device
,
logger
,
vdl_writer
=
program
.
preprocess
()
main
()
\ No newline at end of file
main
()
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