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

Problems with infer #8

Open
Codermay opened this issue May 11, 2019 · 5 comments
Open

Problems with infer #8

Codermay opened this issue May 11, 2019 · 5 comments

Comments

@Codermay
Copy link

Thanks for your good implementation. I have run your code on my own dataset. And I want to know, do your code provide multiple images inferring?

@potterhsu
Copy link
Owner

No, but you can easily extend for your needs.

@PaperLamp
Copy link

Thanks for your codes. May I ask for your help about the following problem:
When I try to evaluate or infer, I meet this error:
1.evaluate:
size mismatch for detection._proposal_transformer.bias: copying a param with shape torch.Size([368]) from checkpoint, the shape in current model is torch.Size([84]).
2.infer:
size mismatch for rpn._anchor_transformer.weight: copying a param with shape torch.Size([48, 512, 1, 1]) from checkpoint, the shape in current model is torch.Size([36, 512, 1, 1]).
Thank you

@PeterBishop0
Copy link

same problems,have you worked it out?@PaperLamp

@PeterBishop0
Copy link

@potterhsu

@potterhsu
Copy link
Owner

These sorts of errors usually occurred when your configs between training and inference are inconsistent, for example:

  • You were training with anchor_sizes=[64,128,256,512]
  • But are inferring with anchor_sizes=[128,256,512]

@Ayuan66 Ayuan66 mentioned this issue Feb 6, 2021
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

4 participants