Skip to content

Commit

Permalink
fix: cannot set guidance_scale (#6326)
Browse files Browse the repository at this point in the history
fix: set guidance_scale
  • Loading branch information
Jannchie authored Dec 25, 2023
1 parent f4b0b26 commit 84c403a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/community/stable_diffusion_tensorrt_img2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def __call__(
"""
self.generator = generator
self.denoising_steps = num_inference_steps
self.guidance_scale = guidance_scale
self._guidance_scale = guidance_scale

# Pre-compute latent input scales and linear multistep coefficients
self.scheduler.set_timesteps(self.denoising_steps, device=self.torch_device)
Expand Down

0 comments on commit 84c403a

Please sign in to comment.