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

Runtime Error: quantize.py #5

Open
Tinaa23 opened this issue Sep 18, 2023 · 0 comments
Open

Runtime Error: quantize.py #5

Tinaa23 opened this issue Sep 18, 2023 · 0 comments

Comments

@Tinaa23
Copy link

Tinaa23 commented Sep 18, 2023

Nice work! When I want to train this model on my data (Obama video), I receive this runtime error:
The size of tensor a (196) must match the size of tensor b (256) at non-singleton dimension 1
This comes from the chamfer_compare function in VPGC_Pytorch_2/Grid_Codebook_Modeling/taming/modules/vqvae/quantize.py from this line : dist = torch.sum((z - c) ** 2, -1)
Can someone please help to solve this?
I have not modified this code and the folders are organized and pre-processed as the authors suggested.

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

1 participant