Depth-Anything icon indicating copy to clipboard operation
Depth-Anything copied to clipboard

Converting disparities to depths

Open maturk opened this issue 1 year ago • 1 comments

Hi

I am experimenting with using DepthAnything for depth supervision (not inverse depth == disparity). I am wondering if you have any advice in converting disparity estimates to relative depths, because I have some doubts. I tried something simple like depth = 1 / output_disparity.clamp(min=0.01) but I have some doubts because I get quite different looking depth maps compared to Zoe Depth on some of the indoor datasets I am playing with:

Inverse of DepthAnything: image

Zoe depth output: image

Let me know if you have any recommendations. Thanks.

maturk avatar Feb 05 '24 16:02 maturk

Hi, have you tried applying gamma correction to DA output? like np.power (value, 1.0 / 2.2) You might also find this issue relevant: https://github.com/LiheYoung/Depth-Anything/issues/47

cognitiveplus avatar Feb 05 '24 21:02 cognitiveplus