Skip to content
forked from choyingw/CFCNet

CFCNet for depth completion, NeurIPS 2019.

License

Notifications You must be signed in to change notification settings

zhwzhong/CFCNet

 
 

Repository files navigation

Deep RGB-D Canonical Correlation Analysis ForSparse Depth Completion

This is the PyTorch implemenation for our NeurIPS 2019 paper by Yiqi Zhong*, Cho-Ying Wu*, Suya You, Ulrich Neumann (*Equal Contribution) at USC [Arxiv].

Check out the whole video [Youtube].

Prerequisites

Linux
Python 3
PyTorch 1.0+
NVIDIA GPU + CUDA CuDNN 

Getting Started

Installation: Clone this repo and install other dependencies by pip install -r requirements.txt.

Data Preparation: Please refer to [KITTI] or [NYU Depth V2] and process them into h5 files. Here also provides preprocessed data.

Train/Evaluation:

For training, please run

python3 train_depth_complete.py --name kitti --checkpoints_dir [path to save_dir] --train_path [train_data_dir] --test_path [test_data_dir]

If you use the preprocessed data from here. The train/test data path should be ./kitti/train or ./kitti/val/ under your data directory.

If you want to use your data, please make your data into h5 dataset. (See dataloaders/dataloader.py)

Other specifications: --continue_train would load the lastest saved ckpt. Also set --epoch_count to tell what's the next epoch_number. Otherwise, will start from epoch 0. Set hyperparameters by --lr, --batch_size, --weight_decay, or others. Please refer to the options/base_options.py and options/options.py

Example command:

python3 train_depth_complete.py --name kitti --checkpoints_dir ./checkpoints --lr 0.001 --batch_size 4 --train_path './kitti/train/' --test_path './kitti/val/' --continue_train --epoch_count [next_epoch_number]

For evalutation, please run

python3 evaluate.py --name kitti --checkpoints_dir [path to save_dir to load ckpt] --train_path [test_data_dir] --test_path [test_data_dir] [--epoch [epoch number]]

This will load the latest checkpoint to evaluate. Add --epoch to specify which epoch checkpoint you want to load.

Update: 02/10/2020

1.Fix several bugs and take off redundant options.

2.Release Orb sparsifier

3.Pretrain models release:

[NYU-Depth 500 points training]

[KITTI 500 points training]

If you find our work useful, please consider to cite our work.

@inproceedings{zhong2019deep,
  title={Deep rgb-d canonical correlation analysis for sparse depth completion},
  author={Zhong, Yiqi and Wu, Cho-Ying and You, Suya and Neumann, Ulrich},
  booktitle={Advances in Neural Information Processing Systems},
  pages={5332--5342},
  year={2019}

About

CFCNet for depth completion, NeurIPS 2019.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%