Closed VicaYang closed 2 years ago
I would suggest removing this check, and give a warning if the state_dict
is not compatible with model.keys()
, instead of hard-code "_feature_blocks"
Well, it seems that this function has been modified in the main branch, but not in the pre-built library and v.0.1.6 branch (which is suggested in the tutorials)
In
vissl/utils/checkpoint.py:743
, there are codes to check the weights. You can see that it checks_feature_blocks.
However, some VISSL model does not have this structure, such as ViT, you can download weights from here to check. While some archs like ResNet50 do have, you can download weights from here to check.