You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using mmcv to load pytorch model with unmatched weight dimensions, it will raise an exception. Make the following change to load such a model.
# [python_lib_path]/site-packages/mmcv/runner/checkpoint.py
# L53, change to print
print('While copying the parameter named {}, '
'whose dimensions in the model are {} and '
'whose dimensions in the checkpoint are {}.'
.format(name, own_state[name].size(),
param.size()))
The text was updated successfully, but these errors were encountered:
@FinalFlowers sorry for the confusion. You need to edit this file in your python instsall path [python_lib_path]/site-packages/mmcv/runner/checkpoint.py
And modify the Line53 with the above changes.
When using mmcv to load pytorch model with unmatched weight dimensions, it will raise an exception. Make the following change to load such a model.
The text was updated successfully, but these errors were encountered: