Skip to content
New issue

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

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

Already on GitHub? # to your account

If loading model weights with Error.... #1

Open
shenyingying opened this issue Apr 2, 2019 · 1 comment
Open

If loading model weights with Error.... #1

shenyingying opened this issue Apr 2, 2019 · 1 comment

Comments

@shenyingying
Copy link

@cinastanbean
thanks for your great job,but i can't find the model_best_checkpoint_resnet18.pth.tar ,it's different with it,can you post this weights,looking for your replay,thanks very much.

@cinastanbean
Copy link
Owner

Hi, 这个不是标准的resnet18, 它的头部被更改过以用于解决多任务分类问题;

self.model.fc = mlmcmodel.BuildMultiLabelModel(fc_features, class_numbers)

ref: https://github.com/cinastanbean/pytorch-onnx-tensorflow-pb/blob/master/diymodel.py

你可以修改这一部分,然后加载官方的权重。

@cinastanbean cinastanbean reopened this Jul 25, 2019
@cinastanbean cinastanbean changed the title model weights If load model weights with Error.... Jul 25, 2019
@cinastanbean cinastanbean changed the title If load model weights with Error.... If loading model weights with Error.... Jul 25, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants