r/MachineLearning • • Jan 09 '22

Research [R] Sensing Depth with 3D Computer Vision - Link to a free online lecture by the author in comments

609 Upvotes

35 comments sorted by

31

u/pinter69 Jan 09 '22

Hi all,

We do free zoom lectures for the reddit community.

In this talk we will cover 3D depth sensing.

Link to event (February 17):

https://www.reddit.com/r/2D3DAI/comments/roum8q/sensing_depth_with_3d_computer_vision_dr_benjamin/

Talk Abstract

Our world is 3D. However, most computer vision sensing happens on a 2D pixel grid. To reason about distances, one needs to understand how far object pixels are in the real world where distance estimation from sensor input provides an essential tool for computer vision applications. For an autonomous vehicle to drive, it is essential to know the distance to cars, pedastrians and obstacles to not cause accidents; and for augmented reality applications to look convincing, 3D understanding of the scene is key to realistically hide augmentations behind scene content. In this talk, we will give a background on different depth sensing technologies such as multi-view stereo, time-of-flight sensing, and monocular approaches - and look how sensor fusion, synthetic data and self-supervision can boost the performance of depth estimation. We identify major obstacles and present first proposals to overcome some of them.

The talk will take a tour through the literature in the field of depth estimation and exemplify some tricks and solutions with ideas of recent papers by the speaker such as:

  1. Lopez-Rodriguez, Busam, Mikolajczyk. ACCV 2020. Project to Adapt: Domain Adaptation for Depth Completion from Noisy and Sparse Sensor Data
    https://github.com/alopezgit/project-adapt

  2. Jung, Brasch, Leonardis, Navab, Busam. 3DV 2021. Wild ToFu: Improving Range and Quality of Indirect Time-of-Flight Depth with RGB Fusion in Challenging Environments https://arxiv.org/abs/2112.03750

  3. Gasperini, Koch, Dallabetta, Navab, Busam, Tombari. 3DV 2021. R4Dyn: Exploring Radar for Self-Supervised Monocular Depth Estimation of Dynamic Scenes
    https://arxiv.org/abs/2108.04814

  4. Ruhkamp, Gao, Chen, Navab, Busam. 3DV 2021. Attention meets Geometry: Geometry Guided Spatial-Temporal Attention for Consistent Self-Supervised Monocular Depth Estimation
    https://github.com/DaoyiG/TC-Depth

Presenter BIO

Benjamin Busam is a Senior Research Scientist with the Technical University of Munich coordinating the Computer Vision activities at the Chair for Computer Aided Medical Procedures. Formerly Head of Research at FRAMOS Imaging Systems, he led the 3D Computer Vision Team at Huawei Research, London from 2018 to 2020. Benjamin studied Mathematics at TUM. In his subsequent postgraduate programme, he continued in Mathematics and Physics at ParisTech, France and at the University of Melbourne, Australia, before he graduated with distinction at TU Munich in 2014. In continuation to a mathematical focus on projective geometry and 3D point cloud matching, he now works on 2D/3D computer vision for pose estimation, depth mapping and mobile AR as well as multi-modal sensor fusion and collaborative robotics. For his work on adaptable high-resolution real-time stereo tracking he received the EMVA Young Professional Award 2015 from the European Machine Vision Association and was awarded Innovation Pioneer of the Year 2019 by Noah's Ark Laboratory, London. Benjamin is part of the programme commitee for CVPR, ICCV, and ECCV, and was recently awarded with the 3DV Outstanding Reviewer Award consecutively in 2020 and 2021.

More about Dr. Benjamin Busman: https://www.in.tum.de/campar/members/benjamin-busam/

(Talk will be recorded and uploaded to youtube, you can see all past lectures and recordings in r/2D3DAI)

22

u/Bibbidi_Babbidi_Boo PhD Jan 09 '22

Hey thanks for sharing. I'm really curious about this topic. Given that there are stereo vision cameras, what is the point of estimating depth from monocular images? I dont mean to demean your work or anything I'm just interested in the advantages of your method over using a Lidar or stereo cameras

