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

Class Compose

transforms/joint_transforms.py:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37class Compose(object):
38 def __init__(self, transforms):
39 self.transforms = transforms
40
41 def __call__(self, img, mask):
42 assert img.size == mask.size
43 for t in self.transforms:
44 img, mask = t(img, mask)
45 return img, mask
46
47
48def add_margin(pil_img, top, right, bottom, left, margin_color):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected