(self, d1: int = 96, d2: int = 224, rotate: float = 1, ratio: float = 0.5)
| 148 | |
| 149 | class GridMask: |
| 150 | def __init__(self, d1: int = 96, d2: int = 224, rotate: float = 1, ratio: float = 0.5): |
| 151 | self.d1 = d1 |
| 152 | self.d2 = d2 |
| 153 | self.rotate = rotate |
| 154 | self.ratio = ratio |
| 155 | |
| 156 | def __call__(self, img): |
| 157 | h, w = img.shape[-2:] |
nothing calls this directly
no outgoing calls
no test coverage detected