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

NNAPI doesn't work on google-edgetpu [Mobile] #20782

Closed
nonetrix opened this issue May 23, 2024 · 2 comments
Closed

NNAPI doesn't work on google-edgetpu [Mobile] #20782

nonetrix opened this issue May 23, 2024 · 2 comments
Labels
platform:mobile issues related to ONNX Runtime mobile; typically submitted using template stale issues that have not been addressed in a while; categorized by a bot

Comments

@nonetrix
Copy link

Describe the issue

I am trying to run Stable Diffusion locally on my Pixel 6a with the help of SDAI on Android, it uses this library under the hood to implement Stable Diffusion. However, for some reason my device doesn't work. Related issues here ShiftHackZ/Stable-Diffusion-Android#82 and ShiftHackZ/Stable-Diffusion-Android#160
Screenshot_20240523-023248
This seems to be related to onnxruntime rather than the app

To reproduce

  1. Download SDAI or probably just try to do anything with onnxruntime on Pixel device (confirmed devices to have this issue are Pixel 6a and Pixel 8 Pro)

Urgency

medium to minor, Pixel devices are somewhat common now so this should be fixed imo

Platform

Android

OS Version

14

ONNX Runtime Installation

Other / Unknown

Compiler Version (if 'Built from Source')

No response

Package Name (if 'Released Package')

onnxruntime-android

ONNX Runtime Version or Commit ID

1.16.3

ONNX Runtime API

Java/Kotlin

Architecture

ARM64

Execution Provider

NNAPI

Execution Provider Library Version

No response

@nonetrix nonetrix added the platform:mobile issues related to ONNX Runtime mobile; typically submitted using template label May 23, 2024
@github-actions github-actions bot added the api:Java issues related to the Java API label May 23, 2024
@skottmckay
Copy link
Contributor

Most likely the root cause is either

  • a model with dynamic input shapes (NNAPI doesn't support this), or
  • the model is using one or more ONNX operators that the NNAPI Execution Provider doesn't convert to the equivalent NNAPI operator, or
  • the model is using an NNAPI operator that the device does not have a non-CPU implementation for, and execution by NNAPI using CPU is disabled

I couldn't see the actual models anywhere on the repo for that app, so it's hard to say without being able to look at those directly.

@skottmckay skottmckay removed the api:Java issues related to the Java API label May 23, 2024
Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:mobile issues related to ONNX Runtime mobile; typically submitted using template stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

2 participants