Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load <class 'src.models.unet_2d_condition.UNet2DConditionModel'> #46

Open
jimanji opened this issue Nov 26, 2024 · 4 comments
Open
Labels

Comments

@jimanji
Copy link

jimanji commented Nov 26, 2024

File "D:\echomimic_v2\app.py", line 59, in generate
reference_unet = UNet2DConditionModel.from_pretrained("./pretrained_weights/sd-image-variations-diffusers", subfolder="unet", use_safetensors=False).to(dtype=dtype, device=device)
File "D:\Program Files\Python310\lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "D:\Program Files\Python310\lib\site-packages\diffusers\models\modeling_utils.py", line 848, in from_pretrained
raise ValueError(
ValueError: Cannot load <class 'src.models.unet_2d_condition.UNet2DConditionModel'> from ./pretrained_weights/sd-image-variations-diffusers because the following keys are missing:

一直提示这个报错,已经下载最新代码以及模型

@jimanji
Copy link
Author

jimanji commented Nov 26, 2024

补充 :windows 11跑的。

@mengrang
Copy link
Collaborator

少下载一个模型~

@mengrang mengrang added the done label Nov 26, 2024
@jimanji
Copy link
Author

jimanji commented Nov 27, 2024

全部按要求下载了。请指出少了哪个模型,谢谢。

@mengrang
Copy link
Collaborator

we update the automatic installation script for Linux, you can try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants