Skip to content
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

模型转换到ncnn #18

Open
hujuan940506 opened this issue Aug 8, 2018 · 9 comments
Open

模型转换到ncnn #18

hujuan940506 opened this issue Aug 8, 2018 · 9 comments

Comments

@hujuan940506
Copy link

大佬,模型转换的第二步的时候,mobilefacenet.bin这个文件是哪里的啊。望大佬解答

@moli232777144
Copy link
Owner

insightface作者提供的模型按文档流程自己转一遍就有了。

@hujuan940506
Copy link
Author

谢谢大佬的回复,我在您给的模型转换
(2.编译最新版本ncnn的mxnet2ncnn工具; 或直接运行mxnet文件夹的mxnet2ncnn.bat脚本
mxnet2ncnn.exe model-y1-arcface-symbol.json model-y1-arcface-0000.params mobilefacenet.param mobilefacenet.bin)
这一步执行出现“-bash: ./mxnet2ncnn.exe: cannot execute binary file: Exec format error”错误。
大佬,请问这是什么原因的啊

@moli232777144
Copy link
Owner

.exe是win工具,看起来你在linux环境下运行了该文件,可以从ncnn项目去自己编译下哈。

@hujuan940506
Copy link
Author

谢谢大佬。在win下转成功。大佬不太明白第三步的意思
“3.速度测试,增加ncnn的benchncnn工程 复制ncnn目录文件到sdcard卡下,运行下列指令”
增加ncnn的benchncnn工程,是原本ncnn-master/benchmark/benchncnn.cpp文件吗,然后重新编译吗

@moli232777144
Copy link
Owner

嗯,在那个代码里,加入mobilefacenet的测试这些代码,重新编译那个文件,然后运行教程的指令,就可以简单测试在你的机器上模型的运算速度。

@hujuan940506
Copy link
Author

谢谢大佬,方便加个qq或者微信不。 @moli232777144

@deeplearninggogogo
Copy link

你好,只是转换mobile模型,别的模型比如r100或者r50可以转换吗?我测试转换后加载模型不正确

@ZZ-QTD
Copy link

ZZ-QTD commented Feb 27, 2020

@huyazhou-2018 你好,我也遇到这个问题,你解决了吗

@xiakj
Copy link

xiakj commented Jul 27, 2020

@moli232777144 近期还在做人脸识别码?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants