Yujun-Shi / DragDiffusion

[CVPR2024, Highlight] Official code for DragDiffusion
https://yujun-shi.github.io/projects/dragdiffusion.html
Apache License 2.0
1.13k stars 82 forks source link

"Edit Gen Image"功能加载lora 模型出错 #30

Closed xuyu666 closed 11 months ago

xuyu666 commented 1 year ago

很高兴看到您加入的新功能,在尝试的过程中遇到Lora模型加载出错的情况,想请教下您如何处理~ 流程如下: 1、提示路径未存在模型--》导入前端Lora按钮刚训练的Lora,模型格式不对。 image image

2、去moxin下载以SD1.5为基础模型的Lora文件,放入后并修改名字为lora.safetensors,还是不行。 image https://civitai.com/models/68297/industrial-style image image image

期待您的回复~

Yujun-Shi commented 1 year ago

hello, 我这边似乎是没有这个问题的。 比如,我把这个lora下载到一个文件夹./lora_arch

image

然后我再生成,就是这个结果:

image

看你这边的错误信息,感觉有可能是因为你那边的配置的库版本跟我的不太一样(可能是diffusers版本不太一样)? 可以先尝试检查一下配置的库的版本,或者重新clone一下代码,然后像我那个readme里面写的一样再用conda env create -f environment.yaml来创一个新的环境。

xuyu666 commented 11 months ago

谢谢您的回复,目前已经解决啦!! 祝好~