acheong08 / Diffusion-ColabUI

Choose your diffusion models and spin up a WebUI on Colab in one click
Apache License 2.0
421 stars 62 forks source link

How to use safetensors? #96

Closed AzureRubia-Guet closed 1 year ago

AzureRubia-Guet commented 1 year ago

By read your code, I find that it supported safetensors, but I can't use it.

My model in Google drive and add the URL to here: F2)ASUI(8NCKZTEH{7717SE

But when downloading, it is ckpt: _@28M F~4 722 T@7`WRR9A

And it gets error: 9JL_ E{(1SVFGOEEUU)RG@A

My model URL: https://drive.google.com/file/d/1wpL7zyzBE6BZegHNguc0WO91uGXbwLTK/view?usp=share_link

What should I do to use safetensors?

acheong08 commented 1 year ago

That is a flaw in the design. You'll have to manually rename it from the sidebar if it comes from Google Drive, clear the model list, and run the WebUI again.

AzureRubia-Guet commented 1 year ago

That is a flaw in the design. You'll have to manually rename it from the sidebar if it comes from Google Drive, clear the model list, and run the WebUI again.

Oh,it can run! But not success.

I rename chilloutmix_NiPrunedFp32Fix.sofetensors.ckpt to chilloutmix_NiPrunedFp32Fix.sofetensors, then clear model list, and start webui again, it look like ok. 正常运行

But after click the link, the UI get wrong, like this: 界面异常

This is a part of wrongs: 报错信息

acheong08 commented 1 year ago

There was error with the v2. Maybe try running again. I just updated my fork.

acheong08 commented 1 year ago

or maybe swap back to the old UI by unticking the checkbox in Colab

AzureRubia-Guet commented 1 year ago

That is a flaw in the design. You'll have to manually rename it from the sidebar if it comes from Google Drive, clear the model list, and run the WebUI again.

I try it again and it's OK. Thank. But I dont know why. I only chance the modelname, when rename , is chilloutmix_NiPrunedFp32Fix.ckpt to chilloutmix_NiPrunedFp32Fix.sofetensors, not chilloutmix_NiPrunedFp32Fix.sofetensors.ckpt to chilloutmix_NiPrunedFp32Fix.sofetensors,

最后

AzureRubia-Guet commented 1 year ago

There was error with the v2. Maybe try running again. I just updated my fork.

nice, I will try the newone

AzureRubia-Guet commented 1 year ago

or maybe swap back to the old UI by unticking the checkbox in Colab

ok, I found this checkbox, I have ever think that the new UI is the UI get wrong, it have too many black block, hahaha