MCPcopy Create free account
hub / github.com/apple/ml-sharp / GaussianDecoderParams

Class GaussianDecoderParams

src/sharp/models/params.py:132–160  ·  view source on GitHub ↗

Parameters for backbone with default values.

Source from the content-addressed store, hash-verified

130
131@dataclasses.dataclass
132class GaussianDecoderParams:
133 """Parameters for backbone with default values."""
134
135 dim_in: int = 5
136 dim_out: int = 32
137 # Which normalization to use in backbone.
138 norm_type: NormLayerName = "group_norm"
139 # How many groups to use for group normalization.
140 norm_num_groups: int = 8
141 # Stride of backbone.
142 stride: int = 2
143
144 patch_encoder_preset: ViTPreset = "dinov2l16_384"
145 image_encoder_preset: ViTPreset = "dinov2l16_384"
146
147 # Dimensionality of feature maps for DPT decoder.
148 dims_decoder: DimsDecoder = (128, 128, 128, 128, 128)
149
150 # Whether to use depth as input.
151 use_depth_input: bool = True
152
153 # Whether to enable gradient checkpointing for the backbone
154 grad_checkpointing: bool = False
155
156 # What mode to use for upsampling in decoder.
157 upsampling_mode: UpsamplingMode = "transposed_conv"
158
159 # The type of image encoder.
160 image_encoder_type: DPTImageEncoderType = "skip_conv_kernel2"
161
162
163@dataclasses.dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected