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

pytorch模型find_blob_index_by_name data failed 怎么解决 #868

Closed
FiveCP opened this issue Mar 26, 2019 · 5 comments
Closed

pytorch模型find_blob_index_by_name data failed 怎么解决 #868

FiveCP opened this issue Mar 26, 2019 · 5 comments

Comments

@FiveCP
Copy link

FiveCP commented Mar 26, 2019

pytorch模型因为没有对各网络层命名导致find_blob_index_by_name data failed的错误,该怎么解决

@FiveCP
Copy link
Author

FiveCP commented Mar 26, 2019

解决了,转换成xxx.id.h就行了

@nihui nihui closed this as completed Apr 1, 2019
@hanfanggithub
Copy link

解决了,转换成xxx.id.h就行了

您好,可以请教一下是怎么解决的吗,我也遇到了这个问题

@FiveCP
Copy link
Author

FiveCP commented Apr 4, 2019

解决了,转换成xxx.id.h就行了

您好,可以请教一下是怎么解决的吗,我也遇到了这个问题

就是把pytorch模型的param和bin文件按使用指北中去除可见字符串的方式得到id.h和mem.h文件,然后在id.h文件就有输入层和输出层的blob名字,例如我的是BLOB_0和BLOB_28,然后使用指北里面的步骤就可以了

@hanfanggithub
Copy link

解决了,转换成xxx.id.h就行了

您好,可以请教一下是怎么解决的吗,我也遇到了这个问题

就是把pytorch模型的param和bin文件按使用指北中去除可见字符串的方式得到id.h和mem.h文件,然后在id.h文件就有输入层和输出层的blob名字,例如我的是BLOB_0和BLOB_28,然后使用指北里面的步骤就可以了

已经解决了,非常感谢!另外我还想向您请教一下,我的pytorch模型转到ncnn后,推理到中间某层就没有结果了,blob维度都为零,您有遇到过这种情况吗

@TomatoBoy90
Copy link

xxx.id.h是什么?

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

4 participants