← Open Source
wvangansbeke

Sparse-Depth-Completion

Predict dense depth maps from sparse and noisy LiDAR frames guided by RGB images. (Ranked 1st place on KITTI) [MVA 2019].

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
510
Stars
77
Forks
+0
This week
1
Contributors
Created 2019-01-27 · Updated 2026-09-01 · #18102 today
Top developers

wvangansbeke/Sparse-Depth-Completion is ranked 18,102 with 510 stars.

Same-category comparison

wvangansbeke/Sparse-Depth-Completion is ranked 18,102 among these 8 peers; CrawlScript/tf_geometric is ranked 18,104.

Same-category comparison
NameRankMetrics
twtygqyy/pytorch-SRResNet18,077
Language:
Python
Stars:
511
Forks:
130
Description:
pytorch implementation for Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network arXiv:1609.04802.
MadryLab/cifar10_challenge18,083
Language:
Python
Stars:
510
Forks:
129
Description:
A challenge to explore adversarial robustness of neural networks on CIFAR10.
albertbup/deep-belief-network18,089
Language:
Python
Stars:
510
Forks:
208
Description:
A Python implementation of Deep Belief Networks built upon NumPy and TensorFlow with scikit-learn compatibility.
microsoft/robustlearn18,097
Language:
Python
Stars:
510
Forks:
66
Description:
Robust machine learning for responsible AI.
CrawlScript/tf_geometric18,104
Language:
Python
Stars:
509
Forks:
94
Description:
Efficient and Friendly Graph Neural Network Library for TensorFlow 1.x and 2.x.
NousResearch/Open-Reasoning-Tasks18,107
Language:
JavaScript
Stars:
509
Forks:
72
Description:
A comprehensive repository of reasoning tasks for LLMs (and beyond).
OpenDriveLab/PersFormer_3DLane18,108
Language:
Python
Stars:
509
Forks:
87
Description:
[ECCV 2022 Oral] Perspective Transformer on 3D Lane Detection.
arcelien/pba18,109
Language:
Jupyter Notebook
Stars:
509
Forks:
83
Description:
Efficient Learning of Augmentation Policy Schedules.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
KeywordsAutonomous vehicles, Computer vision
Stars510
Forks77
Contributors1
Created date2019-01-27
Updated date2026-09-01
Stars in 1 day0
Stars in 7 days0
Rank18,102
Previous rank17,863
Rank change-239
7-day stars rank16,465
Previous 7-day stars rank16,479
7-day stars rank change14
Total stars rank19,085
Previous total stars rank19,060
Total stars rank change-25
CountryUK
README summary

Sparse-Depth-Completion This repo contains the implementation of our paper Sparse and Noisy LiDAR Completion with RGB Guidance and Uncertainty by Wouter Van Gansbeke, Davy Neven, Bert De Brabandere and Luc Van Gool. If you find this interesting or relevant to your work, consider citing: License This software is released under a creative commons license which allows for personal and research use only. For a commercial license please contact the authors. You can view a license summary here Introduction

Monocular depth prediction methods fail to generate absolute and precise depth maps and stereoscopic approaches are still significantly outperformed by LiDAR based approaches. The goal of the depth completion task is to generate dense depth predictions from sparse and irregular point clouds. This project makes use of uncertainty to combine multiple sensor data in order to generate accurate depth predictions. Mapped lidar points together with RGB images (monocular) are used in this framework. This method holds the **1st place** entry

on the KITTI depth completion benchmark at the time of submission of the paper. The contribution of this paper is threefold: Global and local information are combined in order to accurately complete and correct the sparse and noisy LiDAR input. Monocular RGB images are used for the guidance of this depth completion task. Confidence maps are learned for the global branch and the local branch in an unsupervised manner. The predicted depth maps are weighted by their respective confidence map

. This is the late fusion technique used in our framework. This method ranks first on the KITTI depth completion benchmark without using additional data or postprocessing. The predictions of our model for the KITTI test set can be downloaded here. 7 The most important packages are pytorch, torchvision, numpy, pillow and matplotlib. 1) Dataset The Kitti dataset has been used. First download the dataset of the depth completion. Secondly, you'll need to unzip and download the camera images from kitti

. I used the file , but this is at your own risk. Make sure you understand it, otherwise don't use it. If you want to keep it safe, go to kitti's website. The complete dataset consists of 85898 training samples, 6852 validation samples, 1000 selected validation samples and 1000 test samples. Preprocessing This step is optional, but allows you to transform the images to jpgs and to downsample the original lidar frames. This will create a new dataset in $dest. You

