deepinsight / deepinsight/insightface
RuntimeError: Error(s) in loading state_dict for IResNet
- Dominant language
- Python
- Stars
- 29.7k
- Forks
- 6.1k
- PR merge metrics
- No merged PRs in 30d
Description
While running the insightface/recognition/arcface_torch/eval_ijbc.py, I encounter the following error. What is the problem?
```
Time: 0.40 s.
Time: 3.46 s.
files: 469375
Traceback (most recent call last):
File "/home/tw/Projects/torch/insightface/recognition/arcface_torch/eval_ijbc.py", line 370, in
model_path, 0, gpu_id)
File "/home/tw/Projects/torch/insightface/recognition/arcface_torch/eval_ijbc.py", line 168, in get_image_feature
embedding = Embedding(model_path, data_shape, batch_size)
File "/home/tw/Projects/torch/insightface/recognition/arcface_torch/eval_ijbc.py", line 62, in __init__
resnet.load_state_dict(weight)
File "/home/tw/.virtualenvs/torch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1045, in load_state_dict
self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for IResNet:
Missing key(s) in state_dict: "layer1.2.bn1.weight", "layer1.2.bn1.bias", "layer1.2.bn1.running_mean",
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.