MCPcopy Create free account
hub / github.com/SwinTransformer/Transformer-SSL / GaussianBlur

Class GaussianBlur

data/build.py:183–189  ·  view source on GitHub ↗

Gaussian Blur version 2

Source from the content-addressed store, hash-verified

181
182
183class GaussianBlur(object):
184 """Gaussian Blur version 2"""
185
186 def __call__(self, x):
187 sigma = np.random.uniform(0.1, 2.0)
188 x = x.filter(ImageFilter.GaussianBlur(radius=sigma))
189 return x

Callers 1

build_transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected