Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Porting Trained Caffe Net with Custom Layer to Android

Hello, I'm trying to porting a CaffeNet in Android. The problem is in the net model that has a custom layer.

I've seen that opencv allows you to easily import a coffee network, but there is no way to add a custom layer directly from android similar to the C ++ method "dnn_registerLayer('Crop', CropLayer)".

I already have the implementation of the layer in C ++ which could be the fastest or easiest way to port in android ? I thought about using OPENCV in C ++ and the JNI but I wouldn't want to replicate what OpenCV android currently does.

Do you have any ideas? Thank you. F

Porting Trained Caffe Net with Custom Layer to Android

Hello, I'm trying to porting a CaffeNet in Android. The problem is in the net model that has a custom layer.

I've seen that opencv allows you to easily import a coffee network, but there is no way to add a custom layer directly from android similar to the C ++ method "dnn_registerLayer('Crop', CropLayer)"."dnn_registerLayer('xxxx', xxxxx)".

I already have the implementation of the layer in C ++ which could be the fastest or easiest way to port in android ? I thought about using OPENCV in C ++ and the JNI but I wouldn't want to replicate what OpenCV android currently does.

Do you have any ideas? Thank you. F