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
bc999986
Unverified
Commit
bc999986
authored
Jun 25, 2021
by
xiaoting
Committed by
GitHub
Jun 25, 2021
Browse files
Merge pull request #3185 from LDOUBLEV/fix_vis
save visualized image
parents
7363d2f9
42853ff0
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 @
bc999986
...
...
@@ -235,5 +235,5 @@ 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
))
tools/infer_det.py
View file @
bc999986
...
...
@@ -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