Skip to content

Conversation

@ishan-modi
Copy link
Contributor

What does this PR do?

Fixes #11208

Who can review?

@yiyixuxu

raise NotImplementedError("MultiControlNetModel is not supported for SD3ControlNetInpaintingPipeline.")
control_images = []

for control_image_ in control_image:
Copy link
Contributor

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.

Copy link
Contributor Author

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 ?

Copy link
Contributor

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.

@ishan-modi
Copy link
Contributor Author

@hlky, gentle ping

@ishan-modi ishan-modi requested a review from hlky June 16, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MultiControlNetModel is not supported for SD3ControlNetInpaintingPipeline

3 participants