MCPcopy Create free account
hub / github.com/HobbitLong/SupContrast / __init__

Method __init__

util.py:11–12  ·  view source on GitHub ↗
(self, transform)

Source from the content-addressed store, hash-verified

9class TwoCropTransform:
10 """Create two crops of the same image"""
11 def __init__(self, transform):
12 self.transform = transform
13
14 def __call__(self, x):
15 return [self.transform(x), self.transform(x)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected