(self, probability: float = 0.5, sl: float = 0.02, sh: float = 0.4, r1: float = 0.3)
| 178 | |
| 179 | class RandomErasing: |
| 180 | def __init__(self, probability: float = 0.5, sl: float = 0.02, sh: float = 0.4, r1: float = 0.3): |
| 181 | self.probability = probability |
| 182 | self.sl = sl |
| 183 | self.sh = sh |
| 184 | self.r1 = r1 |
| 185 | |
| 186 | def __call__(self, img): |
| 187 | if random.uniform(0, 1) >= self.probability: |
nothing calls this directly
no outgoing calls
no test coverage detected