Issues regarding the compatibility of flux lora
Thank you very much for sharing the eligen lora at https://www.modelscope.cn/models/DiffSynth-Studio/Eligen, but I encountered a dict mismatch issue when trying to apply it to the original flux https://github.com/black-forest-labs/flux/blob/main/src/flux/model.py. How can I convert it to a format that can be used with the original flux?
Thank you for your attention to EliGen. EliGen is a LoRA trained based on Flux. You can refer to entity_control.py for usage. Maybe you can also provide the code you are using, and we will assist in analyzing the cause of any issues.
Thank you for your attention to EliGen. EliGen is a LoRA trained based on Flux. You can refer to entity_control.py for usage. Maybe you can also provide the code you are using, and we will assist in analyzing the cause of any issues.
Thanks for your reply! Actually, I'm trying to apply eligen to this project https://github.com/Xilluill/KV-Edit/blob/main/flux/model.py, and the structure of this project’s code is similar to the black-forest flux code https://github.com/black-forest-labs/flux/blob/main/src/flux/model.py, but I don't know how to load eligen lora in the original black-forest code. Can you give me some advice? Thanks a lot!
There exists a state_dict keyword mapping bewteen black-forest flux code and our code, which is defined here. And keywords in EliGen LoRA is got by here. You may take these codes for reference.
There exists a state_dict keyword mapping bewteen black-forest flux code and our code, which is defined here. And keywords in EliGen LoRA is got by here. You may take these codes for reference.
Thanks for your reply. I still have one more question, the layer trained by Lora here is the same as this in diffusers like here?
I also encountered the same problem, did you solve it?