-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[ControlnetUnion] Multiple Fixes #11888
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
Conversation
@@ -240,8 +247,8 @@ def __init__( | |||
): | |||
super().__init__() | |||
|
|||
if not isinstance(controlnet, ControlNetUnionModel): | |||
raise ValueError("Expected `controlnet` to be of type `ControlNetUnionModel`.") | |||
if isinstance(controlnet, (list, tuple)): |
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.
ohh, so you would need to use multiple models too for controlnet union?
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.
yeah this was added in this PR because of this comment
Basically is for people that want to control the start and the end for each condition, if you don't need that, you can use one controlnet union with multiple conditions.
Also is to make it the same as other controlnets so people don't have to code a special case for just this one in the UIs.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
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.
thanks!
fixes --------- Co-authored-by: hlky <[email protected]>
fixes --------- Co-authored-by: hlky <[email protected]>
What does this PR do?
This PR fixes the problems in the related issues, also it surprises me that no one have ever used this controlnet without cfg because it doesn't work, this PR also fixes that.
fixes #11861 #11828
Who can review?
@yiyixuxu