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

Method __call__

pycontrast/datasets/util.py:168–171  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

166class GaussianBlur2(object):
167 """Gaussian Blur version 2"""
168 def __call__(self, x):
169 sigma = np.random.uniform(0.1, 2.0)
170 x = x.filter(ImageFilter.GaussianBlur(radius=sigma))
171 return x
172
173
174class GaussianBlurBatch(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected