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
90dace8d
"tests/git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "14bd5e28e8a0c93a82ae4e2152e85150dfcde6c7"
Unverified
Commit
90dace8d
authored
Mar 21, 2022
by
Nicolas Hug
Committed by
GitHub
Mar 21, 2022
Browse files
More robust check in tests for 16 bits images (#5652)
parent
fc63f828
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_image.py
test/test_image.py
+1
-1
No files found.
test/test_image.py
View file @
90dace8d
...
...
@@ -158,7 +158,7 @@ def test_decode_png(img_path, pil_mode, mode):
img_pil
=
normalize_dimensions
(
img_pil
)
if
"16"
in
img_path
:
if
img_path
.
endswith
(
"16.png"
)
:
# 16 bits image decoding is supported, but only as a private API
# FIXME: see https://github.com/pytorch/vision/issues/4731 for potential solutions to making it public
with
pytest
.
raises
(
RuntimeError
,
match
=
"At most 8-bit PNG images are supported"
):
...
...
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