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

model checkpoint size mismatch #2

Open
wangpei7001 opened this issue Oct 1, 2024 · 1 comment
Open

model checkpoint size mismatch #2

wangpei7001 opened this issue Oct 1, 2024 · 1 comment

Comments

@wangpei7001
Copy link

/video-translation-main/src/lip_sync_src/facerender/animate.py:199 in load_cpk_mapping 
❱ 199    mapping.load_state_dict(checkpoint["mapping"])  
                  
RuntimeError: Error(s) in loading state_dict for MappingNet:
        size mismatch for first.0.weight: copying a param with shape torch.Size([1024, 73, 7]) from checkpoint, the shape in current 
model is torch.Size([1024, 70, 7]).

How to address this size mismatch when loading the checkpoint?

@samhita-alla
Copy link
Collaborator

samhita-alla commented Oct 2, 2024

@wangpei7001 here's the updated code: https://github.com/unionai/unionai-examples/tree/main/tutorials/video_translation. could you give this a try? you should be able to run it on Union serverless: https://signup.union.ai/. let me know if it still doesn't work for you.

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