Repository navigation
'message_hub' keyError when trying to finetune pretrained MMPose models. #3076
Replies: 2 comments
|
Hi mmayank74567, We just got RTMO-s pre-trained weights reproduced in keeping all keys inside PyTorch checkpoint. |
|
For fine-tuning you should not resume. You should load the weights. The two do different things in MMEngine:
So in your config: load_from = 'https://download.openmmlab.com/mmpose/...your_pretrained.pth' # or a local path
resume = Falseand start training without (Or from the command line: Do not pass Use To check: the log shows |
Uh oh!
There was an error while loading. Please reload this page.
When resuming a model to finetune, MMengine expects to have a 'message_hub' key in the checkpoint.
However, it seems like MMPose does not save the 'message_hub' when saving the torch model (reference) This causes the following issue:
All reactions