Skip to content
/ AFNet Public

The implementation of our CVPR 2023 paper: Frame-Event Alignment and Fusion Network for High Frame Rate Tracking

Notifications You must be signed in to change notification settings

Jee-King/AFNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frame-Event Alignment and Fusion Network for High Frame Rate Tracking

youtube_video

This is the code for the CVPR23 paper Frame-Event Alignment and Fusion Network for High Frame Rate Tracking (PDF) by Jiqing Zhang, Yuanchen Wang, Wenxi Liu, Meng Li, Jinpeng Bai, Baocai Yin, and Xin Yang.

If you use any of this code, please cite the following publication:

@InProceedings{Zhang_2023_CVPR,
    author    = {Zhang, Jiqing and Wang, Yuanchen and Liu, Wenxi and Li, Meng and Bai, Jinpeng and Yin, Baocai and Yang, Xin},
    title     = {Frame-Event Alignment and Fusion Network for High Frame Rate Tracking},
    booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month     = {June},
    year      = {2023},
    pages     = {9781-9790}
}

Abstract

Most existing RGB-based trackers target low frame rate benchmarks of around 30 frames per second. This setting restricts the tracker’s functionality in the real world, especially for fast motion. Event-based cameras as bioinspired sensors provide considerable potential for high frame rate tracking due to their high temporal resolution. However, event-based cameras cannot offer fine-grained texture information like conventional cameras. This unique complementarity motivates us to combine conventional frames and events for high frame rate object tracking under various challengingconditions. Inthispaper, we propose an end-to-end network consisting of multi-modality alignment and fusion modules to effectively combine meaningful information from both modalities at different measurement rates. The alignment module is responsible for cross-style and cross-frame-rate alignment between frame and event modalities under the guidance of the moving cues furnished by events. While the fusion module is accountable for emphasizing valuable features and suppressing noise information by the mutual complement between the two modalities. Extensive experiments show that the proposed approach outperforms state-of-the-art trackers by a significant margin in high frame rate tracking. With the FE240hz dataset, our approach achieves high frame rate tracking up to 240Hz.

图片1 图片2
FE240hz Dataset: HDR FE240hz Dataset: Severe Motion
图片1 图片2
VisEvent Dataset: Rigid Object VisEvent Dataset: Non-Rigid Object

Content

This document describes the usage and installation for this repository.

  1. Installation
  2. Preparing Dataset
  3. Training
  4. Evaluation
  5. Acknowledgments

Installation

The code is based on pytracking and tested on Ubuntu 20.04 with Python 3.8 and PyTorch 1.8.1.

  1. We recommend using conda to build the environment:
    conda create -n <env_name>
  2. Install the dependent packages:
    pip install -r requirements.txt
  3. Install deformable convolution according to EDVR:
    python setup.py develop

Preparing Dataset

We evaluate AFNet on two dataset: FE240hz and VisEvent. The FE240hz dataset has annotation frequencies as high as 240 Hz. With this dataset, our method can accomplish a high frame rate tracking of 240Hz. Compared with FE240hz, VisEvent provides 25Hz annotation frequency, which contains various rigid and non-rigid targets both indoors and outdoors.

  1. For the FE240hz dataset, we split a sequence into multiple subsequences of length 2000 to avoid the sequence being too long. We accumulate events using this file.
  2. For the VisEvent dataset, we remove sequences that miss event data or have misaligned timestamps, leaving 205 sequences for training and 172 for testing. We adopt a different event representation method for VisEvent to validate the generalization of AFNet:

图片1

Training

  1. cd ltr and change --workspace_dir and --data_dir in ./admin/local.py.

  2. Run python run_training.py afnet afnet to train our AFNet.

Evaluation

  1. cd pytracking

  2. Change your local path in ./evaluation/local.py

  3. run python run_tracker.py dimp afnet --dataset eotb --sequence val --epochname your_checkpoint.pth.tar the predicted bounding boxes are be saved in ./tracking_result.

    • The predicted bounding box format: An N×4 matrix with each line representing object location [xmin, ymin, width, height] in one event frame.

Acknowledgments

About

The implementation of our CVPR 2023 paper: Frame-Event Alignment and Fusion Network for High Frame Rate Tracking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published