File "D:\Moore-AnimateAnyone-for-windows\venv\Lib\site-packages\diffusers\models\modeling_utils.py", line 155, in load_model_dict_into_meta
raise ValueError(
ValueError: Cannot load ./pretrained_weights/stable-diffusion-v1-5/ because down_blocks.0.attentions.0.transformer_blocks.0.attn2.to_k.weight expected shape tensor(..., device='meta', size=(320, 1280)), but got torch.Size([320, 768]). 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.
File "D:\Moore-AnimateAnyone-for-windows\venv\Lib\site-packages\diffusers\models\modeling_utils.py", line 155, in load_model_dict_into_meta raise ValueError( ValueError: Cannot load ./pretrained_weights/stable-diffusion-v1-5/ because down_blocks.0.attentions.0.transformer_blocks.0.attn2.to_k.weight expected shape tensor(..., device='meta', size=(320, 1280)), but got torch.Size([320, 768]). If you want to instead overwrite randomly initialized weights, please make sure to pass both
low_cpu_mem_usage=False
andignore_mismatched_sizes=True
. For more information, see also: https://github.com/huggingface/diffusers/issues/1619#issuecomment-1345604389 as an example.