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

mat1 dim 1 must match mat2 dim 0 #17

Open
qustions opened this issue Oct 23, 2020 · 1 comment
Open

mat1 dim 1 must match mat2 dim 0 #17

qustions opened this issue Oct 23, 2020 · 1 comment

Comments

@qustions
Copy link

qustions commented Oct 23, 2020

hi @ewrfcas there is NO error if I decrease the image size in train.py
If I change lr_height, lr_width and hr_height, hr_width in data_loader.py to my input size it's giving me the error.
But it's working fine with default sizes. what I am missing here

the error is

ret = torch.addmm(bias, input, weight.t())
RuntimeError: mat1 dim 1 must match mat2 dim 0
@ewrfcas
Copy link
Owner

ewrfcas commented Nov 18, 2020

Which line does it happens? However, if you use the input size different from the default size, you need to retrain the model.

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