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

I don't really know why this happens, tensor a (1460) must match the size of tensor b (1464) at non-singleton dimension 3 #2989

Open
Tulip-0333 opened this issue Jul 10, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Tulip-0333
Copy link

Information:

  • Chainner version: v0.24.1
  • OS: Windows 11

Description
When using two images with this layout*, it brings up the error `tensor a (1460) must match the size of tensor b (1464) at non-singleton dimension 3**, it seems to be any image with the same dimensions, though I don't really know.

*image
**image

Logs
main.log
No other logs

@Tulip-0333 Tulip-0333 added the bug Something isn't working label Jul 10, 2024
@joeyballentine
Copy link
Member

Can you try using the latest nightly? I believe we've fixed this and it just hasn't been released yet

@Tulip-0333
Copy link
Author

Not fixed..

@joeyballentine
Copy link
Member

Ok, then this is just something we have to fix. In the meantime though, you should be able to get around it by giving one of the images a little bit of padding.

@Lukeyy19
Copy link

Lukeyy19 commented Aug 18, 2024

I am getting the same issue but I don't understand how padding helps? If I add padding to either the image or the mask then I just get an error saying the image and mask must have the same resolution, but without the padding I get the same "The size of tensor a (1482) must match the size of tensor b (1488) at non-singleton dimension 3" despite both the image and the mask having a width of 1482...

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants