-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Reproduction steps:
model = AVA_model(opt['model'])
ckpt = api.artifact('wato-action-classification/acar/models:v18').get_path('ckpt_11.pth.tar').download('/home/docker/catkin_ws/src/ACAR-Net/pretrained')
model.load_state_dict(torch.load(ckpt)['state_dict'])
yields Missing Keys: backbone.module.fast_conv1.weight.
Root cause: torch.load(ckpt)['state_dict'] contains keys in the format module.backbone.module.fast_conv1.weight (note the extra module. prepended).
Proposed resolution: Figure out why the state dict is being saved with the module. prepended and remove it.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working