-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Lora not functioning when used with t2i adapters Pipeline #5516
Comments
The issue is a bit convoluted. Can you provide a shorter code snippet and help me understand what's the problem? #4664 is already solved. See here: #4664 (comment). |
Hello,
Best regards, |
I can reproduce it here: https://colab.research.google.com/gist/sayakpaul/1989dcb2428719e6be5850ade1c23eb6/scratchpad.ipynb Feel free to open a PR :-) Here is our contribution guidelines: |
* Enable lora for sdxl adapters too. Issue #5516 * fix: assertion values. * Use numpy_cosine_similarity_distance on the arrays Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> * Use numpy_cosine_similarity_distance on the arrays Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> * Changed imports orders to pass tests Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> --------- Co-authored-by: Ilias A <iliasamri00@gmail.com> Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
…gface#5555) * Enable lora for sdxl adapters too. Issue huggingface#5516 * fix: assertion values. * Use numpy_cosine_similarity_distance on the arrays Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> * Use numpy_cosine_similarity_distance on the arrays Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> * Changed imports orders to pass tests Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> --------- Co-authored-by: Ilias A <iliasamri00@gmail.com> Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
…gface#5555) * Enable lora for sdxl adapters too. Issue huggingface#5516 * fix: assertion values. * Use numpy_cosine_similarity_distance on the arrays Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> * Use numpy_cosine_similarity_distance on the arrays Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> * Changed imports orders to pass tests Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> --------- Co-authored-by: Ilias A <iliasamri00@gmail.com> Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
…gface#5555) * Enable lora for sdxl adapters too. Issue huggingface#5516 * fix: assertion values. * Use numpy_cosine_similarity_distance on the arrays Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> * Use numpy_cosine_similarity_distance on the arrays Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> * Changed imports orders to pass tests Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> --------- Co-authored-by: Ilias A <iliasamri00@gmail.com> Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com> Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Describe the bug
Hello,
Thank you for this useful library.
I have a small problem, I managed to use the code to generate images using SDXL with t2i, then an Image with a Lora. But for some reasons not with both.
When I load the lora using the StableDiffusionXLPipeline It does work but not when I do so with this : StablediffusionXLPipeline
I already had a similar problem with controlnet and Lora. Here is the issue : #4664.
I followed somehow similar steps, and managed to fix it on my local install. I have added this bit of code at the end of pipeline_stable_diffusion_xl_adapter (Without forgetting the import os) :
I would love to open a PR and contribute to your code, the files don't look exactly the same (the one I have installed, and the one I cloned).
And I hope that this will help improve the library :).
Reproduction
Logs
System Info
diffusers
version: 0.21.0.dev0Who can help?
@sayakpaul
The text was updated successfully, but these errors were encountered: