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

Method __call__

dzoedepth/data/vkitti.py:41–50  ·  view source on GitHub ↗
(self, sample)

Source from the content-addressed store, hash-verified

39 # self.resize = transforms.Resize((375, 1242))
40
41 def __call__(self, sample):
42 image, depth = sample['image'], sample['depth']
43
44 image = self.to_tensor(image)
45 image = self.normalize(image)
46 depth = self.to_tensor(depth)
47
48 # image = self.resize(image)
49
50 return {'image': image, 'depth': depth, 'dataset': "vkitti"}
51
52 def to_tensor(self, pic):
53

Callers

nothing calls this directly

Calls 2

to_tensorMethod · 0.95
normalizeMethod · 0.80

Tested by

no test coverage detected