This project is an unofficial pytorch implementation of depth and motion planning.
This project is based on the paper Unsupervised Monocular Depth Learning in Dynamic Scenes
pip install -r requirements.txt
The image sequences has to be loaded in the format given below:
1.)For training:
Format Sample and store it in data/train.json
```{"0": ["./images/video/frame000.png", "./images/video/frame001.png"], "1": ["./images/video/frame001.png", "./images/video/frame002.png"]}```
2.)For Validating:
Format Sample and store it in data/valid.json
`{"0": ["./images/video/frame000.png", "./images/video/frame001.png"], "1": ["./images/video/frame001.png", "./images/video/frame002.png"]}`
3.)For testing:
Format Sample and store it in data/valid.json
`{"0": ["./images/video/frame000.png", "./images/video/frame001.png"], "1": ["./images/video/frame001.png", "./images/video/frame002.png"]}`
The intrinsics must be written in the list format separated by commas (Eg - fx,0,cx,0,fy,cy,0,0,1) and saved in intrinsics.txt
1.) By default the model uses certain parameters specified in train.py init() function which can be changed according to requirements.
2.) By default model predicts the intrinsics of the video given.
3.) To use the predefined intrinsics intrinsics must be definied in the intrinsics.txt file.
1.) To test the model, specify the model path and the test.json which contains the images.
2.) 4x4 Pose Matrix along with the 3 translatory motion (x,y,z) co-ordinates will be saved to trajectory.txt (Pose) and positions.txt
-
1.) To train and validate intrinsics per video while training, validating and testing.
-
2.) Add pretrained models on KITTI Dataset and Waymo Open Dataset.
If you find a bug, create a GitHub issue, or even better, submit a pull request. Similarly, if you have questions, simply post them as GitHub issues.
If you use any part of this code in your research, please cite this paper:
@article{li2020unsupervised,
title={Unsupervised Monocular Depth Learning in Dynamic Scenes},
author={Li, Hanhan and Gordon, Ariel and Zhao, Hang and Casser, Vincent and Angelova, Anelia},
journal={arXiv preprint arXiv:2010.16404},
year={2020}
}