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

Use ML Kit with NNAPI #50

Closed
padovanl opened this issue Feb 6, 2019 · 6 comments
Closed

Use ML Kit with NNAPI #50

padovanl opened this issue Feb 6, 2019 · 6 comments

Comments

@padovanl
Copy link

padovanl commented Feb 6, 2019

I'm trying to use the new Google machine learning sdk, ML Kit, on an Android device that run Android 9. From the official site:

ML Kit makes it easy to apply ML techniques in your apps by bringing Google's ML technologies, such as the Google Cloud Vision API, TensorFlow Lite, and the Android Neural Networks API together in a single SDK. Whether you need the power of cloud-based processing, the real-time capabilities of mobile-optimized on-device models, or the flexibility of custom TensorFlow Lite models, ML Kit makes it possible with just a few lines of code.

I think it means that on a device with at least Android 8.1 (according to the documentation of nnapi) the SDK can uses NNAPI. But when I run the same app on a device with Android 7.1 (where nnapi is not supported) I obtain the same performance of the device that use Android 9 (and in theory the NNAPI). How i can use ML Kit with NNAPI? I am doing something wrong? Link to documentation of mlkit: https://firebase.google.com/docs/ml-kit/

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@samtstern
Copy link

@padovanl what exactly is your app's use case (which MLKit feature are you using?) and what is the performance you are seeing?

@padovanl
Copy link
Author

padovanl commented Feb 6, 2019

@samtstern thanks for the response. I'm using a custom model (Inception v3) for the classification of images. I'm measuring the time of the inference.

@samtstern
Copy link

@isaisachen or @gkaldev can you comment on when the NN API takes effect?

@padovanl
Copy link
Author

padovanl commented Feb 7, 2019

I'm trying to run the app with this evaluation board. In this paper i read that NNAPI use hardware acceleration when drivers are presents. So, where i can find this NNAPI driver and use it in Snapdragon 660 chipset?

@ulukaya ulukaya transferred this issue from firebase/quickstart-android Jun 30, 2020
@ulukaya ulukaya transferred this issue from another repository Jun 30, 2020
@swiyu
Copy link
Collaborator

swiyu commented Jan 22, 2021

ML Kit ODT is running with NNAPI on selected devices, and more features will use NNAPI soon. Closing this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants