MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / __init__

Method __init__

Module/KeypointSelector.py:56–61  ·  view source on GitHub ↗
(self, config: SimpleNamespace)

Source from the content-addressed store, hash-verified

54 requirement to these according to the provided weight.
55 """
56 def __init__(self, config: SimpleNamespace):
57 super().__init__(config)
58 self.selectors = [IKeypointSelector.instantiate(arg.type, arg.args) for arg in self.config.selector_args]
59
60 self.weight = torch.tensor(self.config.weight)
61 self.weight = self.weight / self.weight.sum()
62
63 def select_point(self, frame: StereoData, numPoint: int, depth0_est: IStereoDepth.Output, depth1_est: IStereoDepth.Output, match_est: IMatcher.Output | None) -> torch.Tensor:
64 keypoints = []

Callers 1

__init__Method · 0.45

Calls 2

instantiateMethod · 0.80
tensorMethod · 0.45

Tested by

no test coverage detected