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

Tensor size mismatch between layers #245

Open
JCorpse96 opened this issue Sep 26, 2023 · 2 comments
Open

Tensor size mismatch between layers #245

JCorpse96 opened this issue Sep 26, 2023 · 2 comments

Comments

@JCorpse96
Copy link

I pulled this repo to my local machine and trying to run a stackhourglass model in a script that I based off of the Test_img.py script but I'm getting the following error message:
PSMNet\models\stackhourglass.py", line 46, in forward
post = F.relu(self.conv5(out)+pre, inplace=True)
RuntimeError: The size of tensor a (14) must match the size of tensor b (13) at non-singleton dimension 2

Can some one help me with this error?
If more information is needed just ask me and I'll provide it!
Thanks in advanced!

@JiaRenChang
Copy link
Owner

@JCorpse96
Hi, the input size should be divided evenly by 16.

@Mauric-e
Copy link

@JCorpse96
This is not useful, as the test file already contains code that ensures the input size can be divisible by 16 through padding.

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