(self, model_name: str)
| 13 | |
| 14 | class DepthAnythingWrapper(nn.Module): |
| 15 | def __init__(self, model_name: str): |
| 16 | super().__init__() |
| 17 | assert model_name in model_configs.keys(), f"model_name should be in {model_configs.keys()}" |
| 18 | self.model = self._build_depth_anything(model_name) |
| 19 | self._freeze() |
| 20 | |
| 21 | def _build_depth_anything(self, model_name): |
| 22 | from importlib import import_module |
nothing calls this directly
no test coverage detected