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
96dbada4
Unverified
Commit
96dbada4
authored
Aug 08, 2022
by
vcwai
Committed by
GitHub
Aug 08, 2022
Browse files
Type fix in transformers.py (#6376)
Update `RandomPhotometricDistort` `__init__` argument to correct types.
parent
96aa3d92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
references/detection/transforms.py
references/detection/transforms.py
+4
-4
No files found.
references/detection/transforms.py
View file @
96dbada4
...
...
@@ -218,10 +218,10 @@ class RandomZoomOut(nn.Module):
class
RandomPhotometricDistort
(
nn
.
Module
):
def
__init__
(
self
,
contrast
:
Tuple
[
float
]
=
(
0.5
,
1.5
),
saturation
:
Tuple
[
float
]
=
(
0.5
,
1.5
),
hue
:
Tuple
[
float
]
=
(
-
0.05
,
0.05
),
brightness
:
Tuple
[
float
]
=
(
0.875
,
1.125
),
contrast
:
Tuple
[
float
,
float
]
=
(
0.5
,
1.5
),
saturation
:
Tuple
[
float
,
float
]
=
(
0.5
,
1.5
),
hue
:
Tuple
[
float
,
float
]
=
(
-
0.05
,
0.05
),
brightness
:
Tuple
[
float
,
float
]
=
(
0.875
,
1.125
),
p
:
float
=
0.5
,
):
super
().
__init__
()
...
...
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