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

Weights are mismatched with the model #3

Open
schliffen opened this issue Aug 10, 2020 · 1 comment
Open

Weights are mismatched with the model #3

schliffen opened this issue Aug 10, 2020 · 1 comment

Comments

@schliffen
Copy link

I tried to use yolov3-tiny.pt weight downloaded from the provided link but unfortunately, I got the following error:

size mismatch for module_list.4.Conv2d.weight: copying a param with shape torch.Size([32, 32, 3, 3]) from checkpoint, the shape in current model is torch.Size([32, 64, 3, 3]). size mismatch for module_list.12.Conv2d.weight: copying a param with shape torch.Size([64, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 128, 3, 3]). size mismatch for module_list.20.Conv2d.weight: copying a param with shape torch.Size([128, 128, 3, 3]) from checkpoint, the shape in current model is torch.Size([128, 256, 3, 3]).

@tjuskyzhang
Copy link
Owner

I tried to use yolov3-tiny.pt weight downloaded from the provided link but unfortunately, I got the following error:

size mismatch for module_list.4.Conv2d.weight: copying a param with shape torch.Size([32, 32, 3, 3]) from checkpoint, the shape in current model is torch.Size([32, 64, 3, 3]). size mismatch for module_list.12.Conv2d.weight: copying a param with shape torch.Size([64, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 128, 3, 3]). size mismatch for module_list.20.Conv2d.weight: copying a param with shape torch.Size([128, 128, 3, 3]) from checkpoint, the shape in current model is torch.Size([128, 256, 3, 3]).

This project is focus on yolov4-tiny. For yolov3-tiny, you can try this project: https://github.com/wang-xinyu/tensorrtx

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

2 participants