Coder Social home page Coder Social logo

a2net's Introduction

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 [email protected].

a2net's People

Contributors

vividle 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.