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

Depth loss #7

Open
SimonVandenhende opened this issue Mar 6, 2019 · 6 comments
Open

Depth loss #7

SimonVandenhende opened this issue Mar 6, 2019 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@SimonVandenhende
Copy link

There is a bug in the depth loss.
All entries smaller than zero are masked. This causes most of the entries to be excluded in the loss, as the depth map has been normalized. The correct way would be to mask only the zero entries in the loss.

@ozansener
Copy link
Collaborator

Thanks I will try to make an update sometime next week.

@ozansener ozansener self-assigned this May 1, 2019
@ozansener ozansener added the bug Something isn't working label May 1, 2019
@ShirleyHan6
Copy link

ShirleyHan6 commented Mar 10, 2020

Hi @ozansener @SimonVandenhende ,

The disparity data read from the Cityscapes dataset needs to be first processed to be converted to depth:

depth = baseline * fx / disparity,

however, I cannot find this step anywhere in the code?

And in this issue (#2 (comment)) it seems the depth is the metric output by the code?

@ShirleyHan6
Copy link

ShirleyHan6 commented Mar 10, 2020

Hi @ozansener ,

I just found that in the table of the paper you reported "1 / Disparity_Error", so is it Disparity instead of Depth that you are reporting? I found that the numbers in your paper(Disparity Error before using 1 to divide it) very different from those reported by Kendall et al(http://openaccess.thecvf.com/content_cvpr_2018/papers/Kendall_Multi-Task_Learning_Using_CVPR_2018_paper.pdf)

@SimonVandenhende
Copy link
Author

If I remember correctly, the disparity error is reported, and not the absolute depth.

@ozansener
Copy link
Collaborator

We are reporting disparity in the pixel space after normalization. I know it is not a standard metric and has no real practical meaning especially since it is normalized, but all algorithms are reported similarly. You can look at the disparity error in Table 4. Since this is L1 distance, you can convert all of them to the depth L1 error with the formula you posted. You also need to multiply with the DEPTH_STD value in the code to get metric depth error.

The original issue (masking bug) still exists. This bug-fix is unfortunately getting continuously delayed. I have no ETA for it at the moment. But, you can contact me if this bug is impacting you in some-way.

@ShirleyHan6
Copy link

Thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants