Coder Social home page Coder Social logo

msat's Introduction

MSAT: Multi-Sensory All Weather Trajectory Predictor

Due to the ease, safety and latent ecological gains associated with autonomous vehicles (AV’s), researchers and industry have shown tremendous interest in AV. Despite optimistic methods from leading au- tonomous vehicle (AV) companies about the future of AV technology, current methods face significant limitations. These methods have constraints such as the need for high-definition maps, clear sensor data, and accurate GPS information, which hinder broader implementation and restrict AV technology to small-scale applications.Predicting the trajectories around an AV is challenging due to sensor imperfections, particularly under adverse environmental and weather conditions, which poses a significant obstacle to their widespread use. To address this issue, a new deep Learning-based framework called the Multi-Sensory All Weather Trajectory Predictor (MSAT) is proposed, which serves as a robust and complementary trajectory prediction solution under inclement weather conditions. The proposed approach employs an autoencoder-based trajectory prediction algorithm combined with a novel transformer-based multi-sensor fusion block and multi-weather SensorNet to predict the trajectories of multiple agents in adverse weather conditions. MSAT incorporates sensory data such as camera, lidar, and radar data as environmental factors, which allows for improved predictions under conditions where semantic map information is not available. The proposed framework demonstrates the effectiveness of MSAT through experiments conducted in a variety of challenging scenarios. The proposed framework achieved low average displacement and final displacement error in predicting the future motions of multi-agents in adverse weather conditions such as rain, fog and snow. Overall, this work is anticipated to bring AVs one step closer to safe and reliable autonomous driving in all-weather conditions.

MSAT_workflow

Installation:

Clone This Repository:

https://github.com/mertgokpinar/MSAT.git

Create a conda environment

conda create -n msat python==3.10

Activate your conda environment

conda activate msat

Install Requirements

pip install requirements.txt

Clone Robotcar SDK into MSAT diractory

cd MSAT
https://github.com/ori-mrg/robotcar-dataset-sdk.git

Preparing Datasets

MSAT supports publicly available Radiate, nuScenes and Oxford Radar RobotCar Dataset datasets, please follow their instructions to access and download datasets.

Radiate

To preprocess raw Radiate dataset, run the following code:

python preprocess_radiate.py 

NuScenes

You can use the following code for preprocessing NuScenes:

python data/process_nuscenes.py --data_root <PATH_TO_NUSCENES>

Oxford RobotCar

For preprocessing Oxford RobotCar dataset, we used publicly available Gramme. Usage instructions given in here

Training

Single Sensor Training

First Train Variational autoencoder:

python train.py --cfg pre_train_camera

Then Train Trajectory sampler:

python train.py --cfg train_camera

Multi Sensor Training

First Train Sensor Fusion Transformer:

python train_transformer.py  --src1  lidar  --tgt  camera  --exp_name  lidar_camera_large  --cfg  pre_train_lidar_camera

Second Train Variational autoencoder:

python train.py --cfg pre_train_lidar_camera

Third Train Trajectory sampler:

python train.py --cfg train_lidar_camera

Testing

For testing the models, you can pass the trajectory sampler training config file as argument.

python train.py --cfg train_camera # change cfg depending on your training

PreTrained Weights

We provide weights for the Variational autoencoder, Trajectory Sampler and Sensor Fusion Transfromer, each of can be downloaded from here

Reference

If you find our work useful in your research or if you use parts of this code, please consider citing:

@misc{mert2024msat,
    title={MSAT: Multi-Sensory All Weather Trajectory Predictor},
    author={Gokpinar, M., Kocyigit M.T., Naseer, A., Almalioglu, Y. and Turan, M.},
    year={2024}
}

Acknowledgments

This code build on Agentformer paper can be reached from here.

This code contains code from the following repositories;

Gramme Radiate SDK RobotCar SDK

msat's People

Contributors

mertgokpinar avatar

Watchers

 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.