Skip to content

Commit

Permalink
fix(api): use correct latents for scheduler noise
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 27, 2023
1 parent bad00dc commit bc946bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/onnx_web/diffusers/pipelines/panorama.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def img2img(

noise = generator.randn(*latents.shape).astype(latents_dtype)
latents = self.scheduler.add_noise(
torch.from_numpy(init_latents), torch.from_numpy(noise), torch.from_numpy(timesteps)
torch.from_numpy(latents), torch.from_numpy(noise), torch.from_numpy(timesteps)
)
latents = latents.numpy()

Expand Down

0 comments on commit bc946bb

Please sign in to comment.