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

Problem when I change the model to VGG, Resnet or Alexnet #2

Closed
FarnooshGhadiri opened this issue Jun 14, 2018 · 1 comment
Closed

Comments

@FarnooshGhadiri
Copy link

When I change the model to the anythings other that Light.., it gives me an error in line 30 of model.py (missed match the input)
size mismatch, m1: [1 x 8192], m2: [25088 x 4096] at /pytorch/aten/src/TH/generic/THTensorMath.c:2033

@pangwong
Copy link
Owner

You may also need to change the load_size and input_size respectively after you changed the model type, . Vgg and Resnet are designed for Imagenet and their input_size is 224 rather than 128, which is a too small input_size for their network deepth.

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