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

behaviour different in train and test #8

Open
lucasjinreal opened this issue Sep 14, 2020 · 3 comments
Open

behaviour different in train and test #8

lucasjinreal opened this issue Sep 14, 2020 · 3 comments

Comments

@lucasjinreal
Copy link

when train the model size is correct, while inference got error:

/spinenet.py", line 157, in forward
    target_feat = parent0_feat + parent1_feat
RuntimeError: The size of tensor a (14) must match the size of tensor b (16) at non-singleton dimension 2

@yan-roo
Copy link

yan-roo commented Sep 16, 2020

Which config version are you using when inference?
The config file "spinenet_49_B" got error when your size_divisor = 64 (Line 81)
**Try to set size_divisor from 64 to 128 **
https://github.com/yan-roo/SpineNet-Pytorch/blob/master/configs/spinenet/spinenet_49_B_8gpu_640.py#L81

@lucasjinreal
Copy link
Author

@yan-roo Can i set input w h which divisor is 32? which source code I might want to change?

@yan-roo
Copy link

yan-roo commented Sep 18, 2020

@jinfagang I tried to set different test input resolution. However, when the divisor lower than 128 the RuntimeError will occur as you mentioned above.

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

2 participants