-
Notifications
You must be signed in to change notification settings - Fork 6k
refactors pipelines inheriting from StableDiffusionPipeline
#6984
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
Comments
Hi @yiyixuxu, I am interested in resolving this issue. Please let me know if I can take this up. |
Thank you for this opportunity! I would like to take |
hi @pranjalks |
@StandardAI |
Hey, I have started working on |
@yiyixuxu I'll work on Prompt2Prompt pipeline. Thank you! |
Hi @yiyixuxu, I would be happy to work TensorRTStableDiffusionPipeline. |
@Bhavay-2001 sure! |
Hi @pranjalks is there any news on it? I have already used it and not working, wondering if it is finished, or should I also take a look and try to refactor it:) |
@katarzynasornat feel free to open a PR:) |
I took a crack at upgrading the Regional Prompter but even with using the mix-ins I'm still getting this error:
Revised instantiation cribbed from #7071; I'm likely importing too much but nothing less worked either.
Python isn't my main language though so perhaps I'm doing something dumb or underestimating the amount of refactoring needed. |
@jelling @yiyixuxu I will try to help to refactor it but before doing that (as I am quite new to diffusers and not a pro in Deep Learning but I am very fast student:)) I wanted to downgrade to a lower version of diffusers - before the change happened. Unfortunately I had another error which made me impossible to run and see if/how the pipeline works. Below I enclosed my gist. Would you be kind to take a look what could go wrong? Otherwise hard to improve the pipeline which may not working anyway. |
@jelling Tip: 2 parameters were expected additionally, right? You can see something about these 2 parameters in my PR. |
@StandardAI Are you able to look at my gist after downgrading diffusers? Because after refactoring I am getting the same error and I am not sure if refactoring went wrong or the pipeline is somehow not working itself. Thank you! EDIT: error looks somehow like this RuntimeError Traceback (most recent call last) 18 frames RuntimeError: shape '[5, -1, 8, 40]' is invalid for input of size 5242880 |
Debugging for a previous version of |
@tolgacangoz so cool! Will open a PR today. Assume I should work on current |
We have a couple of community pipelines that used
StableDiffusionPipeline
as the base class instead ofDiffusionPipeline
. Most of them are broken after we changed the signature ofStableDiffusionPipeline
. see more details on the issue here #6969 (comment)pipelines should not use
StableDiffusionPipeline
as a base class. Is anyone interested in refactoring some of these community pipelines to inherit fromDiffusionPipeline
instead? You will need to:DiffusionPipeline
and any of the mixins needed e.g.StableDiffusionPipeline
- you need use#Copied from
statement to copy over methods to your community pipeline. Learn more about theCopied from
mechanism here https://huggingface.co/docs/diffusers/conceptual/contribution#copied-from-mechanismHere is the list of pipelines that need to be refactored!
Refactor
]StableDiffusionReferencePipeline
inheriting fromDiffusionPipeline
#7071)The text was updated successfully, but these errors were encountered: