Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

Depth loss #7

Description

@SimonVandenhende

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.

Activity

  1. ozansener commented on Mar 12, 2019

    @ozansener
    Collaborator

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

  2. self-assigned this
    on May 1, 2019
  3. SophiaHan6 commented on Mar 10, 2020

    @SophiaHan6

    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?

  4. SophiaHan6 commented on Mar 10, 2020

    @SophiaHan6

    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)

  5. SimonVandenhende commented on Mar 10, 2020

    @SimonVandenhende
    Author

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

  6. ozansener commented on Mar 12, 2020

    @ozansener
    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.

  7. SophiaHan6 commented on Mar 14, 2020

    @SophiaHan6

    Thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions