Closed Hustle-Tung closed 5 years ago
Sorry, I found my mistake after re-reading the readme file. I just gave the model folder and did not specify which model to use:
--model_path=./model_zoo/hd3sc_things_kitti-368975c0.pth
But I still want to ask why output two kinds of pictures, gray and red?
Thank you for sharing!
Hi, what's your folder hierarchy after running the inference code? There should be two folders containing the visualizations (color images) and the disparity maps (grayscale images) respectively. The disparity maps are converted to 2D flow for visualization. I'm afraid your result is still incorrect for the visualization shouldn't be pure red.
The results are as follows: ├── results │ ├── vis │ │ ├── kitti_stereo_2015 │ │ │ ├── testing │ │ │ │ ├── image_2 │ │ │ │ │ ├── 000000_10.png │ │ │ │ │ ├── 000001_10.png │ │ │ │ │ ├── ...... │ ├── vec │ │ ├── kitti_stereo_2015 │ │ │ ├── testing │ │ │ │ ├── image_2 │ │ │ │ │ ├── 000000_10.png │ │ │ │ │ ├── 000001_10.png │ │ │ │ │ ├── ......
.\results\vis\kitti_stereo_2015\testing\image_2\000000_10.png .\results\vec\kitti_stereo_2015\testing\image_2\000000_10.png
Is that right?
Yes. Looks good now. The red one is only for visualization purpose. You can further confirm the precision by running the model on the KITTI training set and evaluating the accuracy.
Oh, this is just my first step. Now I'm doing vehicle identification in autonomous driving through binocular stereo vision. I need to generate the U-V disparity from the disparity map. Maybe I just need grayscale images. Actually, I do not know how to do it next. I just took the first step, getting disparity map. So I don't think I need to confirm the precision that I don' konw. I"m not sure if I'm right.
Anyway, I sincerely appreciate your help!
我想要得到
KITTI_stereo_test_2015
的视差图,于是 我执行了以下命令:跑出来的结果不对: .\results\vis\kitti_stereo_2015\testing\image_2\000000_10.png
.\results\vec\kitti_stereo_2015\testing\image_2\000000_10.png
在这个过程中,我修改了源代码,因为我没有checkpoint:
inference.py
第131行我手动下载了模型到
./model_zoo
文件夹:我的数据位置:
我的运行环境是: