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

does anyone successfully run mobilefacenet with ncnn on android armv7? #486

Closed
yc-huang opened this issue Jul 19, 2018 · 4 comments
Closed

Comments

@yc-huang
Copy link

there's no errors when converting the mxnet model, but at runtime it will crash with SIGSEGV when get output from blob 171 or 170 (layer fc1 or pre_fc1); but if changed to get output of blob 169(layer conv_6dw7_7_batchnorm) it seems to work withot errors.

you might get the mxnet checkpoint from:
https://pan.baidu.com/s/1If28BkHde4fiuweJrbicVA

@simon-rob
Copy link

I haven't looked at the code... but I suspect it is a bug with the converter as pre_fc1 and fc1 share the same weights. I am not sure if the converter supports shared weights.

@yc-huang
Copy link
Author

@simon-rob Thanks for your information. I have a rough go thru of the mxnet2ncnn.cpp, it seems to have weights output to 'ncnn.bin' for each node seperately, so I guess weights are not shared in 'ncnn.bin' anymore?

@yc-huang
Copy link
Author

looks like any mxnet network contains FullyConnected layer might have similar issue.
I tried with a simple lenet, which could reproduce this: you can't get output from any layer after the flatten layer...
lenet_mnist.tar.gz

Haven't tried similar network trained on other framework yet...
@nihui do you have any suggestion on this? Thanks...

@yc-huang
Copy link
Author

This was caused by over-sized input. Mobilefacenet expect input size of 112x112x3, so crop input image to this size will work, otherwise it might encounter errors.

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

2 participants