can find the required preprocessing in: Run: (Firstly, I transformed the png's to jpg - images to save place. one for training and one for validation. See ) Dataset structure should look like this: Run Code To run the code: Flags: Set flag "input_type" to rgb or depth. Set flag "pretrained" to true or false to use a model pretrained on Cityscapes for the global branch. or checkout more details in the bash file. Trained models Our network architecture is based

on ERFNet. You can find the model pretrained on Cityscapes here. This model is used for the global network. You

Frequently asked questions

How many stars and forks are recorded?

wvangansbeke/Sparse-Depth-Completion has 510 stars and 77 forks.

What is the repository rank?

wvangansbeke/Sparse-Depth-Completion is ranked 18,102.

What language and category are recorded?

wvangansbeke/Sparse-Depth-Completion has 510 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

wvangansbeke/Sparse-Depth-Completion is compared with CrawlScript/tf_geometric, ranked 18,104 with 509 stars.

README

Sparse-Depth-Completion

This repo contains the implementation of our paper Sparse and Noisy LiDAR Completion with RGB Guidance and Uncertainty by Wouter Van Gansbeke, Davy Neven, Bert De Brabandere and Luc Van Gool.

If you find this interesting or relevant to your work, consider citing:

@inproceedings{wvangansbeke_depth_2019,
    author={Van Gansbeke, Wouter and Neven, Davy and De Brabandere, Bert and Van Gool, Luc},
    booktitle={2019 16th International Conference on Machine Vision Applications (MVA)},
    title={Sparse and Noisy LiDAR Completion with RGB Guidance and Uncertainty},
    year={2019},
    pages={1-6},
    organization={IEEE}
}

License

This software is released under a creative commons license which allows for personal and research use only. For a commercial license please contact the authors. You can view a license summary here

Introduction

Monocular depth prediction methods fail to generate absolute and precise depth maps and stereoscopic approaches are still significantly outperformed by LiDAR based approaches. The goal of the depth completion task is to generate dense depth predictions from sparse and irregular point clouds. This project makes use of uncertainty to combine multiple sensor data in order to generate accurate depth predictions. Mapped lidar points together with RGB images (monocular) are used in this framework. This method holds the 1st place entry on the KITTI depth completion benchmark at the time of submission of the paper.

The contribution of this paper is threefold:

  • Global and local information are combined in order to accurately complete and correct the sparse and noisy LiDAR input. Monocular RGB images are used for the guidance of this depth completion task.
  • Confidence maps are learned for the global branch and the local branch in an unsupervised manner. The predicted depth maps are weighted by their respective confidence map. This is the late fusion technique used in our framework.
  • This method ranks first on the KITTI depth completion benchmark without using additional data or postprocessing.

See full demo on YouTube. The predictions of our model for the KITTI test set can be downloaded here.

Requirements

Python 3.7 The most important packages are pytorch, torchvision, numpy, pillow and matplotlib. (Works with Pytorch 1.1)

Dataset

The Kitti dataset has been used. First download the dataset of the depth completion. Secondly, you'll need to unzip and download the camera images from kitti. I used the file download_raw_files.sh, but this is at your own risk. Make sure you understand it, otherwise don't use it. If you want to keep it safe, go to kitti's website.

The complete dataset consists of 85898 training samples, 6852 validation samples, 1000 selected validation samples and 1000 test samples.

Preprocessing

This step is optional, but allows you to transform the images to jpgs and to downsample the original lidar frames. This will create a new dataset in $dest. You can find the required preprocessing in: Datasets/Kitti_loader.py

Run:

source Shell/preprocess $datapath $dest $num_samples

(Firstly, I transformed the png's to jpg - images to save place. Secondly, two directories are built i.e. one for training and one for validation. See Datasets/Kitti_loader.py)

Dataset structure should look like this:

|--depth selection
|-- Depth
     |-- train
           |--date
               |--sequence1
               | ...
     |--validation
|--RGB
    |--train
         |--date
             |--sequence1
             | ...
    |--validation

Run Code

To run the code:

python main.py --data_path /path/to/data/ --lr_policy plateau

Flags:

  • Set flag "input_type" to rgb or depth.
  • Set flag "pretrained" to true or false to use a model pretrained on Cityscapes for the global branch.
  • See python main.py --help for more information.

or

source Shell/train.sh $datapath

checkout more details in the bash file.

Trained models

Our network architecture is based on ERFNet.

You can find the model pretrained on Cityscapes here. This model is used for the global network.

You can find a fully trained model and its corresponding predictions for the KITTI test set here. The RMSE is around 802 mm on the selected validation set for this model as reported in the paper.

To test it: Save the model in a folder in the Saved directory.

and execute the following command:

source Test/test.sh /path/to/directory_with_saved_model/ $num_samples /path/to/dataset/ /path/to/directory_with_ground_truth_for_selected_validation_files/

(You might have to recompile the C files for testing, provided by KITTI, if your architecture is different from mine)

Results

Comparision with state-of-the-art:

Discussion

Practical discussion:

  • I recently increased the stability of the training process and I also made the convergence faster by adding some skip connections between the global and local networks. Initially I only used guidance by multiplication with an attention map (=probability), but found out that it is less robust and that differences between a focal MSE and vanilla MSE loss function were now negligible. Be aware that this change will alter the appearance of the confidence maps since fusion happens at mutliple stages now.

  • Feel free to experiment with different architectures for the global or local network. It is easy to add new architectures to Models/__init__.py

  • I used a Tesla V100 GPU for evaluation.

Acknowledgement

This work was supported by Toyota, and was carried out at the TRACE Lab at KU Leuven (Toyota Research on Automated Cars in Europe - Leuven)

Nearby in the ranking
Similar items