MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / DeNormalize

Class DeNormalize

utils/transforms.py:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16class DeNormalize(object):
17 def __init__(self, mean, std):
18 self.mean = mean
19 self.std = std
20
21 def __call__(self, tensor):
22 for t, m, s in zip(tensor, self.mean, self.std):
23 t.mul_(s).add_(m)
24 return tensor
25
26
27class MaskToTensor(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected