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

Method __init__

ldm/data/util.py:7–9  ·  view source on GitHub ↗
(self, model_type)

Source from the content-addressed store, hash-verified

5
6class AddMiDaS(object):
7 def __init__(self, model_type):
8 super().__init__()
9 self.transform = load_midas_transform(model_type)
10
11 def pt2np(self, x):
12 x = ((x + 1.0) * .5).detach().cpu().numpy()

Callers

nothing calls this directly

Calls 1

load_midas_transformFunction · 0.90

Tested by

no test coverage detected