-
Notifications
You must be signed in to change notification settings - Fork 85
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
Hunyuan Lora in Comfy #231
Comments
Currently, Comfy does not support loading diffusers-format loras (conversion script to diffusers format from original is available here). So, the only way to be able to load it is by writing a reverse script of above to go from diffusers format to original. I don't think I have the bandwidth to do so myself atm, so would be super cool if someone could help out with the script. I will try and find the time if no one picks it up |
I've one for ltx loras, and I could probably adapt it to hunyuan as well (and make a PR for it in comfy). I've however not been able to run hunyuan locally yet, so I don't know what the issue is. Can you post some of the keys it complains about and I can try to make a blind fix. Alt, if there is a small lora I can test with. |
Hi @a-r-r-o-w and @neph1 ! |
not my area of expertise but I created a quick convert script to work with comfy and a test example lora trained on all target modules. Seems to be working for me for now but I am sure lots of the script can be improved to be made better. |
@cseti007 The Kohya one is not really a full conversion script, and I'm about 95% sure it shouldn't work OOTB with comfy that way. FWIW, I wrote a partial conversion script here: huggingface/diffusers#10376 (comment) It should account for most loras being trained but still requires handling a complete layer to make compatible with original format. I'll try to finish it up soon. Thanks for offering to help @neph1 - would be awesome if you can bring it to completion but I suspect it might require some debugging so please do not spend time on this unless purely for educational purposes or wanting to continue improving this 🤗 |
is there any plans to release some sort of a conversion script to make a Hunyuan lora trained with finetrainers compatible with comfy? Right now I just get a bunch of "lora key not loaded" errors.
The text was updated successfully, but these errors were encountered: