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
ModelZoo
ResNet50_tensorflow
Commits
0692e42f
"examples/pytorch/vscode:/vscode.git/clone" did not exist on "2fbffd3122b0ea5bc8c4ccfb787e47bb0c603146"
Unverified
Commit
0692e42f
authored
Mar 29, 2022
by
srihari-humbarwadi
Browse files
added `panoptic_deeplab_policy`
parent
cb7e2650
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
official/vision/ops/augment.py
official/vision/ops/augment.py
+11
-0
No files found.
official/vision/ops/augment.py
View file @
0692e42f
...
@@ -1583,6 +1583,7 @@ class AutoAugment(ImageAugment):
...
@@ -1583,6 +1583,7 @@ class AutoAugment(ImageAugment):
'reduced_cifar10'
:
self
.
policy_reduced_cifar10
(),
'reduced_cifar10'
:
self
.
policy_reduced_cifar10
(),
'svhn'
:
self
.
policy_svhn
(),
'svhn'
:
self
.
policy_svhn
(),
'reduced_imagenet'
:
self
.
policy_reduced_imagenet
(),
'reduced_imagenet'
:
self
.
policy_reduced_imagenet
(),
'panoptic_deeplab_policy'
:
self
.
panoptic_deeplab_policy
(),
}
}
if
not
policies
:
if
not
policies
:
...
@@ -1888,6 +1889,16 @@ class AutoAugment(ImageAugment):
...
@@ -1888,6 +1889,16 @@ class AutoAugment(ImageAugment):
]
]
return
policy
return
policy
@
staticmethod
def
panoptic_deeplab_policy
():
policy
=
[
[(
'Sharpness'
,
0.4
,
1.4
),
(
'Brightness'
,
0.2
,
2.0
)],
[(
'Equalize'
,
0.0
,
1.8
),
(
'Contrast'
,
0.2
,
2.0
)],
[(
'Sharpness'
,
0.2
,
1.8
),
(
'Color'
,
0.2
,
1.8
)],
[(
'Solarize'
,
0.2
,
1.4
),
(
'Equalize'
,
0.6
,
1.8
)],
[(
'Sharpness'
,
0.2
,
0.2
),
(
'Equalize'
,
0.2
,
1.4
)]]
return
policy
@
staticmethod
@
staticmethod
def
policy_test
():
def
policy_test
():
"""Autoaugment test policy for debugging."""
"""Autoaugment test policy for debugging."""
...
...
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