cloneofsimo / lora

Using Low-rank adaptation to quickly fine-tune diffusion models.
https://arxiv.org/abs/2106.09685
Apache License 2.0
6.83k stars 473 forks source link

Bug: Merging lora to model with lora_add produces garbage output in stable diff webui #240

Closed miniwa closed 1 year ago

miniwa commented 1 year ago

Steps to reproduce:

Any ideas?

KraZZH commented 1 year ago

May I know what was the issue and how you fixed it?

miniwa commented 1 year ago

I turned out to be a hyperparameter issue, and not a model merge issue. My bad. I used the example script here: https://github.com/cloneofsimo/lora/blob/master/training_scripts/use_face_conditioning_example.sh

In particular, having scale = 8 will fry the model very quickly.