-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Feature] MultiControlNet support for SD3Impainting #11251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
raise NotImplementedError("MultiControlNetModel is not supported for SD3ControlNetInpaintingPipeline.") | ||
control_images = [] | ||
|
||
for control_image_ in control_image: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail if control_image
is not passed as a list. Looks like SD3 ControlNet and Flux ControlNet pipelines are missing checks for this. See ControlNet Union XL as an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, it should fail, no?
if isinstance(self.controlnet, SD3ControlNetModel):
this statement is a single controlnet model and expects a single image
elif isinstance(self.controlnet, SD3MultiControlNetModel):
this statement is multiple controlnet stacked and expects list of images one image per controlnet
let me know if I am missing something ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is expected to fail, but gracefully.
expects list of images one image per controlnet
These checks are missing.
See ControlNet Union XL as an example.
@hlky, gentle ping |
What does this PR do?
Fixes #11208
Who can review?
@yiyixuxu