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

Method is_valid_config

Module/KeypointSelector.py:80–85  ·  view source on GitHub ↗
(cls, config: SimpleNamespace | None)

Source from the content-addressed store, hash-verified

78class MappingPointSelector(IKeypointSelector):
79 @classmethod
80 def is_valid_config(cls, config: SimpleNamespace | None) -> None:
81 return cls._enforce_config_spec(config, {
82 "max_depth": lambda v: isinstance(v, float),
83 "max_depth_cov": lambda v: isinstance(v, float),
84 "mask_width": lambda v: isinstance(v, int)
85 })
86
87 def select_point(self, frame: StereoData, numPoint: int, depth0_est: IStereoDepth.Output, depth1_est: IStereoDepth.Output, match_est: IMatcher.Output | None) -> torch.Tensor:
88 assert depth0_est.cov is not None

Callers

nothing calls this directly

Calls 1

_enforce_config_specMethod · 0.80

Tested by

no test coverage detected