Skip to content

ChenYichen9527/MAD-representation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motion and Appearance Decoupling representation for Event Cameras

Image

This is the official Pytorch implementation of the paper MAD: Motion and Appearance Decoupling representation for Event Cameras.

Installation

We recommend using conda for environment setup:

Conda

conda create -y -n mad python=3.9 
conda activate mad
conda install --file requirements.txt

Required Data

Download

The download addresses for the data are as follows:

TASK dataset_0 dataset_1
Object detection Gen 1 1Mpx
Semantic Segmentation DDD17 DSEC-Semantic
Human Pose Estimation DHP19 -

Preprocess

You need to preprocess the original event data to fit our code. For object detection and semantic segmentation tasks, we divide the data at 50ms intervals; for human pose estimation tasks, we divide the data at intervals of every 7,500 events. For xx dataset, you can run:

python builddataset/build_xx.py

For example, to preprocess a 1mpx dataset, you can run the following code:

python builddataset/build_1mpx.py

Pre-trained Checkpoints for MAD representation

coming soon

Train

python MAD_Rep/train_flow.py

Prediction

We currently provide MAD representation (excluding downstream tasks) prediction and visualization code. You can run the following code to visualize the results of MAD representation.

python pre_xx.py -r path_to_orin_event_data -sr path_to_save_new_data

For example, to preprocess a 1mpx dataset, you can run the following code:

python pre_1mpx.py -r path_to_orin_event_data -sr path_to_save_new_data

you can also

Visualization on different tasks

The following are the results of our method on different tasks.

Object Detection

Image

From left to right: Motion tensor, Detection result and GT.

Semantic Segmentation

Image

From left to right: Motion tensor, Appearance tensor, Segmentation result and GT.

Human Pose Estimation

ImageImageImageImage From left to right: Leftarm abduction, Side kick forwards left, Walking 3.5 km/h and Star jumps. In each action, blue represents the predicted result and red represents GT.

Code Acknowledgments

This project has used code from the following projects:

About

[TIP 2025] Motion and Appearance Decoupling Representation for Event Cameras

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages