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 can calculate the actual depth value from the metric depth output of Depth Anything V2 ? What steps and conversions are necessary to obtain a precise and accurate depth calculation from the raw metric depth data(Depth Anything V2 output)? #221

Open
padmakshmcw opened this issue Aug 5, 2024 · 0 comments

Comments

@padmakshmcw
Copy link

Hi @LiheYoung @bingykang @1ssb
My application environment has a maximum depth range of 12m to 15m (indoor), which changes as I test in different rooms. I am working with videos in which an object is moving, and I want to find the depth of various points on the object.

Current Approach:

  1. I have a video with known ground truth depth values and have obtained the Depth Anything metric depth values for specific points.
  2. I applied a Gaussian filter to the Depth Anything metric depth values.
  3. I fitted a linear model with y=ground truth and x = Depth Anything output.
  4. When testing on another video, I achieved an RMSE value of around 250mm, but I aim for higher accuracy with an RMSE below 100mm or 50mm.

Requirements:

  1. Suggestions for reducing noise in the Depth Anything output.
  2. Methods to increase accuracy and reduce RMSE.
  3. Alternative ways to find scaling and shift values.
  4. Additional suggestions for accurately determining depth values from RGB images.

Can you provide detailed recommendations or techniques to achieve these goals?

Attachments

All value in graphs are in meters.
- Attaching Depth anything out Raw(DAT_Raw), doing prediction on Gaussian filtered Depth anything output(prediction(Guassian filter)), Ground truth (gt_camera) ( vs number frame 0-510(for one point on object)
Screenshot from 2024-08-05 12-49-12
- Error variation with frame wise for one point.
Screenshot from 2024-08-05 12-57-15

@padmakshmcw padmakshmcw changed the title How can calculate the actual depth value from the metric depth output of algorithm? What steps and conversions are necessary to obtain a precise and accurate depth calculation from the raw metric depth data(Depth Anything V2 output)? How can calculate the actual depth value from the metric depth output of Depth Anything V2 ? What steps and conversions are necessary to obtain a precise and accurate depth calculation from the raw metric depth data(Depth Anything V2 output)? Aug 5, 2024
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

1 participant