End-to-end Temporal Action Detection with Transformer

Xiaolong Liu, Qimeng Wang, Yao Hu, Xu Tang, Shiwei Zhang +2 more
6/18/2021
cs.CV
transformer-attention

Official code: xlliu7/TadTR (166 stars, Python, Apache-2.0, PyTorch, last commit 2023-02-19).

Abstract

Temporal action detection (TAD) aims to determine the semantic label and the temporal interval of every action instance in an untrimmed video. It is a fundamental and challenging task in video understanding.

Show full abstract

Previous methods tackle this task with complicated pipelines. They often need to train multiple networks and involve hand-designed operations, such as non-maximal suppression and anchor generation, which limit the flexibility and prevent end-to-end learning. In this paper, we propose an end-to-end Transformer-based method for TAD, termed TadTR. Given a small set of learnable embeddings called action queries, TadTR adaptively extracts temporal context information from the video for each query and directly predicts action instances with the context. To adapt Transformer to TAD, we propose three improvements to enhance its locality awareness. The core is a temporal deformable attention module that selectively attends to a sparse set of key snippets in a video. A segment refinement mechanism and an actionness regression head are designed to refine the boundaries and confidence of the predicted instances, respectively. With such a simple pipeline, TadTR requires lower computation cost than previous detectors, while preserving remarkable performance. As a self-contained detector, it achieves state-of-the-art performance on THUMOS14 (56.7% mAP) and HACS Segments (32.09% mAP). Combined with an extra action classifier, it obtains 36.75% mAP on ActivityNet-1.3. Code is available at https://github.com/xlliu7/TadTR.

View on arXivView PDF

Code Implementations(1)

xlliu7/TadTROfficial100%
PyTorchApache-2.0

[TIP 2022] End-to-end Temporal Action Detection with Transformer

16611Python, CudaMay 6, 20213 years agoApache-2.0
action-recognitionpytorchtemporal-action-detectiontemporal-action-localizationtransformer

Similar Papers

Cite this paper

@article{liu2021endtoend,
  title  = {End-to-end Temporal Action Detection with Transformer},
  author = {Xiaolong Liu and Qimeng Wang and Yao Hu and Xu Tang and Shiwei Zhang and Song Bai and Xiang Bai},
  year   = {2021},
  eprint = {2106.10271},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.10271}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.10271.svg)](https://codeofpaper.com/paper/2106.10271)

Discussion