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

Function create_initializer

src/sharp/models/initializer.py:17–30  ·  view source on GitHub ↗

Create inpainter.

(params: InitializerParams)

Source from the content-addressed store, hash-verified

15
16
17def create_initializer(params: InitializerParams) -> nn.Module:
18 """Create inpainter."""
19 return MultiLayerInitializer(
20 num_layers=params.num_layers,
21 stride=params.stride,
22 base_depth=params.base_depth,
23 scale_factor=params.scale_factor,
24 disparity_factor=params.disparity_factor,
25 color_option=params.color_option,
26 first_layer_depth_option=params.first_layer_depth_option,
27 rest_layer_depth_option=params.rest_layer_depth_option,
28 normalize_depth=params.normalize_depth,
29 feature_input_stop_grad=params.feature_input_stop_grad,
30 )
31
32
33class GaussianBaseValues(NamedTuple):

Callers 1

create_predictorFunction · 0.85

Calls 1

Tested by

no test coverage detected