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
84c403ae
Unverified
Commit
84c403ae
authored
Dec 26, 2023
by
Jianqi Pan
Committed by
GitHub
Dec 25, 2023
Browse files
fix: cannot set guidance_scale (#6326)
fix: set guidance_scale
parent
f4b0b26f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/community/stable_diffusion_tensorrt_img2img.py
examples/community/stable_diffusion_tensorrt_img2img.py
+1
-1
No files found.
examples/community/stable_diffusion_tensorrt_img2img.py
View file @
84c403ae
...
...
@@ -1004,7 +1004,7 @@ class TensorRTStableDiffusionImg2ImgPipeline(StableDiffusionImg2ImgPipeline):
"""
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