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

How to change module to fix more image size. #21

Closed
maxh2010 opened this issue Oct 1, 2021 · 1 comment
Closed

How to change module to fix more image size. #21

maxh2010 opened this issue Oct 1, 2021 · 1 comment

Comments

@maxh2010
Copy link

maxh2010 commented Oct 1, 2021

It seems to have resize the image to width to 100,.
if the image isn't resize to width to 100, the training process will report the RuntimeError.
The size pf tensor a (65) must match the size of tensor b (26) at non-singleton dimension 1

File SRN_modules.py line 68, in forward
return x + self.pos_table[:, :x.size(1)].clone().detach()

How could i change to module to fit more kind of image size?

@maxh2010
Copy link
Author

I can change position to 65, it will fix my issue

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

1 participant