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

Method __call__

transforms/transforms.py:71–72  ·  view source on GitHub ↗
(self, img, blockout_predefined_area=False)

Source from the content-addressed store, hash-verified

69
70class MaskToTensor(object):
71 def __call__(self, img, blockout_predefined_area=False):
72 return torch.from_numpy(np.array(img, dtype=np.int32)).long()
73
74class RelaxedBoundaryLossToTensor(object):
75 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected