Giter Club home page Giter Club logo

Comments (12)

marimomo00 avatar marimomo00 commented on May 22, 2024 1

from tf-lite-unity-sample.

marimomo00 avatar marimomo00 commented on May 22, 2024 1

@manena
There are instruction on building tensorflow.
https://www.tensorflow.org/install/source

However, I got lots of error when compiling on windows. I'm still struggling on building android_arm. I've opened another issue and hope someone could help.

tensorflow/tensorflow#38525

@gblue1223 I've tried ''tensorflow-2.1.0" and ''bazel-0.29.1'', but with error. Do you build on Windows or MAC OS?

from tf-lite-unity-sample.

gblue1223 avatar gblue1223 commented on May 22, 2024 1

@manena Here is the .so files. Good luck~

from tf-lite-unity-sample.

asus4 avatar asus4 commented on May 22, 2024

@marimomo00 Android plugin *.so files are built for only Arm64 CPU for now. Could you try to rebuild the plugin with android_arm option instead of android_arm64?

# Configure the Android SDK path by running configure script at the repository root
./configure

# Build experimental
bazel build -c opt --cxxopt=--std=c++11 --config=android_arm //tensorflow/lite/experimental/c:libtensorflowlite_c.so

# Build GPU delegate
bazel build -c opt --config android_arm --copt -Os --copt -DTFLITE_GPU_BINARY_RELEASE --copt -fvisibility=hidden --linkopt -s --strip always //tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so

from tf-lite-unity-sample.

gblue1223 avatar gblue1223 commented on May 22, 2024

I wanna share my experience about Bazel building.
First of all, I've built with ''tensorflow-2.1.0" and ''bazel-0.29.1''.
And I ran ''./configure'' and everything leave as default but set options regarding Android.

Then I ran the command as @asus4 said.
You have to make sure about tensorflow and bazel version.
It is very sensitive.

from tf-lite-unity-sample.

manena avatar manena commented on May 22, 2024

I'm sorry I'm new to building so files.
I would like to build for android_arm. I'm working on MAC OS Catalina and have no idea if these are commands to run from the shell, what directory I should be in and what would I need to install in order to be able to build.

Can you give me some guidance?

Thanks in advance

from tf-lite-unity-sample.

gblue1223 avatar gblue1223 commented on May 22, 2024

@marimomo00 I've built on Ubuntu. Since Tensorflow more familiar with Linux, you should try on Linux OS.

from tf-lite-unity-sample.

manena avatar manena commented on May 22, 2024

Thanks @marimomo00 i’ll try.
In the meanwhile @gblue1223: would it be possible for you to share with us the .so files you have built? It would be very helpful!

Regards and I hope all of you and your families are fine!

from tf-lite-unity-sample.

Freeverc avatar Freeverc commented on May 22, 2024

I've built libtensorflowlite_c.so for ARMv7,but I can not use it in your samples. The result on my phone is pure white with no images.How can I use it in ARMv7? I've changed the Target Architectures.

from tf-lite-unity-sample.

emusiceducation123 avatar emusiceducation123 commented on May 22, 2024

I built for ARMv7 as well. When it runs, log shows:
08-29 11:01:18.646 3872 4085 I tflite : Initialized TensorFlow Lite runtime.
08-29 11:01:20.242 7703 7723 E Unity : Unable to find libtensorflowlite_gpu_delegate
08-29 11:01:20.244 7703 7723 E Unity : Unable to find tensorflowlite_gpu_delegate
08-29 11:01:20.259 7703 7723 E Unity : Unable to find libtensorflowlite_c

from tf-lite-unity-sample.

mathtasatlime avatar mathtasatlime commented on May 22, 2024

Does anybody have a working build auf 2.4.0 for armv7 ?

from tf-lite-unity-sample.

stale avatar stale commented on May 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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.