Skip to content

Commit 36abf47

Browse files
committed
Fixed an oversight when steps is equal to the length of the initial noise values
1 parent 078ed5a commit 36abf47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

denoiser.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ struct AYSSchedule : SigmaSchedule {
207207
* size using log-linear interpolation */
208208
if ((len + 1) != inputs.size()) {
209209
results = logLinearInterpolation(inputs, len + 1);
210-
}
210+
} else {
211+
results = inputs;
212+
}
211213

212214
/* Not sure if this is strictly neccessary */
213215
results[len] = 0.0f;

0 commit comments

Comments
 (0)