Comments (3)
Please refer to backbone/backbone_def.py
model = Resnet(50, 0.4, 'ir', 512, 7, 7)
from facex-zoo.
Please refer to backbone/backbone_def.py
model = Resnet(50, 0.4, 'ir', 512, 7, 7)
1.已经修改成model = Resnet(50, 0.4, 'ir', 512, 7, 7),还是报同样的错误
2.我又尝试了一下下面你们提供的加载方式,依然报错“invalid load key, '\xff'.”
backbone_conf_path = "/home/lu/PycharmProjects/FaceX-Zoo/test_protocol/backbone_conf.yaml"
backbone_factory = BackboneFactory("ResNet", backbone_conf_path)
model_loader = ModelLoader(backbone_factory)
model = model_loader.load_model(self.cfg['model_file_path'])
详细报错信息如下
Start to load the face recognition model...
backbone param:
{'depth': 50, 'drop_ratio': 0.4, 'net_mode': 'ir', 'feat_dim': 512, 'out_h': 7, 'out_w': 7}
Failed to load face recognition model.
invalid load key, '\xff'.
Process finished with exit code 255
3.我的环境是ubuntu16+python3.6+pytorch1.1.0
from facex-zoo.
@wang21jun
好像是Resnet50-ir模型文件有问题,我又下载了一个Resnet152-irse的模型文件,使用同样的方式能加载成功
详细日志如下
Start to load the face recognition model...
backbone param:
{'depth': 152, 'drop_ratio': 0.4, 'net_mode': 'ir_se', 'feat_dim': 512, 'out_h': 7, 'out_w': 7}
Success!
face model loaded
from facex-zoo.
Related Issues (20)
- 请问有没有pytorch安装接口?
- add a mask
- [face_sdk] Error when detect and align face-down
- render_cy error
- loading pretrained backbones
- model4 is missing on net disk
- semi-siamese traning error
- semi-siamese training error
- multi-processing
- Questions about DMUE training on different datasets HOT 3
- FileNotFoundError: [Errno 2] No such file or directory: './weights/AffectNet_res18_acc0.6285.pth'
- CASIA-MFSD Dataset
- swin transformer depoly HOT 1
- face_parsing first time inference waits too long
- Training and Testing Image Format - Was the training done on BGR images and testing on RGB?
- face_sdk的face_pipeline里,人脸检测模型已经输出了5个关键点,为什么还要用faceAlignModel再检测关键点?
- DMUE pre-trained models
- 请问,我在lfw测试上效果不好?
- File "logging.conf" has a redundant ']' in line 32
- Model weights are trash
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 facex-zoo.