Skip to content
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

fix a bug in AutoPipeline.from_pipe() when creating a controlnet pipeline from an existing controlnet #5638

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

yiyixuxu
Copy link
Collaborator

@yiyixuxu yiyixuxu commented Nov 3, 2023

fix a bug #5593

this PR will now enable user to use the AutoPipeline's from_pipe method to use existing controlnet pipeline to create a new controlnet pipeline for same or different task! optionally with a new controlnet model too!

so you can do something like this (this would previously throw an error, see more #5593)

controlnet_pipe1 = AutoPipelineForText2Image.from_pretrained("runwayml/stable-diffusion-v1-5", controlnet=canny)
controlnet_pipe2 = AutoPipelineForImage2Image.from_pipe(controlnet_pipe1, controlnet=pose)

also added relevant tests :)

@patrickvonplaten
Copy link
Contributor

Very nice find!

@patrickvonplaten patrickvonplaten merged commit d122206 into main Nov 3, 2023
13 checks passed
@patrickvonplaten patrickvonplaten deleted the fix-auto-pipe-from-pipe-controlnet branch November 3, 2023 11:14
kashif pushed a commit to kashif/diffusers that referenced this pull request Nov 11, 2023
…peline from an existing controlnet (huggingface#5638)

fix

Co-authored-by: yiyixuxu <yixu310@gmail,com>
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
…peline from an existing controlnet (huggingface#5638)

fix

Co-authored-by: yiyixuxu <yixu310@gmail,com>
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…peline from an existing controlnet (huggingface#5638)

fix

Co-authored-by: yiyixuxu <yixu310@gmail,com>
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.

2 participants