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

mobilenet网络模型,加载后,返回值一直是empty #422

Closed
GuoJaw opened this issue May 28, 2018 · 9 comments
Closed

mobilenet网络模型,加载后,返回值一直是empty #422

GuoJaw opened this issue May 28, 2018 · 9 comments

Comments

@GuoJaw
Copy link

GuoJaw commented May 28, 2018

大神,请教下,我用mobilenet网络训练生成的一对模型,进行转换后,使用load_param和load_model加载后,返回一直是空值,不知道什么原因。
@nihui
注:我自己训练的alexnet网络的转换后可以正常使用,但是mobilenet网络训练的确不能使用。

下面是我的检测模型:prototxt和caffemodel

希望大神帮帮我,再次感谢

模型.tar.gz

@GuoJaw
Copy link
Author

GuoJaw commented May 28, 2018

squeezenet.load_param("kitti_model/mobilenet.param");代码执行结果find_blob_index_by_name input failed

@nihui
Copy link
Member

nihui commented May 31, 2018

查阅wiki使用指北中,关于prototxt输入层修改的部分

@GuoJaw
Copy link
Author

GuoJaw commented Jun 1, 2018

非常感谢nihui大神的回复,我去查看下wiki,再次感激

@GuoJaw
Copy link
Author

GuoJaw commented Jun 2, 2018

非常感谢大神,我的代码调试好了,感谢

@luccao
Copy link

luccao commented Jul 26, 2018

你具体是怎么解决的,我已经修改dim=1以后,还是出现这个错误 @nihui @GuoJaw

@luccao
Copy link

luccao commented Jul 26, 2018

(image:19851): Gtk-WARNING **: cannot open display:
root@lcc:/home/share/ncnn/build/examples# ./mobilenet_v2 test.jpg
fopen ZF_faster_rcnn_final.proto failed
fopen ZF_faster_rcnn_final.bin failed
find_blob_index_by_name data failed
find_blob_index_by_name im_info failed
find_blob_index_by_name conv5 failed
find_blob_index_by_name rois failed

运行的时候出现这个错误

gdb bt以后出现0 0x00007ffff66e3428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff66e502a in __GI_abort () at abort.c:89
#2 0x00007ffff747184d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff746f6b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff746f701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff746f919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff749814f in std::__throw_logic_error(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x000000000040521c in std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&) [clone .isra.53] ()

@nihui
Copy link
Member

nihui commented Jul 26, 2018

https://github.com/Tencent/ncnn/wiki/FAQ-ncnn-throw-error

@luccao
Copy link

luccao commented Jul 26, 2018

@nihui upgrade_net_proto_text upgrade_net_proto_binary,这两个工具对于目前来说,caffe2已经融合到pytorch中,所以这两个已经找不到了,是有有就旧的链接能找到呢,大神?

@hellocsi
Copy link
Contributor

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