Commit 7803632
authored
fix: convert boundary_ratio from timestep space to index space (#32)
* fix: convert boundary_ratio from timestep space to index space via inverse sigma_shift
* fix: use table lookup for boundary index instead of inverse sigma_shift formula
Replace the analytical inverse sigma_shift formula with a direct table
lookup on scheduler.timesteps. This avoids floating-point precision
issues (e.g. 0.24999 vs 0.25) and the sigma_min != 0 approximation
error, giving an exact boundary at the intended timestep threshold.1 parent 942d493 commit 7803632
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1386 | 1386 | | |
1387 | 1387 | | |
1388 | 1388 | | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1389 | 1392 | | |
1390 | | - | |
| 1393 | + | |
1391 | 1394 | | |
1392 | | - | |
| 1395 | + | |
1393 | 1396 | | |
1394 | 1397 | | |
1395 | 1398 | | |
| |||
0 commit comments