Giter Site home page Giter Site logo

Comments (4)

YvanYin avatar YvanYin commented on June 12, 2024

python ./tools/test_kitti_metric.py
--dataroot ./datasets/KITTI
--dataset kitti
--cfg_file lib/configs/resnext101_32x4d_kitti_class.yaml
--load_ckpt ./kitti.pth

You can try the above script. But you should change the --dataroot and --dataset. In ./tools/test_any_images.py, I have scaled the output depth with 60000 for visualization. If you scale the output depth with 80 again, the max depth will be greater than 65535.

Besides, you can save the depth image in a coded color map for visualization:

import matplotlib.pyplot as plt
plt.imsave('path to save', depth, cmap='rainbow')

It is easier for you to check if the depth output is right.

from vnl_monocular_depth_prediction.

kunlileo avatar kunlileo commented on June 12, 2024

python ./tools/test_kitti_metric.py
--dataroot ./datasets/KITTI
--dataset kitti
--cfg_file lib/configs/resnext101_32x4d_kitti_class.yaml
--load_ckpt ./kitti.pth

You can try the above script. But you should change the --dataroot and --dataset. In ./tools/test_any_images.py, I have scaled the output depth with 60000 for visualization. If you scale the output depth with 80 again, the max depth will be greater than 65535.

Besides, you can save the depth image in a coded color map for visualization:

import matplotlib.pyplot as plt
plt.imsave('path to save', depth, cmap='rainbow')

It is easier for you to check if the depth output is right.

Hi Wei Yin,

i am quite surprised to have received your reply in such a short Time. Thank you very much.

I have already adjusted the codes in "test_any_images.py" in the way, where i left out the scaling with 60000. Instead, I just took the pred_depth from the pretrained model's output and multiplied it with 80. The result is what i attached above. But I will try your suggestion with "test_kitti_metric.py" tomorrow and keep you informed.

Greetings from Germany.

Kun

from vnl_monocular_depth_prediction.

kunlileo avatar kunlileo commented on June 12, 2024

python ./tools/test_kitti_metric.py
--dataroot ./datasets/KITTI
--dataset kitti
--cfg_file lib/configs/resnext101_32x4d_kitti_class.yaml
--load_ckpt ./kitti.pth

You can try the above script. But you should change the --dataroot and --dataset. In ./tools/test_any_images.py, I have scaled the output depth with 60000 for visualization. If you scale the output depth with 80 again, the max depth will be greater than 65535.

Besides, you can save the depth image in a coded color map for visualization:

import matplotlib.pyplot as plt
plt.imsave('path to save', depth, cmap='rainbow')

It is easier for you to check if the depth output is right.

Hi Wei Yin,

it turns out I made a very stupid mistake. I misstook the output of your model for Disparity, instead of Depth. After adjusting my visualization script, I get the right result, which shows more promising pointcloud than PSMNet. Terrific Work and merry chrismas!

pc_psm
(Pointcloud generated by disparity map from PSMNet)
pc_vnl
(Pointcloud generated by depth map from VNL)

from vnl_monocular_depth_prediction.

YvanYin avatar YvanYin commented on June 12, 2024

Merry Chrismas!

from vnl_monocular_depth_prediction.

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.