I follow Qualcomm Neural Processing Engine official tutorial to build the Android sample app.
When the app loads model occur error. Error message following:
09-01 12:21:20.600 30650-30681/com.qualcomm.qti.snpe.imageclassifiers E/LoadNetworkTask: Unable to create network! Cause: error_code=307; error_message=Model record is missing in dlc. Missing mandatory record model; error_component=Dl Container; line_no=447; thread_id=-1422036112 java.lang.IllegalStateException: Unable to create network! Cause: error_code=307; error_message=Model record is missing in dlc. Missing mandatory record model; error_component=Dl Container; line_no=447; thread_id=-1422036112 at com.qualcomm.qti.snpe.internal.NativeNetwork.nativeInitFromFile(Native Method) at com.qualcomm.qti.snpe.internal.NativeNetwork.<init>(NativeNetwork.java:90) at com.qualcomm.qti.snpe.SNPE$NeuralNetworkBuilder.build(SNPE.java:214) at com.qualcomm.qti.snpe.imageclassifiers.tasks.LoadNetworkTask.doInBackground(LoadNetworkTask.java:50) at com.qualcomm.qti.snpe.imageclassifiers.tasks.LoadNetworkTask.doInBackground(LoadNetworkTask.java:20) at android.os.AsyncTask$2.call(AsyncTask.java:292) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
How can I solve this problem?
Thank your
You need to follow the setup instructions to get the model data in the right places.
I am getting the same error. I was wondering if anyone was able to resolve this?
I tried both:
- Inception model aquired through the setup_inceptionv3.py with a -d flag on snpe-1.19.2
- Manually converted Mobilenet SSD (also following the provided tutorial steps)
I checked that the file I'm passing to SNPE.NeuralNetworkBuilder is indeed a dlc model and that it has the right contents. I would appreciate any help on this.
This problem happens because your app parsed the dlc file not correctly, while your app unzip model file not successfully, so dlc file is damaged in your phone.To solve this problem, you should push an undamaged dlc file to your phone. The undamaged file is in your app source directory, in src/main/res/raw/inception_v3.zip, unzip it and find model.dlc. then type: adb push model.dlc /storage/emulated/0/Android/data/com.qualcomm.qti.snpe.imageclassifiers/files/models/inception_v3
in app. it takes long time to load network ?