Open harrywang opened 1 year ago
https://github.com/cloneofsimo/lora/issues/149 is related.
@harrywang @anotherjesse @zeke @levi . I have add some code to support the Automatic111 WebUI. What you should do is just runing 'train_lora_dreambooth.py', then you will find that there is another lora_weight_webui.safetensors in the output dir. That is the right weight for WebUI. reference my project in https://github.com/tengshaofeng/lora_tbq
I used the following script to train a style and the final model is in
final_lora.safetensors
I use the code https://github.com/cloneofsimo/lora/blob/master/scripts/run_inference.ipynb to generate result and it works - the style is applied.
I want to use https://github.com/AUTOMATIC1111/stable-diffusion-webui to generate result and put the safetensors file in
models/Lora/
but run into the following error in log:I think the key is not correct similar to the
bin
lora weights trained using Diffusers as discussed https://github.com/huggingface/diffusers/issues/2326 - which needs to be converted for WebUI.I wonder how we can do that for lora_pit trained lora weights.
Thanks a lot!!