All Projects → asrafulashiq → hamnet

asrafulashiq / hamnet

Licence: other
PyTorch implementation of AAAI 2021 paper: A Hybrid Attention Mechanism for Weakly-Supervised Temporal Action Localization

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to hamnet

Hierarchical-attention-network
My implementation of "Hierarchical Attention Networks for Document Classification" in Keras
Stars: ✭ 26 (-13.33%)
Mutual labels:  attention-mechanism
visdial
Visual Dialog: Light-weight Transformer for Many Inputs (ECCV 2020)
Stars: ✭ 27 (-10%)
Mutual labels:  attention-mechanism
dodrio
Exploring attention weights in transformer-based models with linguistic knowledge.
Stars: ✭ 233 (+676.67%)
Mutual labels:  attention-mechanism
CrabNet
Predict materials properties using only the composition information!
Stars: ✭ 57 (+90%)
Mutual labels:  attention-mechanism
Attention mechanism-event-extraction
Attention mechanism in CNNs to extract events of interest
Stars: ✭ 17 (-43.33%)
Mutual labels:  attention-mechanism
awesome-egocentric-vision
A curated list of egocentric (first-person) vision and related area resources
Stars: ✭ 103 (+243.33%)
Mutual labels:  activity-recognition
SAMN
This is our implementation of SAMN: Social Attentional Memory Network
Stars: ✭ 45 (+50%)
Mutual labels:  attention-mechanism
LMFD-PAD
Learnable Multi-level Frequency Decomposition and Hierarchical Attention Mechanism for Generalized Face Presentation Attack Detection
Stars: ✭ 27 (-10%)
Mutual labels:  attention-mechanism
Linear-Attention-Mechanism
Attention mechanism
Stars: ✭ 27 (-10%)
Mutual labels:  attention-mechanism
Multi-task-Conditional-Attention-Networks
A prototype version of our submitted paper: Conversion Prediction Using Multi-task Conditional Attention Networks to Support the Creation of Effective Ad Creatives.
Stars: ✭ 21 (-30%)
Mutual labels:  attention-mechanism
NLP-paper
🎨 🎨NLP 自然语言处理教程 🎨🎨 https://dataxujing.github.io/NLP-paper/
Stars: ✭ 23 (-23.33%)
Mutual labels:  attention-mechanism
Hierarchical-Word-Sense-Disambiguation-using-WordNet-Senses
Word Sense Disambiguation using Word Specific models, All word models and Hierarchical models in Tensorflow
Stars: ✭ 33 (+10%)
Mutual labels:  attention-mechanism
long-short-transformer
Implementation of Long-Short Transformer, combining local and global inductive biases for attention over long sequences, in Pytorch
Stars: ✭ 103 (+243.33%)
Mutual labels:  attention-mechanism
Compact-Global-Descriptor
Pytorch implementation of "Compact Global Descriptor for Neural Networks" (CGD).
Stars: ✭ 22 (-26.67%)
Mutual labels:  attention-mechanism
trove
Weakly supervised medical named entity classification
Stars: ✭ 55 (+83.33%)
Mutual labels:  weak-supervision
Brain-Tumor-Segmentation
Attention-Guided Version of 2D UNet for Automatic Brain Tumor Segmentation
Stars: ✭ 125 (+316.67%)
Mutual labels:  attention-mechanism
resolutions-2019
A list of data mining and machine learning papers that I implemented in 2019.
Stars: ✭ 19 (-36.67%)
Mutual labels:  attention-mechanism
datastories-semeval2017-task6
Deep-learning model presented in "DataStories at SemEval-2017 Task 6: Siamese LSTM with Attention for Humorous Text Comparison".
Stars: ✭ 20 (-33.33%)
Mutual labels:  attention-mechanism
dana
DANA: Dimension-Adaptive Neural Architecture (UbiComp'21)( ACM IMWUT)
Stars: ✭ 28 (-6.67%)
Mutual labels:  activity-recognition
stanford-cs231n-assignments-2020
This repository contains my solutions to the assignments for Stanford's CS231n "Convolutional Neural Networks for Visual Recognition" (Spring 2020).
Stars: ✭ 84 (+180%)
Mutual labels:  attention-mechanism

HAM-Net

Paper Conference

This repository contains code for the AAAI 2021 paper:

A Hybrid Attention Mechanism for Weakly-Supervised Temporal Action Localization

Overview

Prerequisites

  • PyTorch 1.7.1
  • pytorch-lightning 1.1.2
  • loguru, colorama, etc.

Older versions of PyTorch(1.3+) and pytorch-lightning(0.9+) should also work but not tested.

You can create a new conda environment with all the dependencies using:

conda env create -f environment.yml

How to Run

Download Data

The ground-truth and I3D features for THUMOS14 and ActivitiNet1.2 dataset can be downloaded from here:

Box Download Link

Please put the downloaded files/folders under data/ directory.

Training

To train HAM-Net on Thumos14 dataset:

python main.py

Please check options.py to know more about the available cli arguments.

Testing

To evaluate on Thumos14 dataset:

python main.py --test --ckpt [checkpoint_path]

For ActivityNet-1.2, use main_anet.py script.

Citation

If you find this repo useful for your research, please consider citing the paper:

@misc{islam2021hybrid,
      title={A Hybrid Attention Mechanism for Weakly-Supervised Temporal Action Localization}, 
      author={Ashraful Islam and Chengjiang Long and Richard J. Radke},
      year={2021},
      eprint={2101.00545},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Acknowledgement

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].