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
ModelZoo
DiffusionDet_pytorch
Commits
cc492d46
"examples/vscode:/vscode.git/clone" did not exist on "b581b2250474a4277459426b05aeeacee8b1f0d8"
Commit
cc492d46
authored
Sep 13, 2024
by
luopl
Browse files
Update demo.py
parent
359e1bde
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
demo.py
demo.py
+1
-4
No files found.
demo.py
View file @
cc492d46
...
...
@@ -134,10 +134,7 @@ if __name__ == "__main__":
out_filename
=
args
.
output
visualized_output
.
save
(
out_filename
)
else
:
cv2
.
namedWindow
(
WINDOW_NAME
,
cv2
.
WINDOW_NORMAL
)
cv2
.
imshow
(
WINDOW_NAME
,
visualized_output
.
get_image
()[:,
:,
::
-
1
])
if
cv2
.
waitKey
(
0
)
==
27
:
break
# esc to quit
cv2
.
imwrite
(
'output_image.png'
,
visualized_output
.
get_image
()[:,
:,
::
-
1
])
elif
args
.
webcam
:
assert
args
.
input
is
None
,
"Cannot have both --input and --webcam!"
assert
args
.
output
is
None
,
"output not yet supported with --webcam!"
...
...
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