sauradip / GSMv2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Temporal Action Localization with Global Segmentation Mask v2

This repository is the official pytorch implementation of "Proposal-Free Temporal Action Localization with Global Segmentation Mask".

Requirements

To install requirements:

pip install -r requirements.txt

đź“‹ Create a virtual environment in conda or pip and install the requirements

Video Features

  • In this repository, we have demonstrated the implementation on ActivityNet Dataset. We use the Kinetics Pretrained I3D features for ActivityNet from the following repository : ACM-Net
  • Please download the video features (train/test) and unzip it in features/ folder. (Remember to have atleast 30 GB of disk space)
  • Update the feature path in config/anet.yaml

Training

To train the model in the paper, run this command:

python gsm_train_v2.py 

You can set all the training hyperparameters in config/anet.yaml file

  • The Training Curves will be as follows

Evaluation

To evaluate our model on ActivityNetv1.3 dataset, run:

sh gsm_multi_infer.sh

Loading validation Video Information ...
100% 4728/4728 [00:00<00:00, 9221.40it/s] 
Inference start
Inference finished
Starting Post-Process
Ending Post-Process
Detection: average-mAP 35.954 mAP@0.50 54.968 mAP@0.55 51.479 mAP@0.60 47.625 mAP@0.65 44.342 
mAP@0.70 40.620 mAP@0.75 36.354 mAP@0.80 31.349 mAP@0.85 25.181 mAP@0.90 18.190 mAP@0.95 9.428

Pre-trained Models

For ease of inference, we have provided the pre-trained model for GSM on ActivityNet. You can download pretrained models here:

Place the contents of the folder in \output and run evaluation

Performance

About


Languages

Language:Python 99.9%Language:Shell 0.1%