Comments (4)
same here
from lightcnn.
if self._use_cuda:
checkpoint = torch.load(self._model_path)
restore_dict = checkpoint
else:
checkpoint = torch.load(model_path, map_location='cpu')
restore_dict = {k[7:]: v for k, v in checkpoint['state_dict'].items()}
self.model.load_state_dict(restore_dict)
from lightcnn.
same here @AlfredXiangWu
I downloaded All of the files for models and all of them make an Error.
this is the error I get.
loading checkpoint 'prev9.path.tar' Traceback (most recent call last): File "extract_features.py", line 115, in <module> main() File "extract_features.py", line 67, in main model.load_state_dict(checkpoint['state_dict']) File "/home/amint/virtualenvironment/lightcnn/local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 839, in load_state_dict self.__class__.__name__, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for network_9layers: Missing key(s) in state_dict: "features.0.filter.bias", "features.0.filter.weight", "features.2.conv_a.filter.bias", "features.2.conv_a.filter.weight", "features.2.conv.filter.bias", "features.2.conv.filter.weight", "features.4.conv_a.filter.bias", "features.4.conv_a.filter.weight", "features.4.conv.filter.bias", "features.4.conv.filter.weight", "features.6.conv_a.filter.bias", "features.6.conv_a.filter.weight", "features.6.conv.filter.bias", "features.6.conv.filter.weight", "features.7.conv_a.filter.bias", "features.7.conv_a.filter.weight", "features.7.conv.filter.bias", "features.7.conv.filter.weight", "fc1.filter.bias", "fc1.filter.weight", "fc2.bias", "fc2.weight". Unexpected key(s) in state_dict: "module.features.0.filter.weight", "module.features.0.filter.bias", "module.features.2.conv_a.filter.weight", "module.features.2.conv_a.filter.bias", "module.features.2.conv.filter.weight", "module.features.2.conv.filter.bias", "module.features.4.conv_a.filter.weight", "module.features.4.conv_a.filter.bias", "module.features.4.conv.filter.weight", "module.features.4.conv.filter.bias", "module.features.6.conv_a.filter.weight", "module.features.6.conv_a.filter.bias", "module.features.6.conv.filter.weight", "module.features.6.conv.filter.bias", "module.features.7.conv_a.filter.weight", "module.features.7.conv_a.filter.bias", "module.features.7.conv.filter.weight", "module.features.7.conv.filter.bias", "module.fc1.filter.weight", "module.fc1.filter.bias", "module.fc2.weight", "module.fc2.bias".
from lightcnn.
the solution is in this issue.
from lightcnn.
Related Issues (20)
- All images in LFW are (128,128)
- LFW open and close set identification using gallery-probe list HOT 1
- Where is the LightCNN v2 implementation said to have been updated in section 'updates'
- Finetune LightCNN29 on the other dataset
- Can you public the model fine-tune on casia nir-vis 2.0?
- Exploding Gradients HOT 1
- Could you share the MS-Celeb-1M dataset? HOT 2
- 3通道图像如何直接使用预训练模型 HOT 1
- What if there are multiple galleries for the same identity? HOT 1
- I can't unzip the file of model named LightCNN_29Layers_V2_checkpoint.pth
- LFW Alignment and detection
- The trained model is damaged HOT 1
- LightCNN visualization
- trainlist HOT 1
- Model Weights HOT 1
- IJB-A test protocol and result HOT 4
- Any references for v4? HOT 2
- tabular data/ noisy instances/ new datasets
- why the features are almost the same HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightcnn.