Giter Club home page Giter Club logo

rangeret's Introduction

RangeRet

Master's Thesis about 3D LiDAR Semantic Segmentation using Range Images and Retentive Networks.

The purpose of the Thesis is the development of a lightweight model that is able to achieve real-time performance while requiring low amount of memory and an optimized training process.

Installation

Requirements

  • Pytorch
  • yaml
  • tqdm

Data Preparation

SemanticKITTI

Download the files from the SemanticKITTI website

./semanticKITTI/
├── 
├── ...
└── dataset/
    ├──sequences
        ├── 00/           
        │   ├── velodyne/	
        |   |	├── 000000.bin
        |   |	├── 000001.bin
        |   |	└── ...
        │   └── labels/ 
        |       ├── 000000.label
        |       ├── 000001.label
        |       └── ...
        ├── 08/ # for validation
        ├── 11/ # 11-21 for testing
        └── 21/
	    └── ...

Training

Run the following commands, specifying the SemanticKITTI dataset path

cd RangeRet
python3 main.py <config_path> <data_path>

Example: python3 main.py config/RangeRet-semantickitti.yaml /semanticKITTI/dataset/

Checkpoint will be saved in checkpoints/model-checkpoint.pt, the final model will be saved as rangeret-model.pt and training logs in log/ with the current date and time.

Inference

Run the following script, specifying the SemanticKITTI dataset path

cd RangeRet
python3 infer.py <config_path> <model_path> <data_path> <pred_path> <split>

where split can be train, valid or test.

Example of inference on SemanticKITTI validation set: python3 infer.py config/RangeRet-semantickitti.yaml rangeret-model.pt /semanticKITTI/dataset predictions/ valid

To correctly evaluate the results, please refer to the scripts available at semantic-kitti-api.

Results

Parameters Inference (ms) Memory (MB) Val mIoU (%) Test mIoU (%)
RangeRet 1.7M 49 2.0 46.9 45.2

Ablation Study

Models trained on a subest of SemanticKITTI with 5000 scans, equals to the 25% of the entire dataset, and evaluated on the complete validation set, sequence 08.

REM Architecture Decay Matrix Residual Connection Params mIoU (%)
Linear Transformers 1.49M 30.1
Conv Transformers 1.56M 37.3
Conv RetNet Standard 1.69M 37.8
Conv RetNet Our 1.69M 40.3
Conv RetNet Our 1.69M 42.3

Thesis

Master Thesis document is available here

Acknowledgements

Code is built on RangeNet++ and Torchscale.

rangeret's People

Contributors

simom0 avatar

Watchers

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