Skip to content

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

@saitejakokkonda

Description

@saitejakokkonda
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions