-
Notifications
You must be signed in to change notification settings - Fork 432
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-ir报错“invalid load key, '\xff'.”问题 #36
Comments
Please refer to backbone/backbone_def.py |
1.已经修改成model = Resnet(50, 0.4, 'ir', 512, 7, 7),还是报同样的错误 Process finished with exit code 255 |
@wang21jun |
使用3.1 Experiments of SOTA backbones下的模型时,发现有些模型可以加载成功有些会报错
我的pytorch为1.1.0 GPU版本
按照如下方式加载MobileFaceNet模型成功
model = MobileFaceNet(512, 7, 7)
model = nn.DataParallel(model)
model.load_state_dict(torch.load(‘model.pt', False)
但是按照同样方式加载Resnet50-ir模型报错“invalid load key, '\xff'.”
model = Resnet(152, 0.4)
model = nn.DataParallel(model)
model.load_state_dict(torch.load(‘model.pt’, False)
请问一下要怎么样才能正确加载Resnet50-ir模型?
The text was updated successfully, but these errors were encountered: