Skip to content

Commit dd75372

Browse files
authored
fix: correct double increment on flow denoisers sigma calculations (#1372)
1 parent 8afbeb6 commit dd75372

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/denoiser.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@ struct DiscreteFlowDenoiser : public Denoiser {
668668
}
669669

670670
void set_parameters() {
671-
for (int i = 1; i < TIMESTEPS + 1; i++) {
672-
sigmas[i - 1] = t_to_sigma(static_cast<float>(i));
671+
for (int i = 0; i < TIMESTEPS; i++) {
672+
sigmas[i] = t_to_sigma(static_cast<float>(i));
673673
}
674674
}
675675

0 commit comments

Comments
 (0)