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

Issue about input dimension of MultiscaleresNet18 #32

Open
lam1051999 opened this issue May 26, 2021 · 0 comments
Open

Issue about input dimension of MultiscaleresNet18 #32

lam1051999 opened this issue May 26, 2021 · 0 comments

Comments

@lam1051999
Copy link

lam1051999 commented May 26, 2021

Dear sir @JinghuiZhou, thanks for a great repository and many network architecture implementations. But i have an issue that i think the code need to do a little bit more configuration. When i was training Resnet18, Resnet30, VGG,... everything is ok. But when i switch to MultiscaleresNet18, i got a bug below

RuntimeError: Expected 4-dimensional input for 4-dimensional weight [64, 3, 7, 7], but got 5-dimensional input of size [2, 1, 3, 224, 224] instead

The error happens in the line summary(model, (3, 224, 224)) and the input of the model in main.py.
I think the code need a small change when training with MultiscaleresNet. But i couldn't find where to fix it. Can you show me how? Thanks a lot!!!

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