Giter Club home page Giter Club logo

Comments (8)

ranftlr avatar ranftlr commented on May 18, 2024 8

PFM files contain the results as the original, unaltered float32 values. The PNGs contain the quantized values since the format requires integer data. If you need the original data as predicted by the model, use the PFM files. You can find a reader here: https://github.com/intel-isl/MiDaS/blob/master/utils.py

As for getting results in meters: The model provides results up to unknown scale and shift, i.e. only relative depth is available. You'd need additional measurements to find the scale and the shift to get absolute measurements.

from midas.

ranftlr avatar ranftlr commented on May 18, 2024 7

We align in inverse depth space; i.e. the procedure is

  1. Invert ground truth
  2. Align prediction based on least squares criterion
  3. Invert aligned prediction to get depth
  4. Measure errors to original groundtruth depth

Section C in the supplementary provides more details on the evaluation procedure.

from midas.

sidml avatar sidml commented on May 18, 2024 2

@tarashakhurana
I think they have removed the supplementary material in v3 of the paper. It exists in v2.
You can find it here

from midas.

tarashakhurana avatar tarashakhurana commented on May 18, 2024 1

Thank you! By any chance, were you able to reproduce the test set results in the paper? I'm trying to evaluate on Sintel (on its 1064 images) but I'm getting a much higher error with my evaluation code than what is reported in the paper (0.327 vs 0.605).

from midas.

ranftlr avatar ranftlr commented on May 18, 2024

Closing due to inactivity.

from midas.

tarashakhurana avatar tarashakhurana commented on May 18, 2024

Hi,
Thank you for your amazing work! In your paper, Table 1 mentions depth annotations of the 6 test datasets to be metric. How do you find this metric depth from your relative inverse-depth predictions to evaluate on these datasets? Do you invert the inverse-depth predictions and then compute a least squares fit for finding the scale and shift parameters for it?

from midas.

sidml avatar sidml commented on May 18, 2024

@ranftlr
I went through equation 4 of the paper. This is how i implemented it. Please correct me if i am misunderstanding something.
Let us say pred_idepth is model predicitons of size=(N, ). gt_idepth is ground truth inverse depth, size=(N, ).

    di = np.concatenate([pred_idepth[:, None], np.ones((len(pred_idepth), 1))], 1)
    di_star = gt_idepth
    val1, val2 = np.zeros((1, 2)), np.zeros((1, 2))    
    for i in range(len(di)):
        val1  = val1 + di[i]*di[i].T
        val2 = val2 + di[i]*di_star[i]
   st = (np.linalg.pinv(val1) * val2).reshape(-1, )
   # st = (1/val1 * val2).reshape(-1, ) or this ???

st should be the estimated scale and translation (hopt in paper).

from midas.

tarashakhurana avatar tarashakhurana commented on May 18, 2024

Embarrassingly enough, I'm not able to find the supplementary material online. Does anyone have the link?

from midas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.