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
be6dd472
Unverified
Commit
be6dd472
authored
Jan 10, 2020
by
Francisco Massa
Committed by
GitHub
Jan 10, 2020
Browse files
Testing CI (#1735)
* Testing CI * Disable tests for Pillow 7
parent
07cbb46a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
README.rst
README.rst
+1
-0
test/test_transforms.py
test/test_transforms.py
+1
-0
No files found.
README.rst
View file @
be6dd472
...
@@ -16,6 +16,7 @@ torchvision
...
@@ -16,6 +16,7 @@ torchvision
The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision.
The torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision.
Installation
Installation
============
============
...
...
test/test_transforms.py
View file @
be6dd472
...
@@ -892,6 +892,7 @@ class Tester(unittest.TestCase):
...
@@ -892,6 +892,7 @@ class Tester(unittest.TestCase):
y_ans
=
np
.
array
(
y_ans
,
dtype
=
np
.
uint8
).
reshape
(
x_shape
)
y_ans
=
np
.
array
(
y_ans
,
dtype
=
np
.
uint8
).
reshape
(
x_shape
)
self
.
assertTrue
(
np
.
allclose
(
y_np
,
y_ans
))
self
.
assertTrue
(
np
.
allclose
(
y_np
,
y_ans
))
@
unittest
.
skipIf
(
Image
.
__version__
>=
'7'
,
"Temporarily disabled"
)
def
test_adjust_saturation
(
self
):
def
test_adjust_saturation
(
self
):
x_shape
=
[
2
,
2
,
3
]
x_shape
=
[
2
,
2
,
3
]
x_data
=
[
0
,
5
,
13
,
54
,
135
,
226
,
37
,
8
,
234
,
90
,
255
,
1
]
x_data
=
[
0
,
5
,
13
,
54
,
135
,
226
,
37
,
8
,
234
,
90
,
255
,
1
]
...
...
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