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
Pretrained BEiT model from checkpoint beit_beit-base-p16_8xb256-amp-coslr-300e_in1k does not work properly. Doing a linear probing on representation from this model (cls token or mean) gives almost random accuracy. I believe there may be something wrong with the checkpoint since the same code for BEiTv2 model (model = get_model('beitv2_beit-base-p16_8xb256-amp-coslr-300e_in1k', pretrained=True)) works fine and I can train the linear classifier on top of the frozen representation.
from mmpretrain import get_model
model = get_model('beit_beit-base-p16_8xb256-amp-coslr-300e_in1k', pretrained=True)
inputs = torch.rand(1, 3, 224, 224)
out = model(inputs)
print(type(out))
# To extract features.
feats = model.extract_feat(inputs)
print(type(feats))
Branch
main branch (mmpretrain version)
Describe the bug
Pretrained BEiT model from checkpoint
beit_beit-base-p16_8xb256-amp-coslr-300e_in1k
does not work properly. Doing a linear probing on representation from this model (cls token or mean) gives almost random accuracy. I believe there may be something wrong with the checkpoint since the same code for BEiTv2 model (model = get_model('beitv2_beit-base-p16_8xb256-amp-coslr-300e_in1k', pretrained=True)
) works fine and I can train the linear classifier on top of the frozen representation.Environment
Other information
No response
The text was updated successfully, but these errors were encountered: