Giter Club home page Giter Club logo

tflite4unity's People

Contributors

bkunters avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

tflite4unity's Issues

wrong model output

hey guys,
I tried my model via your selfie segmentation sample but no matter what I do, it always gives the wrong output
these are model input and output dimensions:
input => type: Float32, dimensions: [1,256,512,3], height, width, channel
output => Int64, dimensions: [1,256,512,1], height, width, channel
(channel index is between 0-18 (index 11: person)

download the model with the below link:
https://drive.google.com/file/d/1cdSqIlg3ES7kRTZvmn8rxhYXCREIBSSC/view?usp=sharing

"libOpenCL-pixel.so" not found

Thank you for doing this job.
I have a problem with the running of the project on Google pixel 2 Android 10, with Unity 2019.2.5 . I have used the development branch. Here is the error that I am getting from logcat.

AndroidJavaException: java.lang.IllegalArgumentException: Internal error: Failed to run on the given Interpreter: OpenCL library not loaded - dlopen failed: library "libOpenCL-pixel.so" not found Falling back to OpenGL TfLiteGpuDelegate Invoke: Write to buffer failed. Source data is larger than buffer.

Project is working properly on Google pixel 3 android 10 without changes.

Thanks in advance

Could you please explain how to setup and use the tflite model in the Unity environment

Hi,

I have been searching desperately for a solution of using TFlite model on Unity to develop for Android device, I want to build an Android app with augmented reality (ARCore) and artificial intelligence (TFlite), and your plug-in seems to have the best hope so far.

I do have some experience in Unity, but I have ZERO experience in TensorFlow and machine learning. I understand that the output of TensorFlow is a pre-trained model in .tflite format. Assume I can get a model ( there's a bunch online already) for a simple ML purpose (say object detection).

My main question is: how do I set up the environment in Unity to use this .tflite model? For example, a pretraining object tracking model should give me output as the target names and the bounding boxes. What should I do in Unity to make the use of this model?

Please bear with me if this sounds extremely stupid, but I am so desperately in need of this information, and I cannot find it anywhere else.

PS: the TFLite Android link in your post is broken.

[Feature] Editor Preview

Hello,

Thank you for your project. I succesfully build it and run it on Galaxy S10. And the frame rate was really good !
I have 2 questions concerning the development pipeline and the usage of ARCore. To say it clearly, i know nothing about MediaPipe and my knowledge in Android development is pretty low. So sorry in advance if the answered are triviale :)

  • Is there a way to have the preview in the Unity editor window (with TFLite running)
  • Is there any strong dependency with ARCore, or it's simple to remove it from your example project ?

Regards,
--Selim

Not hand tracking

First of all thank you for your great effort. I don't get the hand tracking.
Unity 2019.3.0b5
JDK 1.8.0_152
Google Pixel XL 8.1.0
I hope you can help me.
This is the message captured in the debug console:

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
2019-10-16 08:43:20.339 7519-7535/? E/Unity: AndroidJavaException: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(java.lang.Object[], java.util.Map)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'void org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(java.lang.Object[], java.util.Map)' on a null object reference
at com.bora.tflitehandtracking.HandTrackingInference.RunInference(HandTrackingInference.java:113)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:88)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:164)
at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidJNISafe.CallObjectMethod (Sys

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.