RollingDepth icon indicating copy to clipboard operation
RollingDepth copied to clipboard

Realtime inference

Open Omega-meep opened this issue 1 year ago • 4 comments

Hi there,

First of all, great work. The results really are amazing.

I'm struggling to understand the method and I'd appreciate some help.

Is it possible to modify this code so that depth can be generated on an ongoing basis (of course with a 2 frame delay)? Or does each frame end up using depth information from all other frames in the video so that this wouldn't be possible?

I am trying to make a program that takes in one frame at a time and outputs temporally consistent depth.

Thank you!

Omega-meep avatar Dec 05 '24 21:12 Omega-meep

Hi, yes it is possible but it might require quite some change in the code. Our method has an off-line global optimization to align the depth snippets. You can modify this to only optimize the scale and shift for new snippets when treating the previously aligned sequence as a long snippet with a fixed scale and shift.

markkua avatar Dec 06 '24 09:12 markkua

Thanks for your response! Does this mean though that you need all prior frames to have already been generated? I should have been more clear - I'm looking to be able to render the depth accurately at any point along the video; so even if you start rendering in the middle of the clip and then later go back and render from the start, it will line up. It sounds like what you're saying is even with the modification, it will need to start rendering from the start, is that right?

Omega-meep avatar Dec 06 '24 20:12 Omega-meep

Technically, this is possible -- the co-alignment is flexible, you can fix the scale and shift parameters for the "old" sub-sequence, and align new snippets to it.

markkua avatar Dec 09 '24 09:12 markkua

Hi @markkua , do you have any update about this issue?

em-ni avatar May 06 '25 01:05 em-ni