| 45 | |
| 46 | |
| 47 | class RandomGaussianBlur(object): |
| 48 | def __call__(self, img): |
| 49 | sigma = 0.15 + random.random() * 1.15 |
| 50 | blurred_img = gaussian(np.array(img), sigma=sigma, multichannel=True) |
| 51 | blurred_img *= 255 |
| 52 | return Image.fromarray(blurred_img.astype(np.uint8)) |
nothing calls this directly
no outgoing calls
no test coverage detected