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

RuntimeError: grid_sampler(): expected grid and input to have same batch size, but got input with sizes [0, 3, 1024, 1024] and grid with sizes [1, 1048576, 1, 2] #51

Closed
WellTung666 opened this issue Aug 28, 2023 · 5 comments

Comments

@WellTung666
Copy link

WellTung666 commented Aug 28, 2023

Hello! when I ran ./scripts/test_canonical.sh using My own model, the following error occurred. How can I solve this problem? Thanks~
RuntimeError: grid_sampler(): expected grid and input to have same batch size, but got input with sizes [0, 3, 1024, 1024] and grid with sizes [1, 1048576, 1, 2]

@WellTung666 WellTung666 changed the title torch.cuda.OutOfMemoryError: CUDA out of memory. RuntimeError: grid_sampler(): expected grid and input to have same batch size, but got input with sizes [0, 3, 1024, 1024] and grid with sizes [1, 1048576, 1, 2] Aug 28, 2023
@potoyeee
Copy link

Hello, i have this problem too. Did you fix it?

@Pythonpa
Copy link

The same......

@WellTung666
Copy link
Author

Hello, i have this problem too. Did you fix it?

I try to placed the canonical images in the base_control folder can solve this problem, but the final result was very poor.

@WellTung666
Copy link
Author

The same......

#51 (comment)

@Pythonpa
Copy link

ah,it worked...

@qiuyu96 qiuyu96 closed this as completed Sep 12, 2023
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

4 participants