MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / __init__

Method __init__

utils.py:40–43  ·  view source on GitHub ↗
(self, p=0.5, radius_min=0.1, radius_max=2.)

Source from the content-addressed store, hash-verified

38 Apply Gaussian Blur to the PIL image.
39 """
40 def __init__(self, p=0.5, radius_min=0.1, radius_max=2.):
41 self.prob = p
42 self.radius_min = radius_min
43 self.radius_max = radius_max
44
45 def __call__(self, img):
46 do_it = random.random() <= self.prob

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected