(self, config: SimpleNamespace)
| 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 = [] |
no test coverage detected