Commit e9bc7ee
fix(train): ensure consistent color augmentation RNG across base and wrist cameras
Fixes #859. augmax.Chain splits RNG by transform count, so base cameras
(4 transforms) and wrist cameras (1 transform) received different sub-RNGs
for ColorJitter despite the same input seed. This caused inconsistent color
semantics between camera views.
Split augmentation into spatial (camera-specific) and color (shared) stages
with deterministic RNG derivation via jax.random.fold_in, ensuring all cameras
see the same ColorJitter parameters within each sample.1 parent c23745b commit e9bc7ee
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
171 | 172 | | |
172 | | - | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | | - | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | | - | |
180 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | | - | |
183 | | - | |
184 | | - | |
| 187 | + | |
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| |||
0 commit comments