MCPcopy Create free account
hub / github.com/Parskatt/DKM / __init__

Method __init__

dkm/utils/utils.py:191–194  ·  view source on GitHub ↗
(self, mean, std)

Source from the content-addressed store, hash-verified

189
190class TupleNormalize(object):
191 def __init__(self, mean, std):
192 self.mean = mean
193 self.std = std
194 self.normalize = transforms.Normalize(mean=mean, std=std)
195
196 def __call__(self, im_tuple):
197 return [self.normalize(im) for im in im_tuple]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected