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

how to use flux loras with text encoder keys with diffusers? #1803

Open
neuron-party opened this issue Nov 23, 2024 · 4 comments
Open

how to use flux loras with text encoder keys with diffusers? #1803

neuron-party opened this issue Nov 23, 2024 · 4 comments

Comments

@neuron-party
Copy link

resulting lora weights from setting train text encoder to true is incompatible with diffusers load_lora_weights. the script networks/convert_flux_lora.py does not convert the text encoder keys either.

@kohya-ss
Copy link
Owner

Unfortunately, I don't know what keys Diffusers' Text Encoder LoRA has. I would appreciate it if you could share a link to a sample weight file for Diffusers' Text Encoder LoRA.

@neuron-party
Copy link
Author

@kohya-ss i'll train one next week and send it to you, but i don't think diffusers also trains t5xxl

@Phonicavi
Copy link

Sir, I thought that clip's part (i.e. te1 for sd-scripts, text_encoder_one for diffusers) has been processed in this commit, wish it could be helpful. I've trained LoRA with text encoder (no t5xxl, only clip) and transformer (including both double blocks and single blocks) via kohya-ss, which could be loaded normally using diffusers pipe.load_lora_weights method :)

@cvtower
Copy link

cvtower commented Dec 3, 2024

load_lora_weights works fine with this code for me.

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

No branches or pull requests

4 participants