using the Qualcomm NeturalNetwork SDK. i can run the SNPE SDK Example and change to inception_v3 model, works fine.
but snpe will block-ui thread in the execute();
i have no way to stop this. android user will get bad UX.
i have tryed: low priority thread, job scheduler, etc
when i execute snpe with GPU, it always block the UI.
How can i config the SNPE, the Android UI is the high priority, SNPE is the lower priority, so we can get result quickly and do not block the UI
thank you.
You should be able to use an AsyncTask to run your inference on a background thread. See 'ClassifyImageTask' in the SNPE SDK for an example of this.