Git Product home page Git Product logo

Comments (3)

wang21jun avatar wang21jun commented on May 23, 2024

Please refer to backbone/backbone_def.py
model = Resnet(50, 0.4, 'ir', 512, 7, 7)

from facex-zoo.

GitHubLuGeng avatar GitHubLuGeng commented on May 23, 2024

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.

GitHubLuGeng avatar GitHubLuGeng commented on May 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.