Houwen Peng, Jianlong Fu, Minghao Chen, Haibin Ling, Gaofeng Meng, Shiming Xiang, Songyang Zhang, Bolin Ni
We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| microsoft/videox | — | 3 of 3 |
| Function | Status | Where it lives |
|---|---|---|
| MulitHeadAttention | Ran | microsoft/videox/X-CLIP/models/prompt.py pointer only (licence: NOASSERTION) · get_code("24d72b3dd24e3dbe") |
| PromptGeneratorLayer | Ran | microsoft/videox/X-CLIP/models/prompt.py pointer only (licence: NOASSERTION) · get_code("d6bc7452b4eff554") |
| VideoSpecificPrompt | Ran | microsoft/videox/X-CLIP/models/prompt.py pointer only (licence: NOASSERTION) · get_code("5fddf59ff99f898b") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Contrastive language-image pretraining has shown great success in learning visual-textual joint representation from web-scale data, demonstrating remarkable "zero-shot" generalization ability for various image tasks. However, how to effectively expand such new languageimage pretraining methods to video domains is still an open problem. In this work, we present a simple yet effective approach that adapts the pretrained language-image models to video recognition directly, instead of pretraining a new model from scratch. More concretely, to capture the long-range dependencies of frames along the temporal dimension, we propose a cross-frame attention mechanism that explicitly exchanges information across frames. Such module is lightweight and can be plugged into pretrained language-image models seamlessly. Moreover, we propose a video-specific prompting scheme, which leverages video content information for generating discriminative textual prompts. Extensive experiments demonstrate that our approach is effective and can be generalized to different video recognition scenarios. In particular, under fully-supervised settings, our approach achieves a top-1 accuracy of 87.1% on Kinectics-400, while using 12× fewer FLOPs compared with Swin-L and ViViT-H. In zero-shot experiments, our approach surpasses the current state-ofthe-art methods by +7.6% and +14.9% in terms of top-1 accuracy under two popular protocols. In few-shot scenarios, our approach outperforms previous best methods by +32.1% and +23.1% when the labeled data is extremely limited. Code and models are available at here.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2208.02816")
get_code_for_paper("2208.02816")
have("2208.02816")
Connect an agent — have() is free.