GithubHelp home page GithubHelp logo

mhariat / zbuffdepth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arthurhero/zbuffdepth

0.0 0.0 0.0 293 KB

Unsupervised depth learning with z-buffering.

License: GNU General Public License v3.0

Python 98.98% Shell 1.02%

zbuffdepth's Introduction

ZbuffDepth

An self-supervised monocular depth learning method utilizing image reconstruction loss, with the point occlusion issue solved by the novel z-buffer.

This repo trains and tests the model on stereo pairs using the Eigen splits.

Author(s)

Ziwen Chen (github: arthurhero)

Zixuan Guo (github: Olament)

Usage

Preparing

  1. Create a blank folder.
mkdir raw_kitti && cd raw_kitti
  1. Download the raw kitti dataset.
wget https://raw.githubusercontent.com/mrharicot/monodepth/master/utils/kitti_archives_to_download.txt 
wget -i kitti_archives_to_download.txt
  1. Unzip the data.
unzip "*.zip"
  1. Download KITTI's annotated depth map data set (14G) at KITTI's website
  2. Merge the annotated depth data with the raw kitti
unzip data_depth_annotated.zip
mv -R data_depth_annotated/* raw_kitti

Training

  1. Create folder mkdir logs and mkdir data
  2. For training on stereo pairs, edit the parameters in train_stereo.sh, and run ./train_stereo.sh

Evaluating On Eigen

  1. Open evaluate_kitti.py and scroll to bottom.
  2. Modify first argument to KITTI data path and second argument to checkpoint path from training
  3. Run ./evaluate_kitti.py

Files

train_stereo.sh : the training wrapper script for stereo, with cmd args

run_stereo.py : the training code

loss.py : code for all the losses used in the method, e.g., ssim loss and reconstruction loss

ops.py : code for all the operators used in the method, e.g., depth-to-point projection, z-buffering, etc.

data_process.py : code for all the data preprocessing and viewing methods, e.g., calculating egomotion matrix from gps coord

dataloader.py : code for the PyTorch dataloaders

utils.py : some basic utilities for PyTorch

eigen_*_files.txt : the standard eigen splits

generate_valid.py : reproducibly generate a validation split by randomly sampling from eigen validation split

evaluate_kitti.py : main evaluation code on eigen test split, adapted from Monodepth

evaluation_utils.py : utils for the evaluation, adapted from Monodepth

bts_orig.py : the encoder-decoder architecture, adapted from BTS (Lee et. al.)

Citation

If you find this code useful, please cite our paper:

Chen, Z., Guo, Z., and Weinman, J. Improved Point Transformation Methods for Self-Supervised Depth Prediction. In Proceedings of the 18th Conference on Robots and Vision (CRV). 2021.

@inproceedings{chen21improved,
    author = {Chen Ziwen and Zixuan Guo and Jerod Weinman},
    title = {Improved Point Transformation Methods for Self-Supervised Depth Prediction},
    booktitle = {2021 18th Conference on Computer and Robot Vision ({CRV})},
    year = {2021}
}

Acknowledgments

Thank Professor Jerod Weinman for his great support (including server provision and paper revision).

zbuffdepth's People

Contributors

arthurhero avatar weinman avatar

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.