@Override protected NeuralNetwork doInBackground(File... params) { NeuralNetwork network = null; try { Log.e(LOG_TAG, "SNPE Start To Build" ) ; final SNPE.NeuralNetworkBuilder builder = new SNPE.NeuralNetworkBuilder(mApplication) .setDebugEnabled(true) // will show: snpe-android: Building SNPE instance... .setRuntimeOrder(mTargetRuntime) .setCpuFallbackEnabled(true) .setModel(mModel.file); network = builder.build(); Log.e(LOG_TAG, "SNPE NeuralNetwork Builder is build ok, can't reach here") ; Log.e(LOG_TAG, "SNPE outputs:" + network.getOutputLayers() ) ; } catch (IllegalStateException | IOException e) { Log.e(LOG_TAG, e.getMessage(), e); } catch (Exception e) { Log.e(LOG_TAG, "Can't Catch anything here:" + e.getMessage(), e); } return network; }
HI everyone
I already convert pb to dlc with tools.
I can run the sample alexnet and inception_v3.
when i replace the dlc with my custom model, the android crash immediately.
the java try-catch can't catch anything for me
can anyone help?
snpe 1.13.0.0 android sample
thankyou