diffusionbee-stable-diffusion-ui icon indicating copy to clipboard operation
diffusionbee-stable-diffusion-ui copied to clipboard

Failed when importing Custom Model

Open enzyme69 opened this issue 3 years ago • 6 comments

I tried this f222.ckpt model and failing to import. I am using the MPS DiffusionBee, M1.

Screenshot 2022-11-12 at 2 12 37 am

Not sure what to do after this. I will try other ckpt, and the one from strmr.

enzyme69 avatar Nov 11 '22 15:11 enzyme69

Same error here. Tried with f222.cpk and v1-5-pruned.ckpt . I will try to download other models and test.

Using DB Version 1.5.1-arm64_TF_SD1.4_FP32, On Macbook Air M1, 16 GB.

PS: Incredible application. Congrats!

rokata1 avatar Nov 11 '22 18:11 rokata1

Decompiling f222.ckpt file (a link to download problem models would help in future), I can see it has a single line in it referencing 'IntStorage', which DBee's fake_torch.py file doesn't have a case for.

CrudeDiatribe avatar Nov 12 '22 02:11 CrudeDiatribe

I tested another model, float16 works but, float32 one failed. I am using Diffusion Bee M1 MPS version.

enzyme69 avatar Nov 13 '22 05:11 enzyme69

"Another model"

Do you have a link for this model so I can see why it is failing?

CrudeDiatribe avatar Nov 13 '22 13:11 CrudeDiatribe

It was AnythingV3 model, I think. fp32 failed, fp16 works. https://huggingface.co/Linaqruf/anything-v3.0/tree/main

If I merge it with other model, it will actually import.

enzyme69 avatar Nov 13 '22 19:11 enzyme69

From the Pickle Preview, I think the cause for failure is the same as for the F222 .ckpt, which is the 'IntStorage'. I submitted a PR that should resolve it: #315

CrudeDiatribe avatar Nov 13 '22 19:11 CrudeDiatribe

I have that error while loading merged models

MauroFigueira avatar Nov 28 '22 14:11 MauroFigueira

Same issue with F222 in Version 1.5.1 (0016) image However I believe there is a merged PR that claims to have fixed it.

lzm0 avatar Jan 28 '23 02:01 lzm0