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

Is there any requirements on the size of input images #6

Closed
Tord-Zhang opened this issue Apr 16, 2021 · 2 comments
Closed

Is there any requirements on the size of input images #6

Tord-Zhang opened this issue Apr 16, 2021 · 2 comments

Comments

@Tord-Zhang
Copy link

When I input two images of size 768 x 1856 to the model, I got the error below:
einops.EinopsError: Error while processing rearrange-reduction pattern "(y v) d -> y () v d". Input tensor shape: torch.Size([25600, 128]). Additional info: {'y': 232}. Shape mismatch, can't divide axis of length 25600 in chunks of 232
Any idea why this happens?

@zacjiang
Copy link
Owner

zacjiang commented Apr 17, 2021 via email

@AlphonsG
Copy link

@Tord-Zhang If you're not using the demo script, make sure the images are padded like here.

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

3 participants