Commit 1624201f authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Add an identity decoder field to the volumetric_models decoder config.

PiperOrigin-RevId: 382051540
parent 97ae894b
...@@ -21,6 +21,12 @@ import dataclasses ...@@ -21,6 +21,12 @@ import dataclasses
from official.modeling import hyperparams from official.modeling import hyperparams
@dataclasses.dataclass
class Identity(hyperparams.Config):
"""Identity config."""
pass
@dataclasses.dataclass @dataclasses.dataclass
class UNet3DDecoder(hyperparams.Config): class UNet3DDecoder(hyperparams.Config):
"""UNet3D decoder config.""" """UNet3D decoder config."""
...@@ -37,7 +43,9 @@ class Decoder(hyperparams.OneOfConfig): ...@@ -37,7 +43,9 @@ class Decoder(hyperparams.OneOfConfig):
Attributes: Attributes:
type: 'str', type of decoder be used, on the of fields below. 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 type: Optional[str] = None
identity: Identity = Identity()
unet_3d_decoder: UNet3DDecoder = UNet3DDecoder() unet_3d_decoder: UNet3DDecoder = UNet3DDecoder()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment