Stability-AI / StableCascade

Official Code for Stable Cascade
MIT License
6.44k stars 518 forks source link

decoder mismatch #65

Closed tyokota closed 4 months ago

tyokota commented 4 months ago

Decoder mismatch tensor shape.

ValueError: Cannot load C:\Users\tyoko\.cache\huggingface\hub\models--stabilityai--stable-cascade\snapshots\f2a84281d6f8db3c757195dd0c9a38dbdea90bb4\decoder because embedding.1.weight expected shape tensor(..., device='meta', size=(320, 64, 1, 1)), but got torch.Size([320, 16, 1, 1]). If you want to instead overwrite randomly initialized weights, please make sure to pass both `low_cpu_mem_usage=False` and `ignore_mismatched_sizes=True`. For more information, see also: https://github.com/huggingface/diffusers/issues/1619#issuecomment-1345604389 as an example.

HarryPsalms commented 4 months ago

Getting same error. Running Linux with Nvidia driver 535.154.05, cuda release 12.1. Cloned repo, created+activated venv, ran pip -r install requirements.txt followed by gradio and diffusers per the installation notes

BoxFishLab commented 4 months ago

I'm having the same problem.the diffusers version is diffusers-0.27.0.dev0.

BoxFishLab commented 4 months ago

I'm having the same problem.the diffusers version is diffusers-0.27.0.dev0. in https://huggingface.co/stabilityai/stable-cascade/discussions/13 To fix the size mismatch error, replace "c_in": 4 with "in_channels": 4 in the decoder config.json. (Reason is this commit: https://github.com/kashif/diffusers/commit/cbd07758adc1848f3a9eb115f9467e43f8560726)

todor943 commented 4 months ago

I also have this problem on Windows 11

songproducer commented 4 months ago

Where is the decoder config.json file please?

kime541200 commented 4 months ago

I encounter the same problem in Windows11, is there any solution?

kime541200 commented 4 months ago

I encounter the same problem in Windows11, is there any solution?

This work for me --> #58

todor943 commented 4 months ago

"Not Found"