cloneofsimo / lora

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

Error While converting the lora weights to ckpt file #202

Open satwiksunnam19 opened 1 year ago

satwiksunnam19 commented 1 year ago

Hey @behinger @cobanov @cloneofsimo

directly placing .pt file in the embeddings folder, I got this error "there are no embeddings in the provided .pt file" When I tried to use this repo for training a dreambooth with LORA, the weights have saved in the.safetensors format and when i tried the method which is described in readme file "$ lora_add runwayml/stable-diffusion-v1-5 path_to_my_safetensors ./output_merged.ckpt 0.7 --mode upl-ckpt-v2" it threw an error "RuntimeError: stack expects a non-empty TensorList" when i tried the "$ lora_add runwayml/stable-diffusion-v1-5 path_to_my.pt file ./output_merged.ckpt 0.7 --mode upl-ckpt-v2"it threw an error of "AttributeError: 'NoneType' object has no attribute 'keys'". Hope you'll provide a guide on how to solve this problem, @cloneofsimo ASAP. Thanks & Regards, Satwik Sunnam.

image image

zengqixun12 commented 1 year ago

i have the same questions..