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

Method __call__

utils/transforms.py:28–29  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

26
27class MaskToTensor(object):
28 def __call__(self, img):
29 return torch.from_numpy(np.array(img, dtype=np.int32)).long()
30
31
32class FreeScale(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected