Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError about demo! #193

Open
Yuejingkun opened this issue Mar 13, 2023 · 2 comments
Open

RuntimeError about demo! #193

Yuejingkun opened this issue Mar 13, 2023 · 2 comments

Comments

@Yuejingkun
Copy link

❓ Questions and Help

When I run /demo/webcam.py, I met this runtime error

RuntimeError: Error(s) in loading state_dict for GeneralizedRCNN:
size mismatch for rpn.head.conv.weight: copying a param with shape torch.Size([256, 256, 3, 3]) from checkpoint, the shape in current model is torch.Size([512, 256, 3, 3]).
size mismatch for rpn.head.conv.bias: copying a param with shape torch.Size([256]) from checkpoint, the shape in current model is torch.Size([512]).
size mismatch for roi_heads.box.feature_extractor.fc6.weight: copying a param with shape torch.Size([1024, 12544]) from checkpoint, the shape in current model is torch.Size([2048, 12544]).
size mismatch for roi_heads.box.feature_extractor.fc6.bias: copying a param with shape torch.Size([1024]) from checkpoint, the shape in current model is torch.Size([2048]).
size mismatch for roi_heads.box.feature_extractor.fc7.weight: copying a param with shape torch.Size([1024, 1024]) from checkpoint, the shape in current model is torch.Size([2048, 2048]).
size mismatch for roi_heads.box.feature_extractor.fc7.bias: copying a param with shape torch.Size([1024]) from checkpoint, the shape in current model is torch.Size([2048]).
size mismatch for roi_heads.box.predictor.cls_score.weight: copying a param with shape torch.Size([81, 1024]) from checkpoint, the shape in current model is torch.Size([81, 2048]).
size mismatch for roi_heads.box.predictor.bbox_pred.weight: copying a param with shape torch.Size([324, 1024]) from checkpoint, the shape in current model is torch.Size([324, 2048]).

@Yunhao-Liu
Copy link

I meet the same question

@MeinhardMark
Copy link

Did you solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants