MCPcopy Create free account
hub / github.com/apple/ml-4m / __init__

Method __init__

fourm/data/modality_transforms.py:247–248  ·  view source on GitHub ↗
(self, standardize_depth=True)

Source from the content-addressed store, hash-verified

245class DepthTransform(ImageTransform):
246
247 def __init__(self, standardize_depth=True):
248 self.standardize_depth = standardize_depth
249
250 def depth_to_tensor(self, img):
251 img = torch.Tensor( img / (2 ** 16 - 1.0) )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected