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

resnet50 resnet101 pretrained model #23

Open
XDUSPONGE opened this issue Sep 7, 2019 · 2 comments
Open

resnet50 resnet101 pretrained model #23

XDUSPONGE opened this issue Sep 7, 2019 · 2 comments

Comments

@XDUSPONGE
Copy link

hello
may I have your resnet50
resnet101 pretrained model
thanks very much

@ymmshi
Copy link

ymmshi commented Sep 8, 2019

download pretrained model https://download.pytorch.org/models/resnet152-b121ed2d.pth or https://download.pytorch.org/models/resnet50-19c8e357.pth and then modify 121 line in train.py as follows:
pretrained_dict = base_weights
model_dict = net.resnet.state_dict()
pretrained_dict = {k:v for k,v in pretrained_dict.items() if k in model_dict}
model_dict.update(pretrained_dict)
print(model_dict)
net.resnet.load_state_dict(model_dict)

@pacchomp
Copy link

download pretrained model https://download.pytorch.org/models/resnet152-b121ed2d.pth or https://download.pytorch.org/models/resnet50-19c8e357.pth and then modify 121 line in train.py as follows: pretrained_dict = base_weights model_dict = net.resnet.state_dict() pretrained_dict = {k:v for k,v in pretrained_dict.items() if k in model_dict} model_dict.update(pretrained_dict) print(model_dict) net.resnet.load_state_dict(model_dict)

你好,请问有没有res152训练完在wider face上的结果

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