Adding TextualInversionLoaderMixin for the controlnet_inpaint_sd_xl pipeline
What does this PR do?
The pipeline controlnet_inpaint_sd_xl pipeline contained the textual_inversion loading logic, but did not load the TextualInversionLoaderMixin yet.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR.
Thanks for the PR. Could you share some code and results where this is beneficial?
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.
Hi Sayak,
When using this pipeline with a textual inversion (and without this commit):
self.pipe.load_textual_inversion()
I have this error:
AttributeError: 'StableDiffusionXLControlNetInpaintPipeline' object has no attribute 'load_textual_inversion'
Adding TextualInversionMixIn fixes this - and this seems in line with the other controlnet and sdxl pipelines.
Yes, that is fine. I was curious see the results with that i.e., Textual Inversion + SDXL ControlNet Inpainting (with your fix)
can we fix the tests?
Hi yiyixuxu, I think there was a formatting error, (extra newline) but I am not sure. I have made a new commit which fixes that. I don't really know what else would be wrong. I use this pipeline to do inpainting with loras I have trained, and for that I also add the textual inversion part. It seems to be the only pipeline that was missing this part.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
hi:
can you run make fix-copies and make style?
looks like make style made changes to files that you did not touch in this PR
can you update the quality dependency? pip install -e ".[quality]"
hmm I tried to checkout the previous commit, did the pip install and ran the make again.
@jschoormans thanks for your contribution! and sorry for the inconvenience
Thank you!!!
On Mon, 29 Apr 2024 at 21:01, YiYi Xu @.***> wrote:
@jschoormans https://github.com/jschoormans thanks for your contribution! and sorry for the inconvenience
— Reply to this email directly, view it on GitHub https://github.com/huggingface/diffusers/pull/7288#issuecomment-2083455811, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGUCHWSWOIYFXSJLAFST6DY72KKFAVCNFSM6AAAAABER6WAP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGQ2TKOBRGE . You are receiving this because you were mentioned.Message ID: @.***>