| 184 | |
| 185 | |
| 186 | class RandomShear: |
| 187 | def __init__(self, delta=0.1): |
| 188 | self.delta = delta |
| 189 | |
| 190 | def __call__(self, coords): |
| 191 | T = np.eye(3) + self.delta * np.random.randn(3, 3) |
| 192 | return coords @ T.astype(np.float32) |
| 193 | |
| 194 | |
| 195 | class JitterPoints: |
nothing calls this directly
no outgoing calls
no test coverage detected