GithubHelp home page GithubHelp logo

Comments (6)

asus4 avatar asus4 commented on May 19, 2024

The error shows that it failed to load native plugins libtensorflowlite_c.so and libtensorflowlite_gpu_delegate.so. The native android plugins are built for only ARM64 CPU for now. It doesn't support ARMv7 refs #11

Or it might also help to test if Posenet model works on the official Android sample.
https://github.com/tensorflow/examples/tree/master/lite/examples/posenet/android

from tf-lite-unity-sample.

guoguoguilai avatar guoguoguilai commented on May 19, 2024

The error shows that it failed to load native plugins libtensorflowlite_c.so and libtensorflowlite_gpu_delegate.so. The native android plugins are built for only ARM64 CPU for now. It doesn't support ARMv7 refs #11

Or it might also help to test if Posenet model works on the official Android sample.
https://github.com/tensorflow/examples/tree/master/lite/examples/posenet/android

Thanks for your quick response!
The CPU of my Android phone is ARM64-v8a. And I am also wondering why the sample from this repo works well in my phone even though throwed such error.

from tf-lite-unity-sample.

guoguoguilai avatar guoguoguilai commented on May 19, 2024

I am new to Tflite. I might make a stupid mistake. The privious tflite model cames from pb without quantization. After converting my pb model with a quantization option, the second error disappears. But the first error remains, which is strange.

from tf-lite-unity-sample.

asus4 avatar asus4 commented on May 19, 2024

sorry, I was misunderstood. In that case, I think the generated tflite model is not supported. If the model works on the official Android sample, you might want to try updating *.so library.

from tf-lite-unity-sample.

guoguoguilai avatar guoguoguilai commented on May 19, 2024

sorry, I was misunderstood. In that case, I think the generated tflite model is not supported. If the model works on the official Android sample, you might want to try updating *.so library.

But why this sample works well even though throw that error?
Maybe every time this error just occurs. The reason why nobody noticed that is no one look into adb log because their models work just fine.

from tf-lite-unity-sample.

kaiquesacchi avatar kaiquesacchi commented on May 19, 2024

#77
I had a similar problem, the solution provided by @ganaware might help you:

I have had a similer problem.
The cause of the problem is that Mono is the default scripting backend for a new unity project for Android.
Unfortunately, Mono can run only for the ARMv7 architecture.

So my solution is that:

Project Settings > Player > Android > Other Settings > Configuration
Select IL2CPP for Scripting Backend
Uncheck ARMv7 and check ARM64 for Target Architectures
Or, build my own TFLite library for ARMv7
libnnapi_delegate.so, libtensorflowlite_c.so, libtensorflowlite_gpu_delegate.so
They worked fine for me.

from tf-lite-unity-sample.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.