Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
c09bb588
Unverified
Commit
c09bb588
authored
Feb 24, 2024
by
caiyueliang
Committed by
GitHub
Feb 23, 2024
Browse files
fix: TensorRTStableDiffusionPipeline cannot set guidance_scale (#7065)
parent
66a7160f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
examples/community/stable_diffusion_tensorrt_inpaint.py
examples/community/stable_diffusion_tensorrt_inpaint.py
+1
-1
examples/community/stable_diffusion_tensorrt_txt2img.py
examples/community/stable_diffusion_tensorrt_txt2img.py
+1
-1
No files found.
examples/community/stable_diffusion_tensorrt_inpaint.py
View file @
c09bb588
...
...
@@ -1011,7 +1011,7 @@ class TensorRTStableDiffusionInpaintPipeline(StableDiffusionInpaintPipeline):
"""
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
)
...
...
examples/community/stable_diffusion_tensorrt_txt2img.py
View file @
c09bb588
...
...
@@ -882,7 +882,7 @@ class TensorRTStableDiffusionPipeline(StableDiffusionPipeline):
"""
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment