MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / __init__

Method __init__

ldm/modules/midas/api.py:150–155  ·  view source on GitHub ↗
(self, model_type)

Source from the content-addressed store, hash-verified

148 ]
149
150 def __init__(self, model_type):
151 super().__init__()
152 assert (model_type in self.MODEL_TYPES_ISL)
153 model, _ = load_model(model_type)
154 self.model = model
155 self.model.train = disabled_train
156
157 def forward(self, x):
158 # x in 0..1 as produced by calling self.transform on a 0..1 float64 numpy array

Callers

nothing calls this directly

Calls 1

load_modelFunction · 0.85

Tested by

no test coverage detected