Skip to content
/ A2Net Public

Revisiting Anchor Mechanisms for Temporal Action Localization (TIP 2020)

Notifications You must be signed in to change notification settings

VividLe/A2Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Revisiting Anchor Mechanisms for Temporal Action Localization

This repository is the official implementation of Revisiting Anchor Mechanisms for Temporal Action Localization. In this work, we study the weakly supervised temporal action localization task. Most of the current action localization methods follow an anchor-based pipeline: depicting action instances by pre-defined anchors, learning to select the anchors closest to the ground truth, and predicting the confidence of anchors with refinements. Pre-defined anchors set prior about the location and duration for action instances, which facilitates the localization for common action instances but limits the flexibility for tackling action instances with drastic varieties, especially for extremely short or extremely long ones. To address this problem, this paper proposes a novel anchor-free action localization module that assists action localization by temporal points. Specifically, this module represents an action instance as a point with its distances to the starting boundary and ending boundary, alleviating the pre-defined anchor restrictions in terms of action localization and duration. The proposed anchor-free module is capable of predicting the action instances whose duration is either extremely short or extremely long. By combining the proposed anchor-free module with a conventional anchor-based module, we propose a novel action localization framework, called A2Net. The cooperation between anchor-free and anchor-based modules achieves superior performance to the state-of-the-art on THUMOS14 (45.5% vs. 42.8%). Furthermore, comprehensive experiments demonstrate the complementarity between the anchor-free and the anchor-based module, making A2Net simple but effective.

Illustrating the architecture of the proposed A2Net

Requirements

To install requirements:

conda env create -f environment.yaml

Before running the code, please activate this conda environment.

Data Preparation

Download Thumos14 from BaiDuYun (code: lele).

Please ensure the data structure is as below
├── data
   └── thumos
       ├── val
           ├── video_validation_0000051_02432.npz
           ├── video_validation_0000051_02560.npz
           └── ...
       └── test
           ├── video_test_0000004_00000.npz
           ├── video_test_0000004_00256.npz
           └── ...
     

Training

To train the A2Net model on THUMOS14 dataset, please first modify parameters in:

./experiments/A2Net_thumos.yaml

Then run this command:

cd ./tools
python main.py

Pre-trained Models

You can download pretrained models here:

  • THUMOS14, (code: lele), trained on THUMOS14 using parameters same as "./experiments/A2Net_thumos.yaml".

Results

Our model achieves the following performance on :

threshold 0.1 0.2 0.3 0.4 0.5 0.6 0.7
mAP 61.1 60.2 58.6 54.1 45.5 32.5 17.2

Contact

If you have any questions, please file an issue or contact Le Yang via nwpuyangle@gmail.com.

About

Revisiting Anchor Mechanisms for Temporal Action Localization (TIP 2020)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published