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

Can you tell me about the steps you do to normalize the input depth image? #11

Open
vvduc1803 opened this issue Aug 21, 2023 · 1 comment

Comments

@vvduc1803
Copy link

vvduc1803 commented Aug 21, 2023

When I see your code, I don't understand steps like: divide for depth scale, choose pixels greater than min depth, ...

@lpiccinelli-eth
Copy link
Collaborator

We do not normalize the depth, we directly predict metric values also at training time. This means that no sigmoid trick is used to squeeze depth prediction in [0,1]. Therefore our depth is not rescaled based on the dataset-dependent max_depth value.

The rescaling is applied only when loading depth from the disk since it is saved as uint16. This is needed because depth is saved as png and to avoid large quantization error, depth is multiplied by, e.g., 256 or 1000.

Min depth is just a dummy value (i.e., 0.01, and GT is always > 0.01 where it exists) used to mask out invalid depth points, which are usually 0.0.

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

2 participants