Context-Cluster icon indicating copy to clipboard operation
Context-Cluster copied to clipboard

can't load detection pretrained model

Open Missyfirst opened this issue 1 year ago • 2 comments

excuse me,there is a error of detection pretrained model, raise error: size mismatch for backbone.network.0.0.mlp.fc1.weight: copying a param with shape torch.Size([512, 64, 1, 1]) from checkpoint, the shape in current model is torch.Size([512, 64]). size mismatch for backbone.network.0.0.mlp.fc2.weight: copying a param with shape torch.Size([64, 512, 1, 1]) from checkpoint, the shape in current model is torch.Size([64, 512]). Hope you can provide new checkpoints. thank you.

Missyfirst avatar Dec 04 '23 13:12 Missyfirst

I am also having the same issue. Have you solved it?

sazed49 avatar Mar 09 '24 00:03 sazed49

try followings:

  1. fix MLP in context_cluster.py image

  2. fix Cluster in context_cluster.py image

ujaejoon avatar Apr 16 '24 13:04 ujaejoon