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
995f9b95
Unverified
Commit
995f9b95
authored
Mar 23, 2023
by
Philip Meier
Committed by
GitHub
Mar 23, 2023
Browse files
fix test_detection_preset for ssd data augmentation (#7447)
parent
18a2e8eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/test_transforms_v2.py
test/test_transforms_v2.py
+2
-2
No files found.
test/test_transforms_v2.py
View file @
995f9b95
...
@@ -1875,7 +1875,7 @@ def test_detection_preset(image_type, data_augmentation, to_tensor, sanitize):
...
@@ -1875,7 +1875,7 @@ def test_detection_preset(image_type, data_augmentation, to_tensor, sanitize):
elif
data_augmentation
==
"ssd"
:
elif
data_augmentation
==
"ssd"
:
t
=
[
t
=
[
transforms
.
RandomPhotometricDistort
(
p
=
1
),
transforms
.
RandomPhotometricDistort
(
p
=
1
),
transforms
.
RandomZoomOut
(
fill
=
defaultdict
(
lambda
:
(
123.0
,
117.0
,
104.0
),
{
datapoints
.
Mask
:
0
})),
transforms
.
RandomZoomOut
(
fill
=
defaultdict
(
lambda
:
(
123.0
,
117.0
,
104.0
),
{
datapoints
.
Mask
:
0
})
,
p
=
1
),
transforms
.
RandomIoUCrop
(),
transforms
.
RandomIoUCrop
(),
transforms
.
RandomHorizontalFlip
(
p
=
1
),
transforms
.
RandomHorizontalFlip
(
p
=
1
),
to_tensor
,
to_tensor
,
...
@@ -1934,7 +1934,7 @@ def test_detection_preset(image_type, data_augmentation, to_tensor, sanitize):
...
@@ -1934,7 +1934,7 @@ def test_detection_preset(image_type, data_augmentation, to_tensor, sanitize):
# param is True.
# param is True.
# Note that the values below are probably specific to the random seed
# Note that the values below are probably specific to the random seed
# set above (which is fine).
# set above (which is fine).
(
True
,
"ssd"
):
4
,
(
True
,
"ssd"
):
5
,
(
True
,
"ssdlite"
):
4
,
(
True
,
"ssdlite"
):
4
,
}.
get
((
sanitize
,
data_augmentation
),
num_boxes
)
}.
get
((
sanitize
,
data_augmentation
),
num_boxes
)
...
...
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