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

RuntimeError: Given groups=1, weight of size [32, 3, 3, 3], expected input[1, 224, 4, 225] to have 3 channels, but got 224 channels instead #45

Open
saitejakokkonda opened this issue May 4, 2022 · 0 comments

Comments

@saitejakokkonda
Copy link

saitejakokkonda commented May 4, 2022

  1. Classifier Model trained on tensorflow efficientnetb0 architecture on 224*224 images with 3 channels and this model converted to .onnx format.
  2. Then, .onnx to pytorch model in .pth format.
  3. While loading a model on 224*224 images getting an error like
    RuntimeError: Given groups=1, weight of size [32, 3, 3, 3], expected input[1, 224, 4, 225] to have 3 channels, but got 224 channels instead
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