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
OpenDAS
vision
Commits
e3fb8c09
Unverified
Commit
e3fb8c09
authored
Oct 18, 2023
by
Philip Meier
Committed by
GitHub
Oct 18, 2023
Browse files
update draw_boxes reference image in tests(#8052)
parent
1d6f7875
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
test/assets/fakedata/draw_boxes_util.png
test/assets/fakedata/draw_boxes_util.png
+0
-0
test/test_utils.py
test/test_utils.py
+1
-1
No files found.
test/assets/fakedata/draw_boxes_util.png
View replaced file @
1d6f7875
View file @
e3fb8c09
560 Bytes
|
W:
|
H:
855 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
test/test_utils.py
View file @
e3fb8c09
...
...
@@ -105,7 +105,7 @@ def test_draw_boxes():
res
=
Image
.
fromarray
(
result
.
permute
(
1
,
2
,
0
).
contiguous
().
numpy
())
res
.
save
(
path
)
if
PILLOW_VERSION
>=
(
8
,
2
):
if
PILLOW_VERSION
>=
(
10
,
1
):
# The reference image is only valid for new PIL versions
expected
=
torch
.
as_tensor
(
np
.
array
(
Image
.
open
(
path
))).
permute
(
2
,
0
,
1
)
assert_equal
(
result
,
expected
)
...
...
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