An implementation of Phrase-level Prediction Net(PLP Net) for temporal sentence localization task using PyTorch. Our paper was accepted by ICMR-2022.
Sizhe Li, Chang Li, Minghang Zheng, Yang Liu
An overview of PLPNet method. The model contains four modules, a text encoder to extract sentence
features and generate
| Dataset | [email protected] | [email protected] | [email protected] | mIoU |
|---|---|---|---|---|
| ActivityNet Captions | 56.92 | 39.20 | 20.91 | 39.53 |
| Charades-STA | 73.49 | 58.95 | 35.48 | 51.53 |
| Dataset | [email protected] | [email protected] | [email protected] | mIoU |
|---|---|---|---|---|
| ActivityNet Captions | 50.10 | 38.12 | 25.24 | 37.96 |
| Charades-STA | 63.49 | 40.52 | 19.27 | 40.76 |
This repository is implemented based on PyTorch with Anaconda.
It relies on python 3.6 and pytorch 1.1.0(other versions may alse work but are not tried).
Download VGG or I3D features for Charades-STA and put them into the data/charades/features folder. Download C3D feature for ActivityNet Captions dataset and put it into the data/ActivityNet folder.
The code below will load all the data (~30GB for ActivityNet Captions and ~3GB for Charades-STA) into RAM for the fast training, if you want to disable this behavior, set in_memory in a config file (config.yaml) as FALSE.
conda activate tg
# PLPNet model for Charades-STA dataset
bash scripts/train_model.sh LGI tgn_lgi charades 0 4 0The default setting uses I3D feature for training on Charades-STA dateset, if you want to use VGG features, change feature_type in a config file (config.yaml) as VGG.
conda activate tg
# PLPNet model for ActivityNet Captions dataset
bash scripts/train_model.sh LGI tgn_lgi anet 0 4 0