Create inpainter.
(params: InitializerParams)
| 15 | |
| 16 | |
| 17 | def 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 | |
| 33 | class GaussianBaseValues(NamedTuple): |
no test coverage detected