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

Method __init__

ldm/modules/midas/midas/transforms.py:201–203  ·  view source on GitHub ↗
(self, mean, std)

Source from the content-addressed store, hash-verified

199 """
200
201 def __init__(self, mean, std):
202 self.__mean = mean
203 self.__std = std
204
205 def __call__(self, sample):
206 sample["image"] = (sample["image"] - self.__mean) / self.__std

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected