cordova-plugin-tensorflow icon indicating copy to clipboard operation
cordova-plugin-tensorflow copied to clipboard

Inception V3 not working

Open kaustubhn opened this issue 7 years ago • 3 comments

I am using this plugin in one of my apps built with ionic 2 for android. When i used the inception V1 model I get the prediction results. But as soon as I try to use the inception v3 model I get an error saying

"Op BatchNormWithGlobalNormalization is not available in GraphDef version 21. It has been removed in version 9. User tf.nn.batch_normalization()."

My guess it we need to update the .so files and the .jar file. I tried to do that but it didn't work, could anyone please guide me in the direction?

Any help is appreciated. Thanks in Advance.

Edit 1: When using mobile net model (self trained) getting error as- "Problem reading labels file!"

kaustubhn avatar Jul 28 '17 11:07 kaustubhn

Give this a go, you need to strip your existing model for mobile use: https://petewarden.com/2016/09/27/tensorflow-for-mobile-poets/

timbutler avatar Aug 09 '17 00:08 timbutler

Hi Tim,

I have stripped the the model. Quantize the model

Still can't get it to work.

The error: Uncaught (in promise) -1

Were u able to make it work in v3?

steventanwc avatar Oct 26 '17 09:10 steventanwc

I wrote a tutorial on my blog showing how to generate a model inception v3 for mobile . is in Portuguese but you can use google translator :) http://www.davifelipe.com.br/tensorflow-gerando-model-para-dispositivo-movel

davifelipems avatar Mar 22 '18 14:03 davifelipems