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

Class InitializerParams

src/sharp/models/params.py:70–102  ·  view source on GitHub ↗

Parameters for initializer.

Source from the content-addressed store, hash-verified

68
69@dataclasses.dataclass
70class InitializerParams:
71 """Parameters for initializer."""
72
73 # Common parameters.
74 # Multiply scale of Gaussians by this factor.
75 scale_factor: float = 1.0
76 # Factor to convert inverse depth to disparity.
77 disparity_factor: float = 1.0
78 # Stride of the initializer.
79 stride: int = 2
80
81 # Parameters that only affect MultiLayerInitializer.
82 # How many layers of Gaussians to predict (only available for MultiLayerInitializer).
83 num_layers: int = 2
84 # Which option to use for depth initialization.
85 first_layer_depth_option: DepthInitOption = "surface_min"
86 rest_layer_depth_option: DepthInitOption = "surface_min"
87 # Which option to use for color initialization.
88 color_option: ColorInitOption = "all_layers"
89 # Which depth value to use for depth layers.
90 base_depth: float = 10.0
91 # Deactivate gradient for feature inputs.
92 feature_input_stop_grad: bool = False
93 # Whether to normalize depth to [DepthTransformParam.depth_min,
94 # DepthTransformParam.depth_max).
95 normalize_depth: bool = True
96
97 # Output only the inpainted layer. In this case, num_layers = 1.
98 output_inpainted_layer_only: bool = False
99 # Whether to set the uninpainted region to zero opacities.
100 set_uninpainted_opacity_to_zero: bool = False
101 # Whether to concatenate the inpainting mask to the feature input.
102 concat_inpainting_mask: bool = False
103
104
105@dataclasses.dataclass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected