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

how to train my own datasets with different num_class #49

Open
Kenneth-X opened this issue Jun 11, 2020 · 0 comments
Open

how to train my own datasets with different num_class #49

Kenneth-X opened this issue Jun 11, 2020 · 0 comments

Comments

@Kenneth-X
Copy link

using centermask_V_99_eSE_FPN_ms_3x.yaml and centermask-V2-99-FPN-ms-3x.pth
it occurs this bug:

self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for GeneralizedRCNN:
size mismatch for roi_heads.mask.predictor.mask_fcn_logits.weight: copying a param with shape torch.Size([81, 256, 1, 1]) from checkpoint, theshape in current model is torch.Size([2, 256, 1, 1]).
size mismatch for roi_heads.mask.predictor.mask_fcn_logits.bias: copying a param with shape torch.Size([81]) from checkpoint, the shape in current model is torch.Size([2]).
size mismatch for roi_heads.maskiou.predictor.maskiou.weight: copying a param with shape torch.Size([81, 1024]) from checkpoint, the shape in current model is torch.Size([2, 1024]).
size mismatch for roi_heads.maskiou.predictor.maskiou.bias: copying a param with shape torch.Size([81]) from checkpoint, the shape in current model is torch.Size([2]).

@Kenneth-X Kenneth-X changed the title how to train my own datasets with different num_clas how to train my own datasets with different num_class Jun 11, 2020
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

1 participant