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

Method __init__

dzoedepth/data/ddad.py:35–39  ·  view source on GitHub ↗
(self, resize_shape)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected