Skip to content

Commit

Permalink
fix: TensorRTStableDiffusionPipeline cannot set guidance_scale (huggi…
Browse files Browse the repository at this point in the history
  • Loading branch information
caiyueliang authored Feb 24, 2024
1 parent 66a7160 commit c09bb58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/community/stable_diffusion_tensorrt_inpaint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,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
2 changes: 1 addition & 1 deletion examples/community/stable_diffusion_tensorrt_txt2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,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 c09bb58

Please sign in to comment.