(img, v)
| 187 | |
| 188 | |
| 189 | def Cutout(img, v): # [0, 60] => percentage: [0, 0.2] |
| 190 | assert 0.0 <= v <= 0.2 |
| 191 | if v <= 0.: |
| 192 | return img |
| 193 | |
| 194 | v = v * img.size[0] |
| 195 | return CutoutAbs(img, v) |
| 196 | |
| 197 | |
| 198 | def CutoutAbs(img, v): # [0, 60] => percentage: [0, 0.2] |
nothing calls this directly
no test coverage detected