Home

Awesome

<div align="center">

DeepViewAgg

python pytorch license

Official implementation for <br> <br> Learning Multi-View Aggregation In the Wild for Large-Scale 3D Semantic Segmentation <br> (CVPR'22 Best Paper Finalist šŸŽ‰) <br> arXiv Project page Video Poster CV News <br> <br> If you ā¤ļø or simply use this project, don't forget to give the repository a ā­, it means a lot to us ! <br>

</div>
@article{robert2022dva,
  title={Learning Multi-View Aggregation In the Wild for Large-Scale 3D Semantic Segmentation},
  author={Robert, Damien and Vallet, Bruno and Landrieu, Loic},
  journal={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year={2022}
}
<br>

šŸ“Œ Description

<p align="center"> <img width="50%" src="./illustrations/teaser.png"> </p>

We propose to exploit the synergy between images šŸ–¼ļø and 3D point clouds ā˜ļø by learning to select the most relevant views for each point. Our approach uses the viewing conditions šŸ‘€ of 3D points to merge features from images taken at arbitrary positions. We reach SOTA results for S3DIS (74.7 mIoU 6-Fold) and on KITTI- 360 (58.3 mIoU) without requiring point colorization, meshing, or the use of depth cameras: our full pipeline only requires raw, large-scale 3D point clouds and a set of images and poses.

<div align="center">
āœØ DeepViewAgg in short āœØ
šŸ¤– Learns 2D+3D features end-to-end
šŸ‘€ Attentive multi-view aggregation from viewing conditions
šŸš« No need for 3D colorization, meshing, depth sensor, synthetic views, or 2D labels
āœ… Only needs raw point clouds, images, and poses

PWC PWC

</div> <br>

šŸ“° Change log

<br>

šŸ“ Requirements

The following must be installed before installing this project.

All remaining dependencies (PyTorch, PyTorch Geometric, etc.) should be installed using the provided installation script.

The code has been tested in the following environment:

<br>

šŸ—ļø Installation

To install DeepViewAgg, simply run ./install.sh from inside the repository.

<br>

Disclaimer

This is not the official Torch-Points3D framework. This work builds on and modifies a fixed version of the framework and has not been merged with the official repository yet. In particular, this repository introduces numerous features for multimodal learning on large-scale 3D point clouds. In this repository, some TP3D-specific files were removed for simplicity.

<br>

šŸ”© Project structure

The project follows the original Torch-Points3D framework structure.

ā”œā”€ conf                    # All configurations live there
ā”œā”€ notebooks               # Notebooks to get started with multimodal datasets and models
ā”œā”€ eval.py                 # Eval script
ā”œā”€ insall.sh               # Installation script for DeepViewAgg
ā”œā”€ scripts                 # Some scripts to help manage the project
ā”œā”€ torch_points3d
    ā”œā”€ core                # Core components
    ā”œā”€ datasets            # All code related to datasets
    ā”œā”€ metrics             # All metrics and trackers
    ā”œā”€ models              # All models
    ā”œā”€ modules             # Basic modules that can be used in a modular way
    ā”œā”€ utils               # Various utils
    ā””ā”€ visualization       # Visualization
ā””ā”€ train.py                # Main script to launch a training

Several changes were made to extend the original project to multimodal learning on point clouds with images. The most important ones can be found in the following:

<br>

šŸš€ Getting started

Notebook to create synthetic toy dataset and get familiar with 2D-3D mappings construction :

Notebooks to create dataset, get familiar with dataset configuration and produce interactive visualization. You can also run inference from a checkpoint and visualize predictions:

Notebooks to create multimodal models, get familiar with model configuration and run forward and backward passes for debugging:

Notebooks to run full inference on multimodal datasets, from a model checkpoint. Those should allow you to reproduce our results by using the pretrained models in Models:

Scripts to replicate our paper's best experiments šŸ“ˆ for each dataset:

If you need to go deeper into this project, see the Documentation section.

If you have trouble using these or need reproduce other results from our paper, create an issue or leave me a message šŸ’¬ !

<br>

šŸ¤– Models

Model nameDatasetmIoUšŸ’¾šŸ‘‡
Res16UNet34-L4-earlyS3DIS 6-Fold74.72.0Glink
Res16UNet34-PointPyramid-early-cityscapes-interpolateKITTI-36061.7 Val / 58.3 Test339Mlink
Res16UNet34-L4-earlyScanNet71.0 Val341Mlink
<br>

šŸ“š Documentation

The official documentation of Pytorch Geometric and Torch-Points3D are good starting points, since this project largely builds on top of these frameworks. For DeepViewAgg-specific features (i.e. all that concerns multimodal learning), the provided code is commented as much as possible, but hit me up šŸ’¬ if some parts need clarification.

<br>

šŸ”­ Visualization of multimodal data

We provide code to produce interactive and sharable HTML visualizations of multimodal data and point-image mappings:

<p align="center"> <img width="60%" height="60%" src="./illustrations/interactive_visualization_snapshot.png"> </p>

Examples of such HTML produced on S3DIS Fold 5 are zipped here and can be opened in your browser.

<br>

šŸ‘©ā€šŸ”§ Troubleshooting & known issues

<br>

šŸ’³ Credits

<br>

Citing our work

In case you use all or part of the present code, please include the following citation:

@article{robert2022dva,
  title={Learning Multi-View Aggregation In the Wild for Large-Scale 3D Semantic Segmentation},
  author={Robert, Damien and Vallet, Bruno and Landrieu, Loic},
  journal={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year={2022}
}

You can find our DeepViewAgg paper šŸ“„ on arxiv.

Also, if you ā¤ļø or simply use this project, don't forget to give the repository a ā­, it means a lot to us !