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

请教关于使用caffe2ncnn转换caffe的权参失败的问题 #423

Closed
johnnylecy opened this issue Jun 1, 2018 · 3 comments
Closed

请教关于使用caffe2ncnn转换caffe的权参失败的问题 #423

johnnylecy opened this issue Jun 1, 2018 · 3 comments

Comments

@johnnylecy
Copy link

你好,我使用caffe2ncnn将自己训练好的caffe权参文件caffemodel转换成ncnn的bin文件时出现失败,因为3M多的caffemodel文件转换为bin文件后只有100多个字节,这应该是转换失败了吧?但是执行命令时未提示任何错误信息
请问,出现这种情况有可能是什么原因呢?

@litingsjj
Copy link

我也是,请问你解决这个问题了吗?

@johnnylecy
Copy link
Author

已经解决了。因为ncnn转换权参时是按照伯克利的通用版本caffe的权参保存形式来读取的,如果训练模型使用的不是通用版本的caffe那么保存的caffemodel文件中的权参数据的形式可能就不同,那么ncnn就会读不出权参数据,导致转换失败。
你看看是否情况一样?

@nihui
Copy link
Member

nihui commented Feb 25, 2020

close resolved issue

This issue was closed.
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

3 participants