Code Monkey home page Code Monkey logo

structured-attention-composition's Introduction

Structured Attention Composition for Temporal Action Localization

This repository is the official implementation of SAC. In this work, we tackle the temporal action localization task from the perspective of modality, and precisely assign frame-modality attention. Paper from arXiv or IEEE.

Illustrating the architecture of the proposed SAC

Requirements

To install requirements:

conda env create -n env_name -f environment.yaml

Before running the code, please activate this conda environment.

Data Preparation

a. Download pre-extracted features from baiduyun (code:6666)

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
           ├── ...

Train

a. Config

Adjust configurations.

./experiments/thumos/network.yaml

c. Train

cd tools
bash run.sh

Inference

a. You can download pre-trained models from baiduyun (code:6666), and put the weight file in the folder checkpoint.

  • Performance
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 Average
mAP 75.54 73.65 69.09 61.06 51.44 37.10 22.75 8.63 1.43 44.52

b. Test

cd tools
python eval.py

Related Projects

  • BackTAL: Background-Click Supervision for Temporal Action Localization.
  • A2Net: Revisiting Anchor Mechanisms for Temporal Action Localization.

Contact

For any discussions, please contact [email protected].

structured-attention-composition's People

Contributors

vividle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

structured-attention-composition's Issues

data:.npz in val

你好 感谢你的工作
我想问一下val中.npz文件的数据结构 可以吗

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.