Git Product home page Git Product logo

Comments (6)

tolotratlt avatar tolotratlt commented on May 25, 2024 1

Hi @asus4 thanks for advice. How do you use UniTask with Posenet? How do you passe webcam texture to Invoke function?
I'm thinking of using something like

async UniTask<PoseNet.Result> ProcessPosenet(WebCamTexture webcamTexture)
{
    await poseNet.Invoke(webcamTexture);
    results = poseNet.GetResults();
    return results ;
}

under update function but it doesn't seem to work. Or I don't know how to use it

from tf-lite-unity-sample.

tolotratlt avatar tolotratlt commented on May 25, 2024 1

Thanks you for answers. I'll do some investigations

from tf-lite-unity-sample.

tolotratlt avatar tolotratlt commented on May 25, 2024 1

@TheBricktop for now, I'm just using async task (that isn't multithread). I am still under investigation
Last I noticed, asus4 just added "runBacktround" option in PoseNet :)

from tf-lite-unity-sample.

asus4 avatar asus4 commented on May 25, 2024

Hi @tolotratlt, To keep examples simple, I don't add the multithreaded example in this repo. But it's better to run TFLite in the background thread in the practical project. and TFLite works with multithread.

As a side project, I have released an app that uses multithreaded TFLite with Unity. In the app, I used UniTask library to manage the thread.

from tf-lite-unity-sample.

asus4 avatar asus4 commented on May 25, 2024

All Unity APIs need to be called from the Unity main thread. You need to tweak inside PoseNet.cs to separate only the TFLite part into the thread. sorry, I cannot share my source code though.

from tf-lite-unity-sample.

TheBricktop avatar TheBricktop commented on May 25, 2024

@tolotratlt How is the investigations going?

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.