lora icon indicating copy to clipboard operation
lora copied to clipboard

The selected model is not LoRA or not trained by `sd-scripts`? // error in automatic1111 UI with LoRa

Open CombainerA19 opened this issue 1 year ago • 8 comments

The selected model is not LoRA or not trained by `sd-scripts`?
create LoRA for Text Encoder: 72 modules.
create LoRA for U-Net: 192 modules.

LoRa was trained via this collab

Referencing this GitHub

When I load this LoRa in Automatic1111 UI, this error happens.

How it can be fixed?

CombainerA19 avatar Jan 25 '23 11:01 CombainerA19

There's this conversion script but haven't really tried it yet https://gist.github.com/laksjdjf/dc43fc6c5cb4d9000fbbf18515f1e4d8

cian0 avatar Jan 28 '23 05:01 cian0

@cian0 doesn't work anymore

oscarnevarezleal avatar Jan 28 '23 14:01 oscarnevarezleal

Compatibility is a current issue. Currently, you can merge it to ckpt and use it, although that will remove the nice feature of LoRA. I'll work on it in the future.

cloneofsimo avatar Jan 29 '23 05:01 cloneofsimo

@oscarnevarezleal @cian0 @cloneofsimo @CombainerA19 @anotherjesse Hi, dears. 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

tengshaofeng avatar Mar 14 '23 08:03 tengshaofeng

Oh nice, but how about the textual inversion that gets trained? And is it compatible with dev branch?

cian0 avatar Mar 14 '23 08:03 cian0

train_lora_dreambooth.py

im sorry but the instructions are very poor, how exactly do you use this to convert a trained lora of sd 2.1 for use in webui?

zethfoxster avatar Mar 26 '23 23:03 zethfoxster

train_lora_dreambooth.py

im sorry but the instructions are very poor, how exactly do you use this to convert a trained lora of sd 2.1 for use in webui?

It is support for sd1.x, but not sure for sd2.1. You can modify that base my code.

tengshaofeng avatar Mar 28 '23 08:03 tengshaofeng

@oscarnevarezleal @cian0 @cloneofsimo @CombainerA19 @anotherjesse Hi, dears. 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

The instruction is very poor

sipie800 avatar Apr 27 '23 14:04 sipie800