MCPcopy Create free account
hub / github.com/Kitware/COAT / Compose

Class Compose

utils/transforms.py:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 return mixed_images
32
33class Compose:
34 def __init__(self, transforms):
35 self.transforms = transforms
36
37 def __call__(self, image, target):
38 for t in self.transforms:
39 image, target = t(image, target)
40 return image, target
41
42
43class RandomHorizontalFlip:

Callers 1

build_transformsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected