GithubHelp home page GithubHelp logo

st_mlp's Introduction

A Spatio-Temporal Multilayer Perceptron for Gesture Recognition

Traffic Control Gesture Recognition for Autonomous Vehicles
This is the official project page of our paper.
Adrian Holzbock*, Alexander Tsaregorodtsev*, Youssef Dawoud, Klaus Dietmayer, Vasileios Belagiannis
Accepted at the 33rd IEEE Intelligent Vehicles Symposium (IV22), June 5th - 9th 2022, Aachen, Germany
*denotes equal contribution
The paper video can be found on YouTube.

Requirements

  • Tested on Ubuntu 20.04 and Python 3.8.10
  • Install the dependencies in requirements.txt with pip install -r requirements.txt

Dataset download

We use the publicly available Traffic Control Gestures and Act & Drive datasets in our work. For training and testing the models, place the dataset files in the correct directories like shown below.

temporalmlp
│
└───tcg
│   └───tcg_dataset_2
│       │subj001
│       │...
└───act_and_drive
│   └───activities_3s
│   │   │a_column_co_driver
│   │   │...
│   └───openpose_3d
│   │   │vp1
│   │   │...
│   │calb_data.pkl
│   │...
└───runs
│   │exp_0
│   │...
│README.md
│...

Traffic Control Gestures dataset

Download the dataset from the official website and extract the data into the tcg directory.

Drive & Act dataset

Download the data from the official website. Use the Activities and the 3D Body Pose annotations. Move the activities_3s from the Activities and the opepose_3d from the 3D Body Pose to the act_and_drive directory. Prepare the dataset with the following command:

cd act_and_drive
python3 prepare_aad.py --data --coarse_label

This creates a Python pickle file containing the 3D skeletons (skeletons.pkl) and another containing the corresponding labels (coarse_labels.pkl).

Training

Verify that you prepared your environment and the datasets in the right manner. To train with standard hyperparameters you can use the run scripts. To reproduce the different baselines, run:

  • Train Traffic Control Gestures with the Cross Subject protocol: shell ./run_TCG_cs.sh
  • Train Traffic Control Gestures with the Cross View protocol: shell ./run_TCG_cv.sh
  • Train Drive & Act: shell ./run_aad.sh

You can adapt the standard hyperparameters in the training by using argparse. To do this, use train.py and specifiy the new values for the hyperparameters:

python3 train.py --set_the_parameters

For each training a new log file directory exp_? is created in ./runs/. The best models, the results and the hyperparameters will be saved there.

Evaluation

To test the trained models use test.py and define the path to the model e.g. ./runs/exp_0:

python3 test.py --data ./runs/exp_?

Citation

If you use stMLP in your work or refer to our results in your paper, please cite the following work:

@INPROCEEDINGS{9827054,
  author={Holzbock, Adrian and Tsaregorodtsev, Alexander and Dawoud, Youssef and Dietmayer, Klaus and Belagiannis, Vasileios},
  booktitle={2022 IEEE Intelligent Vehicles Symposium (IV)}, 
  title={A Spatio-Temporal Multilayer Perceptron for Gesture Recognition}, 
  year={2022},
  volume={},
  number={},
  pages={1099-1106},
  doi={10.1109/IV51971.2022.9827054}
}

st_mlp's People

Contributors

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