Commit 1b7d094
SAY-5
fix(utils/data_augmentation): correct dangling tgt_fov_max typo in sample_perspective
The absolute-range clamp in sample_perspective was written as:
tgt_fov_x_min, tgt_fov_max = max(...), min(..., tgt_fov_x_max)
which shadowed the wrong name: tgt_fov_x_max was never overwritten, so the
subsequent rng.uniform(..., tgt_fov_x_max) call silently bypassed the
absolute maximum clamp and tgt_fov_max became a dangling local. Rename the
target to tgt_fov_x_max so the absolute bound is actually applied when
drawing tgt_fov_x.
Closes #146.1 parent 0744441 commit 1b7d094
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments