Skip to content

Commit 6689572

Browse files
authored
Update pipeline_onnx_stable_diffusion.py with comment for previous commit
Added comment on purpose of init_noise_sigma. This comment exists in related scripts that use the same line of code, but it was missing here.
1 parent c8b9e25 commit 6689572

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ def __call__(
383383
# set timesteps
384384
self.scheduler.set_timesteps(num_inference_steps)
385385

386+
# scale the initial noise by the standard deviation required by the scheduler
386387
latents = latents * self.scheduler.init_noise_sigma
387388

388389
# prepare extra kwargs for the scheduler step, since not all schedulers have the same signature

0 commit comments

Comments
 (0)