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

Method __init__

src/sharp/models/predictor.py:30–37  ·  view source on GitHub ↗

Initialize DepthAlignmentWrapper. Args: scale_map_estimator: Module to align monodepth to ground truth depth.

(self, scale_map_estimator: nn.Module | None)

Source from the content-addressed store, hash-verified

28 """
29
30 def __init__(self, scale_map_estimator: nn.Module | None):
31 """Initialize DepthAlignmentWrapper.
32
33 Args:
34 scale_map_estimator: Module to align monodepth to ground truth depth.
35 """
36 super().__init__()
37 self.scale_map_estimator = scale_map_estimator
38
39 def forward(
40 self,

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected