up-detr icon indicating copy to clipboard operation
up-detr copied to clipboard

Evaluation problem

Open liuchengying758650786 opened this issue 3 months ago • 0 comments

          I have the opposite situation.

RuntimeError: Error(s) in loading state_dict for UPDETR: size mismatch for class_embed.weight: copying a param with shape torch.Size([3, 256]) from checkpoint, the shape in current model is torch.Size([92, 256]). size mismatch for class_embed.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([92]).

How to fix it?

Originally posted by @liuchengying758650786 in https://github.com/dddzg/up-detr/issues/13#issuecomment-2011164443

liuchengying758650786 avatar Mar 21 '24 14:03 liuchengying758650786