(cls, config: SimpleNamespace | None)
| 206 | |
| 207 | @classmethod |
| 208 | def is_valid_config(cls, config: SimpleNamespace | None) -> None: |
| 209 | cls._enforce_config_spec(config, { |
| 210 | "mask_width": lambda m: isinstance(m, int) and m >= 0, |
| 211 | "grad_std" : lambda g: isinstance(g, (int, float)) and g > 0., |
| 212 | "nms_size" : lambda k: isinstance(k, int) and k >= 0 and (k % 2 == 1), |
| 213 | }) |
| 214 | |
| 215 | |
| 216 | class GridSelector(IKeypointSelector): |
nothing calls this directly
no test coverage detected