(self, p=0.2)
| 65 | Apply Solarization to the PIL image. |
| 66 | """ |
| 67 | def __init__(self, p=0.2): |
| 68 | self.p = p |
| 69 | self.transf = transforms.Grayscale(3) |
| 70 | |
| 71 | def __call__(self, img): |
| 72 | if random.random() < self.p: |
nothing calls this directly
no outgoing calls
no test coverage detected