MCPcopy Index your code
hub / github.com/DSL-Lab/StreamSplat / __init__

Method __init__

model/depth_wrapper.py:15–19  ·  view source on GitHub ↗
(self, model_name: str)

Source from the content-addressed store, hash-verified

13
14class 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

Callers

nothing calls this directly

Calls 2

_build_depth_anythingMethod · 0.95
_freezeMethod · 0.95

Tested by

no test coverage detected