GithubHelp home page GithubHelp logo

4d-pls's Introduction

4D Panoptic Lidar Segmentation

4dmain

Project Website with Demo Video.

This repo contains code for the paper 4D Panoptic Lidar Segmentation. The code is based on the Pytoch implementation of KPConv.

Installation

git clone https://github.com/MehmetAygun/4D-PLS
cd 4D-PLS
pip install -r requirements.txt
cd cpp_wrappers
sh compile_wrappers.sh

Data

Create a directory data in main directory, download the SemanticKitti to there with labels from here

Also add semantic semantic-kitti.yaml file in SemanticKitti folder, you can download the file from here

Then create additional labels using utils/create_center_label.py,

python create_center_label.py

The data folder structure should be as follows:

data/SemanticKitti/
└── semantic-kitti.yaml
└── sequences/
    └── 08/
        └── poses.txt
        └── calib.txt
        └── times.txt
        └── labels
            ├── 000000.label
            ...
         └── velodyne
            ├── 000000.bin
            ...

Models

For saving models or using pretrained models create a folder named results in main directory. You can download a pre-trained model from here .

Training

For training, you should modify the config parameters in train_SemanticKitti.py. The most important thing that, to get a good performance train the model using config.pre_train = True firstly at least for 200 epochs, then train the model using config.pre_train = False.

python train_SemanticKitti.py

This code will generate config file and save the pre-trained models in the results directory.

Testing & Tracking

For testing, set the model directory the choosen_log in test_models.py, and modify the config parameters as you wish. Then run :

python test_models.py

This will generate semantic and instance predictions for small 4D volumes under the test/model_dir. To generate long tracks using small 4D volumes use stitch_tracklets.py

python stitch_tracklets.py --predictions test/model_dir --n_test_frames 4

This code will generate predictions in the format of SemanticKITTI under test/model_dir/stitch .

Evaluation

For getting the metrics introduced in the paper, use utils/evaluate_4dpanoptic.py

python evaluate_4dpanoptic.py --dataset=SemanticKITTI_dir --predictions=output_of_stitch_tracket_dir --data_cfg=semantic-kitti.yaml

Citing

If you find the code useful in your research, please consider citing:

@InProceedings{aygun20214d,
    author    = {Aygun, Mehmet and Osep, Aljosa and Weber, Mark and Maximov, Maxim and Stachniss, Cyrill and Behley, Jens and Leal-Taixe, Laura},
    title     = {4D Panoptic LiDAR Segmentation},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2021},
    pages     = {5527-5537}
}

License

GNU General Public License (http://www.gnu.org/licenses/gpl.html)

Copyright (c) 2021 Mehmet Aygun Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

4d-pls's People

Contributors

mehmetaygun 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.