MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / StackTransform

Class StackTransform

pycontrast/datasets/util.py:16–22  ·  view source on GitHub ↗

transform a group of images independently

Source from the content-addressed store, hash-verified

14
15
16class StackTransform(object):
17 """transform a group of images independently"""
18 def __init__(self, transform):
19 self.transform = transform
20
21 def __call__(self, imgs):
22 return torch.stack([self.transform(crop) for crop in imgs])
23
24
25class JigsawCrop(object):

Callers 1

build_transformsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected