Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using NPU in ImageClassification demo app #51

Open
ciaranbor opened this issue May 31, 2024 · 2 comments
Open

Using NPU in ImageClassification demo app #51

ciaranbor opened this issue May 31, 2024 · 2 comments
Labels
assigned We're actively working on this issue and hope to provide an update soon bug Something isn't working

Comments

@ciaranbor
Copy link

ciaranbor commented May 31, 2024

I am attempting to use the image classification Android app to verify NPU usage with the tflite runtime. I am using a phone with the Snapdragon 8 Gen 3 chipset.

When running the app, the execution time for CPU and NPU (after a few executions of each) settle at around the same, ~14ms compared to the reported NPU execution time of <1ms. Is there any way to debug this or verify whether the tflite runtime is using the NPU?

I have tried both downloading the MobileNet-v3-Small model from aihub and using the this export script. I have also tried installing the app with the provided build_apk.py script and using Android Studio, after manually copying the tflite model to assets. In each case the result is the same.

When I try the app on a phone without an NPU, it crashes while trying to register the HTP backend. This leads me to believe the HTP backend is being registered correctly for the Gen 3 phone.

@mestrona-3
Copy link

Hi @ciaranbor, thank you for reporting this! This is a known issue, that the app performance doesn't reproduce the expected latency in AI Hub. we're actively working on a fix and are hoping to have an update by our next release.

@mestrona-3 mestrona-3 added bug Something isn't working assigned We're actively working on this issue and hope to provide an update soon labels Jun 4, 2024
@MrRace
Copy link

MrRace commented Jun 18, 2024

mark~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned We're actively working on this issue and hope to provide an update soon bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants