Giter VIP home page Giter VIP logo

Comments (4)

LeoPerelli avatar LeoPerelli commented on June 11, 2024

Hey @xhchen10 , did you have any luck finding out the reason? I spotted that too and seems strange

from deep-sfm-revisited.

xhchen10 avatar xhchen10 commented on June 11, 2024

Nope. :(

from deep-sfm-revisited.

jytime avatar jytime commented on June 11, 2024

Hi @xhchen10 @LeoPerelli ,

The role of "GT scale \alpha_gt (see Line 536-541 in main.py)" is to ensure that the depth values are properly normalized during the training phase, which helps with the stability of the training process. This is for the stability of training. As mentioned, such an operation can be skipped during inference.

Deep-SfM-Revisited/main.py

Lines 536 to 541 in ea8158d

if cfg.RESCALE_DEPTH:
#### could skip this step during inference
batch_num = len(depth_bw_gt)
scale = torch.norm(pose_gt_bw[:,:,-1:].squeeze(-1),dim=-1)
rescale_ratio = scale/cfg.NORM_TARGET
depth_bw = depth_bw*rescale_ratio.view(batch_num,1,1,1)

At the same time, "use the ratio between the median values of predicted and GT depth to scale the predicted depth (576-585)" is the common evaluation protocol for depth evaluation. This is due to the well known scale ambiguity problem. We simply adopted the same evaluation pipeline used in previous methods. For example, https://github.com/nianticlabs/monodepth2/blob/b676244e5a1ca55564eb5d16ab521a48f823af31/evaluate_depth.py#L206 in monodepth2.

Please let me know if you have further questions :)

Best,
Jianyuan

from deep-sfm-revisited.

LeoPerelli avatar LeoPerelli commented on June 11, 2024

Thanks a lot Jianyuan, now it makes sense! :)

from deep-sfm-revisited.

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.