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
1624201f
Commit
1624201f
authored
Jun 29, 2021
by
A. Unique TensorFlower
Browse files
Add an identity decoder field to the volumetric_models decoder config.
PiperOrigin-RevId: 382051540
parent
97ae894b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
official/vision/beta/projects/volumetric_models/configs/decoders.py
...ision/beta/projects/volumetric_models/configs/decoders.py
+9
-1
No files found.
official/vision/beta/projects/volumetric_models/configs/decoders.py
View file @
1624201f
...
...
@@ -21,6 +21,12 @@ import dataclasses
from
official.modeling
import
hyperparams
@
dataclasses
.
dataclass
class
Identity
(
hyperparams
.
Config
):
"""Identity config."""
pass
@
dataclasses
.
dataclass
class
UNet3DDecoder
(
hyperparams
.
Config
):
"""UNet3D decoder config."""
...
...
@@ -37,7 +43,9 @@ class Decoder(hyperparams.OneOfConfig):
Attributes:
type: 'str', type of decoder be used, on the of fields below.
fpn: fpn config.
identity: identity decoder config.
unet_3d_decoder: UNet3D decoder config.
"""
type
:
Optional
[
str
]
=
None
identity
:
Identity
=
Identity
()
unet_3d_decoder
:
UNet3DDecoder
=
UNet3DDecoder
()
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