MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / __init__

Method __init__

dzoedepth/data/vkitti2.py:36–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34
35class ToTensor(object):
36 def __init__(self):
37 # self.normalize = transforms.Normalize(
38 # mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
39 self.normalize = lambda x: x
40 # self.resize = transforms.Resize((375, 1242))
41
42 def __call__(self, sample):
43 image, depth = sample['image'], sample['depth']

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected