ContextLoc
Temporal action localizer for untrimmed video that adds snippet-level and video-level context to action proposals.
Video · 2,642 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Video
- Parameters
- 6.7M
- Operations
- 2,642
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICCV 2021
- Cited by
- 138 (as of 26 October 2026)
- Authors
- Zixin Zhu, Wei Tang, Le Wang and others
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15420
- Graph hash
- 9e4b208664e2e82ef3484aafdfaf640aebefb94391d205849cb175866dff3603
- Skeleton hash
- 69c5b0e0b4cd2372c96c464acd427b4a6a3151d44f0c7aa9a472b9102048f12a
- Architecture hash
- 6797d55bcaff96b6e5e3d4d0976ef9becffeb41ed7ea2fbcc2a6bce29c5484ff
- Diagram SHA-256
- df4a9276db98f04353225b9652c6c15640c88dbd31fce4dd54c42054615ba894
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
ContextLoc localizes actions in time within an untrimmed video, which it reads as a sequence of non-overlapping snippets of a few consecutive frames each. It works in the two-stage framework in which action proposals are generated first, then classified, with their temporal boundaries refined by regression. Snippet features come from an I3D network pre-trained on Kinetics.
The model is divided into three sub-networks, L-Net, G-Net and P-Net. L-Net enriches the local context with a query-and-retrieval procedure inspired by self-attention, except that its queries, keys and values correspond to different semantic entities. G-Net models a video-level representation, and a context adaptation module attends it to the local context within each proposal, so the global context is adapted to each proposal. P-Net models relations between proposals; in this model it is PGCN, one of the two existing networks the authors tried, the other being the non-local network.
The authors contrast this with PGCN alone, which only considers inter-proposal relations and builds a proposal's features by temporal max pooling over its snippets. The paper reports 54.3% mAP at tIoU 0.5 on THUMOS14 and 56.01% on ActivityNet v1.3.
Key idea. ContextLoc enriched both the snippet-level local context and the video-level global context inside two-stage temporal action localization, adapting the global context to each proposal.
- ContextLoc
- temporal action localization
- TAL
- action detection in video
- untrimmed video
- L-Net
- G-Net
- P-Net
- PGCN
- THUMOS14
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhu2021enrichinglocalglobalcontexts,
title={Enriching Local and Global Contexts for Temporal Action Localization},
author={Zixin Zhu and Wei Tang and Le Wang and Nanning Zheng and Gang Hua},
year={2021},
eprint={2107.12960},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2107.12960},
}