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

Method __init__

utils/joint_transforms.py:141–144  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

139
140class RandomSized(object):
141 def __init__(self, size):
142 self.size = size
143 self.scale = Scale(self.size)
144 self.crop = RandomCrop(self.size)
145
146 def __call__(self, img, mask):
147 assert img.size == mask.size

Callers

nothing calls this directly

Calls 2

ScaleClass · 0.85
RandomCropClass · 0.85

Tested by

no test coverage detected