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
4cba51c5
Unverified
Commit
4cba51c5
authored
Aug 16, 2023
by
Philip Meier
Committed by
GitHub
Aug 16, 2023
Browse files
fix elastic tests (#7841)
parent
bda807d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/test_transforms_v2_refactored.py
test/test_transforms_v2_refactored.py
+4
-4
No files found.
test/test_transforms_v2_refactored.py
View file @
4cba51c5
...
@@ -2279,7 +2279,7 @@ class TestElastic:
...
@@ -2279,7 +2279,7 @@ class TestElastic:
image
=
make_image_tensor
(
dtype
=
dtype
,
device
=
device
)
image
=
make_image_tensor
(
dtype
=
dtype
,
device
=
device
)
check_kernel
(
check_kernel
(
F
.
elastic_image
_tensor
,
F
.
elastic_image
,
image
,
image
,
displacement
=
self
.
_make_displacement
(
image
),
displacement
=
self
.
_make_displacement
(
image
),
**
{
param
:
value
},
**
{
param
:
value
},
...
@@ -2320,9 +2320,9 @@ class TestElastic:
...
@@ -2320,9 +2320,9 @@ class TestElastic:
@
pytest
.
mark
.
parametrize
(
@
pytest
.
mark
.
parametrize
(
(
"kernel"
,
"input_type"
),
(
"kernel"
,
"input_type"
),
[
[
(
F
.
elastic_image
_tensor
,
torch
.
Tensor
),
(
F
.
elastic_image
,
torch
.
Tensor
),
(
F
.
elastic_image_pil
,
PIL
.
Image
.
Image
),
(
F
.
_
elastic_image_pil
,
PIL
.
Image
.
Image
),
(
F
.
elastic_image
_tensor
,
datapoints
.
Image
),
(
F
.
elastic_image
,
datapoints
.
Image
),
(
F
.
elastic_bounding_boxes
,
datapoints
.
BoundingBoxes
),
(
F
.
elastic_bounding_boxes
,
datapoints
.
BoundingBoxes
),
(
F
.
elastic_mask
,
datapoints
.
Mask
),
(
F
.
elastic_mask
,
datapoints
.
Mask
),
(
F
.
elastic_video
,
datapoints
.
Video
),
(
F
.
elastic_video
,
datapoints
.
Video
),
...
...
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