Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the metric depth? #1

Open
kay-Lifeng opened this issue Apr 16, 2022 · 5 comments
Open

How to get the metric depth? #1

kay-Lifeng opened this issue Apr 16, 2022 · 5 comments

Comments

@kay-Lifeng
Copy link

Dear author:
Thank you very much for your contributions in this paper!
I try to get the depth in evaluation. Theoretically, we can get the metric depth between min_depth and max_depth(meter) after the function 'disp_to_depth' . However, I observed several groups of depth generated in this way, it seems not like a correct metric depth. As below:
(Pdb) pred_depth
array([[0.7076706 , 0.7073359 , 0.70599675, ..., 0.60197115, 0.59946537, 0.5988389 ],
[0.70776784, 0.7074405 , 0.7061312 , ..., 0.60220945, 0.599669 , 0.59903383],
[0.7082062 , 0.70791256, 0.706738 , ..., 0.603285 , 0.60058796, 0.5999137 ],
...,
[0.11618532, 0.1162222 , 0.11636975, ..., 0.11287601, 0.11278087, 0.11275709],
[0.11617843, 0.11621682, 0.11637037, ..., 0.11286871, 0.11277094, 0.11274651],
[0.1161769 , 0.11621563, 0.11637051, ..., 0.11286709, 0.11276875, 0.11274416]], dtype=float32)
The depth number is very small compare to real depth, much of them less than 1.0. So how to get the metric depth?

@weiyithu
Copy link
Owner

Hi, which model do you use? For the scale-ambiguous model, it cannot predict real-world scale. However, for the scale-aware model, it is able to predict real depth.

@rockywind
Copy link

Hi,why scale-aware model's Abs Real is larger than acale-ambiguous in nuScenes dataset?

image

@weiyithu
Copy link
Owner

For scale-ambiguous experiments, we conduct median-scaling during evaluation. If scale-aware depths are absolutely accurate, the scale-aware results should be equal to scale-ambiguious results. However, currently scale-aware depths have errors and median-scaling will boost the quantitative results.

@rockywind
Copy link

Thank for your help!

@v-fedoseev
Copy link

Hi, which model do you use? For the scale-ambiguous model, it cannot predict real-world scale. However, for the scale-aware model, it is able to predict real depth.

Does the scale-aware model pre-trained on nuScenes actually produce the real depth? Could you please describe how do I get the real depth out of the produced images? It would be very helpful, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants