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
ead82fed
Unverified
Commit
ead82fed
authored
Mar 26, 2024
by
YiYi Xu
Committed by
GitHub
Mar 27, 2024
Browse files
fix torch.compile for multi-controlnet of sdxl inpaint (#7476)
fix Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
45b42d12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py
...pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py
+1
-4
No files found.
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py
View file @
ead82fed
...
...
@@ -1601,10 +1601,7 @@ class StableDiffusionXLControlNetInpaintPipeline(
1.0
-
float
(
i
/
len
(
timesteps
)
<
s
or
(
i
+
1
)
/
len
(
timesteps
)
>
e
)
for
s
,
e
in
zip
(
control_guidance_start
,
control_guidance_end
)
]
if
isinstance
(
self
.
controlnet
,
MultiControlNetModel
):
controlnet_keep
.
append
(
keeps
)
else
:
controlnet_keep
.
append
(
keeps
[
0
])
controlnet_keep
.
append
(
keeps
if
isinstance
(
controlnet
,
MultiControlNetModel
)
else
keeps
[
0
])
# 9. Prepare extra step kwargs. TODO: Logic should ideally just be moved out of the pipeline
height
,
width
=
latents
.
shape
[
-
2
:]
...
...
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