35

u/nxtfari Jan 10 '22 edited Jan 10 '22

As said in the other comment, stereo cameras are actually terrible in the field due to "vanishing disparity" -- as distance tends to infinity, the disparity between images is less than the size of a pixel, so no information can be obtained. This effect happens not at crazy distances, but usually at less than 10 meters for typical sensors. So not great.

Lidar is great, but requires an active emitter, which is unsuitable for some applications. They're also much more expensive than cameras still (even though the price has come down a lot), and point cloud processing takes a ton of processing power, which is a big drawback for energy constrained applications.

Monocular depth estimation is not only faster than stereoscopy and Lidar processing, but also doesn't suffer from vanishing disparity and doesn't require an expensive active sensor. Though it comes with its own set of issues, most industry use for autonomous robots has moved to monocular depth estimation for these reasons.

13

u/Toast119 Jan 10 '22

This comment lacks the important distinction that Stereo and LiDAR make real metric measurements while monocular depth methods are largely per-pixel predictions from neural networks. As such, monocular depth methods only work consistently in controlled situations.

3

u/giritrobbins Jan 10 '22

There's some work from maybe UMD or UDEL working on feeding forward true depth information into monocular depth estimates to fix errors. It's quite promising work but a bit slower.

1

u/Toast119 Jan 10 '22

Any links to this? I'd be interested in checking it out!

2

u/giritrobbins Jan 10 '22 edited Jan 11 '22

I just realized that perhaps their results haven't been published yet. Let me see what I can find since my five minute search isn't yielding anything

Edit: wasn't looking in the right place though it looks like the results weren't positive. I thought they had extended this work further and had some promising results.

https://udel.edu/~pgeneva/downloads/papers/c19.pdf

This paper also seems to do what I remember along with the results. I thought the architecture was slightly different but frankly I need to absorb this some more

https://arxiv.org/pdf/2012.10133.pdf

4

u/tenemu Jan 10 '22

What is the ELI5 of how monocular dept estimation works ?

17

u/nxtfari Jan 10 '22

ELI5: Same way you can tell depth with one eye closed. Neural net gets really good at predicting what the depth of an object is likely to be based on how it looks. You would think it doesn’t work, but it actually does, and it does very well.

6

u/dareisaygivenaway Jan 10 '22

I don’t know if I’d say it works ‘very well’ - it works decently if the inference data matches the training data and you’re mostly interested in the distance of certain classes of objects that tend to be a consistent size.

You can see this same effect if you look at the point clouds generated by Tesla’s onboard models. The points for cars and some road elements look accurate, but anything off the road or above it tends to be wildly distorted, since they’re not consistently sized the way cars and lanes are.

https://twitter.com/greentheonly/status/1412597377228226562

The rest of that tweet thread has some good examples.

Whenever I’ve played around with monocular prediction on even slightly OOD data, they tend to shit the bed. I’m talking running a model trained on footage from dense urban driving on footage from a large interstate.

1

u/giritrobbins Jan 11 '22

Tesla perhaps isn't the best example because of how constrained the problem is but Skydio has some excellent videos where you can see this. And it seems to work in most at least outdoor environments though indoors it's a little more suspect.

2

u/[deleted] Jan 10 '22

Towards the end of the video Andrej explains how consistency constraints on successive frames of the video can be used to predict depth information :

