MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / DeNormalize

Class DeNormalize

transforms/transforms.py:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59class DeNormalize(object):
60 def __init__(self, mean, std):
61 self.mean = mean
62 self.std = std
63
64 def __call__(self, tensor):
65 for t, m, s in zip(tensor, self.mean, self.std):
66 t.mul_(s).add_(m)
67 return tensor
68
69
70class MaskToTensor(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected