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

Problem when loading SANA's VAE #87

Open
frutiemax92 opened this issue Dec 9, 2024 · 3 comments
Open

Problem when loading SANA's VAE #87

frutiemax92 opened this issue Dec 9, 2024 · 3 comments

Comments

@frutiemax92
Copy link
Contributor

frutiemax92 commented Dec 9, 2024

Downloaded the VAE from here:
https://huggingface.co/mit-han-lab/dc-ae-f32c32-sana-1.0-diffusers/tree/main

I'm getting a black screen for now, but there seems to be many missing layers... This is on Windows 11.

got prompt
Missing VAE keys ['encoder.project_in.weight', 'encoder.project_in.bias', 'encoder.stages.0.0.conv1.conv.weight', 'encoder.stages.0.0.conv1.conv.bias', 'encoder.stages.0.0.conv2.conv.weight', 'encoder.stages.0.0.conv2.norm.weight', 'encoder.stages.0.0.conv2.norm.bias', 'encoder.stages.0.1.conv1.conv.weight', 'encoder.stages.0.1.conv1.conv.bias', 'encoder.stages.0.1.conv2.conv.weight', 'encoder.stages.0.1.conv2.norm.weight', 'encoder.stages.0.1.conv2.norm.bias', 'encoder.stages.0.2.main.weight', 'encoder.stages.0.2.main.bias', 'encoder.stages.1.0.conv1.conv.weight', 'encoder.stages.1.0.conv1.conv.bias', 'encoder.stages.1.0.conv2.conv.weight', 'encoder.stages.1.0.conv2.norm.weight', 'encoder.stages.1.0.conv2.norm.bias', 'encoder.stages.1.1.conv1.conv.weight', 'encoder.stages.1.1.conv1.conv.bias', 'encoder.stages.1.1.conv2.conv.weight', 'encoder.stages.1.1.conv2.norm.weight', 'encoder.stages.1.1.conv2.norm.bias', 'encoder.stages.1.
@frutiemax92 frutiemax92 changed the title Problem when loading SANA' Problem when loading SANA's VAE Dec 9, 2024
@city96
Copy link
Owner

city96 commented Dec 9, 2024

Hmm, looks like the repo with the separate VAE was (re)moved, and the one you link to is in the reference format (which doesn't have any conversion logic in place at the moment).

Could you check if this one works? I'll update the link in the readme if yes.
https://huggingface.co/Efficient-Large-Model/Sana_1600M_1024px_diffusers/blob/main/vae/diffusion_pytorch_model.safetensors

@frutiemax92
Copy link
Contributor Author

This works with the model you provided.
image

@city96
Copy link
Owner

city96 commented Dec 9, 2024

Thanks, updated the link in the readme.

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

No branches or pull requests

2 participants