Skip to content

RuntimeError for webcam.py #1

@hieuristic

Description

@hieuristic

I have trained my model with 91% accuracy and saved in the save folder, but when I ran the command

$ python webcam.py --resume save/model_best.pth.tar,

the terminal return an error:

RuntimeError: Error(s) in loading state_dict for DataParallel: Unexpected key(s) in state_dict: "module.att.ChannelGate.mlp.0.weight", "module.att.ChannelGate.mlp.0.bias", "module.att.ChannelGate.mlp.2.weight", "module.att.ChannelGate.mlp.2.bias", "module.att.SpatialGate.spatial.0.weight", "module.att.SpatialGate.spatial.0.bias".,

I was wondering if the error raise from the code itself for my model.

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