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

Method __init__

transforms/joint_transforms.py:197–201  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

195
196class CenterCrop(object):
197 def __init__(self, size):
198 if isinstance(size, numbers.Number):
199 self.size = (int(size), int(size))
200 else:
201 self.size = size
202
203 def __call__(self, img, mask):
204 assert img.size == mask.size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected