module to use IGEVStereo
https://github.com/gangweiX/IGEV
arXiv Iterative Geometry Encoding Volume for Stereo Matching
@inproceedings{xu2023iterative,
title={Iterative Geometry Encoding Volume for Stereo Matching},
author={Xu, Gangwei and Wang, Xianqi and Ding, Xiaohuan and Yang, Xin},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={21919--21928},
year={2023}
}
@article{xu2024igev++,
title={IGEV++: Iterative Multi-range Geometry Encoding Volumes for Stereo Matching},
author={Xu, Gangwei and Wang, Xianqi and Zhang, Zhaoxing and Cheng, Junda and Liao, Chunyuan and Yang, Xin},
journal={arXiv preprint arXiv:2409.00638},
year={2024}
}
newer version for IGEV https://github.com/gangweiX/IGEV-plusplus
- NVIDIA Jetson AGX orin
- Ubuntu 20
- python3.8
- docker
ZED2i camera with ZED SDK is optional. You don't need them to use stereoigev module.
docker_build.sh docker_run.sh
Pretrained models can be downloaded from google drive
or
make download
#!/bin/sh
python3 igev_for_presaved.py --restore_ckpt ./stereoigev/models/sceneflow.pth -l "test/test-imgs/left/left*.png" -r "test/test-imgs/right/right*.png"
- All you have to know is
- stereoigev.DisparityCalculator
- stereoigev.as_torch_img
- You can see example in igev_for_presaved.py and usb_cam.py.
- note:
with torch.no_grad():
is important to execute this torch based library.
$ python3 usb_cam.py -h
usage: usb_cam.py [-h] [--calc_disparity] [--normal] [--reproject] [--axis AXIS] json video_num
disparity tool for ZED2i camera as usb camera
positional arguments:
json json file for camera parameter
video_num number in /dev/video
optional arguments:
-h, --help show this help message and exit
--calc_disparity calc disparity
--normal normal map
--reproject reproject to 2D
--axis AXIS axis to shift(0; to right, 1: to upper, 2: to far)
$ python3 usb_cam.py --calc_disparity --normal --reproject zed_1920_1080.json 0
- https://github.com/katsunori-waragai/disparity-view
- pip install disparity-viewer
- view_npy enable you to npy files as pseudo-colored images.
- zed_capture will make it easy access to zed camera.
You can port into PC NVIDIA GPU case. All you have to do is change original docker image written in Dockerfile.
FROM nvcr.io/nvidia/l4t-pytorch:r35.2.1-pth2.0-py3
- see Evaluation or Training in the original github https://github.com/gangweiX/IGEV
- This repository does not provide such tools.
- OpenCV is used only to IO including VideoCapture(), imshow(), and color mapping.
- You can change opencv-python version.
- Be careful some version has circular import error.