Giter VIP home page Giter VIP logo

Comments (10)

VanDavv avatar VanDavv commented on June 24, 2024 2

No, there are ways to sync the nn results, here is an example - https://github.com/luxonis/depthai-experiments/tree/master/gen2-nn-sync

from depthai-experiments.

themarpe avatar themarpe commented on June 24, 2024 1

@VanDavv can describe the two implementations used there in more detail.
The syncing is usually required when we want to display NN results on a continuous stream which is faster. The added latency to match those two up is at best the inference time of one frame.
In gen2 one can "desync" a slow consumer by settings its input to be non blocking. In this case NeuralNetwork.passthrough output can be used to determine on which input frame the inference was made.

The latency issue can also happen if ColorCamera is connected to a slow consumer in a blocking manner. That is something we have to further investigate, to send out most recent frames instead of old ones which got queued up.

from depthai-experiments.

VanDavv avatar VanDavv commented on June 24, 2024

Hi Raymond,
It's not OS specific
It's the current implementation that lacks nn results synchronization, we'll be working more on it so that gets implemented

from depthai-experiments.

raymondlo84 avatar raymondlo84 commented on June 24, 2024

Is that a problem across the entire Gen2 pipeline? I mean all demo got the same latency related issues?

from depthai-experiments.

Luxonis-Brandon avatar Luxonis-Brandon commented on June 24, 2024

Also discussing this latency with the team as well.

from depthai-experiments.

raymondlo84 avatar raymondlo84 commented on June 24, 2024

The latency is great with the nn demo! Let me learn this and see if I can apply that to others.

from depthai-experiments.

Luxonis-Brandon avatar Luxonis-Brandon commented on June 24, 2024

Thanks @raymondlo84 for taking this and applying it to the others! Much appreciated. (So as background, we implemented demos as we were refining the Gen2 system, so you are seeing it exactly correctly - we need to go through and update others to use the improvements/techniques learned from the initial implementations and resultant improvements to the API, or improvements to how it is used (or both).)

from depthai-experiments.

raymondlo84 avatar raymondlo84 commented on June 24, 2024

#51 addressed this issue. I will close this issue once the PR is merged.

from depthai-experiments.

raymondlo84 avatar raymondlo84 commented on June 24, 2024

Thanks @raymondlo84 for taking this and applying it to the others! Much appreciated. (So as background, we implemented demos as we were refining the Gen2 system, so you are seeing it exactly correctly - we need to go through and update others to use the improvements/techniques learned from the initial implementations and resultant improvements to the API, or improvements to how it is used (or both).)

Glad to be able to help.

No, there are ways to sync the nn results, here is an example - https://github.com/luxonis/depthai-experiments/tree/master/gen2-nn-sync

What are the advantages and disadvantages of these two methods proposed in that demo?

from depthai-experiments.

Luxonis-Brandon avatar Luxonis-Brandon commented on June 24, 2024

I'm actually not sure. @themarpe - could you comment?

from depthai-experiments.

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.