Comments (4)
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.
python ./tools/test_kitti_metric.py
--dataroot ./datasets/KITTI
--dataset kitti
--cfg_file lib/configs/resnext101_32x4d_kitti_class.yaml
--load_ckpt ./kitti.pthYou 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.
python ./tools/test_kitti_metric.py
--dataroot ./datasets/KITTI
--dataset kitti
--cfg_file lib/configs/resnext101_32x4d_kitti_class.yaml
--load_ckpt ./kitti.pthYou 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!
(Pointcloud generated by disparity map from PSMNet)
(Pointcloud generated by depth map from VNL)
from vnl_monocular_depth_prediction.
Merry Chrismas!
from vnl_monocular_depth_prediction.
Related Issues (20)
- Performance issue HOT 2
- Error while loading the model HOT 1
- How makew
- How make inference on single image? HOT 3
- Only can train 1 epoch? HOT 3
- Setting for training in ablation study HOT 1
- Some questions about surface normal estimation and robutness test HOT 3
- Might it be a small false figure reference of the paper uploaded on Arxiv? HOT 1
- how can I train with NYUD-V2 dataset HOT 1
- About the Camera Parameters HOT 2
- How can I generate the dense ground truth depth maps in KITTI? HOT 6
- How to generate a point cloud map? HOT 1
- Error when running train_kitti_metric.py HOT 1
- pretaind resnext101_32x4d.pth HOT 2
- abs_rel value
- yaml_cfg load error HOT 1
- Could you please provide the pretrain model of moblinenetv2? HOT 1
- The test_any_image file cannot correct output img and the test_nyu file output very bad quality image! HOT 2
- Questions about datasets
- How to understand the concept of convert depth to Point Cloud
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vnl_monocular_depth_prediction.