chuanqi305 / rscnn

A cnn framework on Android platform, implemented with RenderScript and java, support MobileNet-SSD and faster-rcnn. No JNI/C++ or thirdparty dependencies.
MIT License
64 stars 22 forks source link

error while converting #6

Open gWOLF3 opened 5 years ago

gWOLF3 commented 5 years ago

F0404 19:12:25.205163 373228992 net.cpp:767] Check failed: target_blobs.size() == source_layer.blobs_size() (1 vs. 2) Incompatible number of blobs for layer conv0

jeffrey-antoine commented 5 years ago

I've got the same problem

gWOLF3 commented 5 years ago

@jeffrey-antoine I fixed this by crushing one of the batch norm layers so it was compatible. You can see my branch where I fixed this problem and also updated for android API level 28. I submiitted a PR here but I am not sure chuanqi is still actively maintaining this. Feel free to see my fixes here: https://github.com/gWOLF3/rscnn . Best of luck.

jeffrey-antoine commented 5 years ago

Thank you for your help@gWOLF3. I tried merge_bn.py, but it reported an error "caffe.LayerParameter has no field named permute_param". I have rechecked a lot of times that I'm indeed using caffe-ssd from https://github.com/weiliu89/caffe/tree/ssd. Have you met this problem before? If you did, how do you solve it?