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

Method __init__

utils/joint_transforms.py:21–26  ·  view source on GitHub ↗
(self, size, padding=0)

Source from the content-addressed store, hash-verified

19
20class RandomCrop(object):
21 def __init__(self, size, padding=0):
22 if isinstance(size, numbers.Number):
23 self.size = (int(size), int(size))
24 else:
25 self.size = size
26 self.padding = padding
27
28 def __call__(self, img, mask):
29 if self.padding > 0:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected