efficientdet-pytorch icon indicating copy to clipboard operation
efficientdet-pytorch copied to clipboard

get_dr_txt.py 报错

Open zhangke1997 opened this issue 5 years ago • 5 comments

RuntimeError: Error(s) in loading state_dict for EfficientDetBackbone: size mismatch for classifier.header.pointwise_conv.conv.weight: copying a param with shape torch.Size([45, 112, 1, 1]) from checkpoint, the shape in current model is torch.Size([189, 112, 1, 1]). size mismatch for classifier.header.pointwise_conv.conv.bias: copying a param with shape torch.Size([45]) from checkpoint, the shape in current model is torch.Size([189]). 用的phi=2 pth文件也改了,为什么维度对不上呢

zhangke1997 avatar Sep 07 '20 05:09 zhangke1997

没问题了

zhangke1997 avatar Sep 08 '20 02:09 zhangke1997

I have the same problem. Can you tell me how to solve it. Thanks!!!!!!!!!!!!!

qingHX avatar Sep 08 '20 08:09 qingHX

That's My fault. The file name is wrong. Thanks!!!

qingHX avatar Sep 08 '20 12:09 qingHX

请问怎么解决这个问题的?

buxiangqimingzia avatar Sep 29 '20 07:09 buxiangqimingzia

phi and class.txt should be changed together

n719710930 avatar Mar 22 '21 11:03 n719710930