Coder Social home page Coder Social logo

erkanmilli / 3mt-roadseg Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 2.0 24.13 MB

Multi-Modal Multi-Task (3MT) Road Segmentation, IEEE RA-L 2023

License: Other

Python 99.02% MATLAB 0.98%
depth-estimation multisensor-fusion multitask-learning road-detection road-segmentation semantic-segmentation

3mt-roadseg's Introduction

3MT-RoadSeg

Multi-modal Multi-task Road Segmentation

This repository contains the implementation of the 3MT-RoadSeg method in Pytorch. 3MT-RoadSeg is a fast and accurate method that does not need any preprocessing and uses only raw sensor inputs.

The training setup in the repo is now available for the KITTI and Cityscapes datasets. Training setups will be created for new data sets in the coming period.

Scheme

Media

3MT_ss

Package Versions

The package versions used during code development are as follows:

  • Python: 3.7
  • Pytorch: 1.9.0
  • Cudatoolkit: 10.2
  • Torchvision: 0.10.0
  • Opencv-python: 4.5.3.56

Datasets

You can download the KITTI road dataset from KITTI and the Cityscapes road dataset from Cityscapes. Depth images can be obtained from the SNE-RoadSeg. You can access the 3-channel ADIs from here.

3MT-RoadSeg
 |-- data
 |  |-- to
 |  |  |-- databases
 |  |  |  |-- KITTIRoad
 |  |  |  |  |-- training
 |  |  |  |  |  |-- ...
 |  |  |  |  | -- testing
 |  |  |  |  |  |-- ...
 |  |  |  |-- CityScapes
 |  |  |  |  |-- training
 |  |  |  |  |  |-- ...
 |  |  |  |  |-- testing
 |  |  |  |  |  |-- ...
 ...

Usage

Training

Configuration files are located in the configs/ directory. You have the option to alter the training settings from this directory if you prefer. You can split the original training set into a new training set and a validation set as you wish. Then run the script below:

train.py --config_env configs/env.yml --config_exp configs/$DATASET/$BACKBONE/$MODEL.yml

You can perform a test on the validation set created by splitting the training set. You will need the chechpoint.pth.rar file for this.

test.py ---config_env configs/env.yml --config_exp configs/$DATASET/$BACKBONE/$MODEL.yml

Additionally, if you only want to output for single input, you can do this using test_singleInput.py like this:

test_singleInput.py ---config_env configs/env.yml --config_exp configs/$DATASET/$BACKBONE/$MODEL.yml

You can use the same split we used for the validation set generated from the training set. The train & test split is as follows:

|                  Train Split                   |              |                   Test Split                   |
|------------------------------------------------|              |------------------------------------------------|
um_000000.png  |  umm_000000.png  |  uu_000000.png              um_000068.png  |  umm_000068.png  |  uu_000068.png
...            |  ...             |  ...                        ...            |  ...             |  ...
...            |  ...             |  ...                        ...            |  ...             |  ...
um_000067.png  |  umm_000067.png  |  uu_000067.png              um_000094.png  |  umm_000095.png  |  uu_000097.png

Support

The following datasets and tasks are supported.

Dataset Segmentation Depth Normals
KITTI Y Y Aux
Cityscapes Y Aux Y

The following models are supported.

Backbone HRNet-w18 HRNet-w32 HRNet-w48
3MT-RoadSeg Y Y Y

You can download the weights belonging to the pre-trained HRNet backbones from source.

References

This repository has been built upon the foundation of repository Multi-Task-Learning-PyTorch.

Citation

@ARTICLE{10182336,
  author={Milli, Erkan and Erkent, Özgür and Yılmaz, Asım Egemen},
  journal={IEEE Robotics and Automation Letters}, 
  title={Multi-Modal Multi-Task (3MT) Road Segmentation}, 
  year={2023},
  volume={8},
  number={9},
  pages={5408-5415},
  doi={10.1109/LRA.2023.3295254}}

3mt-roadseg's People

Contributors

erkanmilli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ehsankf

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.