[How Tesla trains neural networks to perceive depth (Andrej Karpathy)] (https://www.youtube.com/watch?v=LR0bDLCElKg)

3

u/JustFinishedBSG Jan 11 '22 edited Jan 11 '22

Monocular depth estimation is not only faster than stereoscopy

Very hard to believe. Stereo is easily accelerated in cheap and low power hardware. Monocular models are thicc bois.

but also doesn't suffer from vanishing disparity

True but it also doesn't give absolute depth. You need both to get the real depth, fuse the dense monocular estimation with the sparse and noisy but absolute stereo estimation.

Plus I doubt autonomous robots employ monocular depth often, Monocular-VIO yes, but it's definitely a different technology

4

u/Pikalima Jan 10 '22

Strange that you got downvoted for this. I think this is a valid question--it's my first question anytime I see monocular depth estimation brought up.

2

u/giritrobbins Jan 10 '22

Lots of cases. I think Skydio discussed this at an event because they went from stereo pairs to monocular collision avoidance. It's a cost, weight and computation driver. It's more complex physically. You're limited to the depth you can sense. Online recalibration is challenging especially with end users. Some folks are also looking at doing these techniques with thermal imagers, which are horrendously expensive.

3

u/astrange Jan 10 '22

Stereoscopy doesn't work for things at a distance, or if one of the cameras stops working.

0

u/[deleted] Jan 10 '22

[deleted]

0

u/astrange Jan 10 '22

But if you have two you can fall back to it.

1

u/Mulcyber Jan 10 '22

Really depends on the application, but having a solution that does not require specialized hardware can be really useful.

You're not always in control of your data source, and in some cases changing equipment is too expensive or impractical.

1

u/[deleted] Jan 10 '22

The point is that you can use it in situations where you already have a monocular camera and you don't want to buy a stereo one. Stereo cameras exist, but approximately nobody owns one. Everyone owns a monocular camera.

0

u/loony_shrooms Jan 10 '22

Monocular cameras are cheap. When scaling such solutions to the typical production quantities in the automotive industry, every penny counts.

5

u/radarsat1 Jan 10 '22

I tried using this kind of model for an application to estimate distances to vehicles, and I found that the accuracy dropped off wildly at distances greater than about 40 m. It wasn't good enough. I got better results by using the size of the bounding box of a good object detection model.

Is there any recent work specifically on improving accuracy (not necessarily precision..) at larger distances?

3

u/murrdpirate Jan 10 '22

I think accurate distances at that range is a fundamentally difficult problem, since you'd need to understand the actual sizes of objects, which would vary among car models.

I'd guess that your object detection approach worked better because it only needed to work on one (or few) classes, while this model estimates depth to everything. If you could train this model on just vehicles, I think you'd probably get better results than object detection.

You may want to look at pose estimation for vehicles. Bounding boxes are limited for that purpose since they don't recognize which parts of the vehicles are being seen.

1

u/giritrobbins Jan 10 '22

When I've seen this, they just estimate how large things are. It's never perfect but it gives a sense.

1

u/murrdpirate Jan 10 '22

Right. It's certainly fine for a lot of applications (humans get by with this), but it won't compare to lidar or wide baseline stereo.

2

u/giritrobbins Jan 10 '22

That's exactly right. It's a tool in a toolbox.

1

u/Sirisian Jan 10 '22

I've commented before on event cameras, but I think that'll solve that in the future if the cost comes down a lot. That is getting raw intensity information changes allows for much higher resolution results at around 10K Hz. So as the camera moves a small distance it captures parallax changes at a very high detail and thus can calculate distance more accurately.

1

u/giritrobbins Jan 10 '22

Did you have training data past 40 meters? That's where I've seen challenges.

1

u/radarsat1 Jan 10 '22

in this case i wasn't training it, just using a pretrained model, but you make a good point, the ground truth may be hard to come by for this kind of thing

1

u/giritrobbins Jan 10 '22

Yeah I'd look at the underlying dataset used. I imagine some retraining with KITTI or something else that had depth information would help. You're probably going to be limited to under 100m still but it'll help

2

u/anti-gif-bot Jan 09 '22

mp4 link


This mp4 version is 86.98% smaller than the gif (5.02 MB vs 38.55 MB).


Beep, I'm a bot. FAQ | author | source | v1.1.2

1

u/No_Technology1455 Jan 09 '22

Nice will watch

1

u/airlynx99 Jan 10 '22

I was just playing with some of this for a 3D printing project and found a generator online but it was nowhere near as accurate as I needed. I was wondering with Android's AR Core if it would be possible to capture more accurate depth fields with a single camera so I will be planning to attend this. Awesome timing!

1

u/Cancel-Klutzy Jan 10 '22

Awesome 👏🏻