mmdetection3d icon indicating copy to clipboard operation
mmdetection3d copied to clipboard

[Bug] KeyError: 'message_hub'

Open Madeline-hyh opened this issue 1 year ago • 3 comments

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

1.x branch https://github.com/open-mmlab/mmdetection3d/tree/dev-1.x

Environment

mmcv 2.0.1 mmdet 3.1.0 mmdet3d 1.2.0 mmengine 0.9.0 mmsegmentation 1.2.0

Reproduces the problem - code sample

self.message_hub.load_state_dict(checkpoint['message_hub']) KeyError: 'message_hub'

Reproduces the problem - command or script

self.message_hub.load_state_dict(checkpoint['message_hub']) KeyError: 'message_hub'

Reproduces the problem - error message

self.message_hub.load_state_dict(checkpoint['message_hub']) KeyError: 'message_hub'

Additional information

No response

Madeline-hyh avatar Nov 19 '23 17:11 Madeline-hyh

I think this is because that the checkpoint you load doesn't have message_hub created.

ElviraLL avatar Jan 27 '24 00:01 ElviraLL

Any solution for this? It looks like pretrained models did not save the message_hub key when saving the model.

mmayank74567 avatar Jul 11 '24 20:07 mmayank74567