8000 GitHub - Sranc3/ASP4retrieval: demo for ASP
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Sranc3/ASP4retrieval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Attentive-Snippet-Prompting-for-video-retrieval

Demo for ASP

This is the implementation for the paper Attentive Snippet Prompting for Video Retrieval.

ASP is a video-text retreval pardigm based on CLIP (ViT-B) and CLIP4Clip (ViT-B). We find that, since a video contains rich and complex content, different annotators often give divsersified texts to desribe this video, As shown below, each ground-truth text may just refer to a video snippet, and a video may contain different snippets for different text queries.

ASP4retrieval

We propose a concise and novel Attentive Snippet Prompting (ASP) paradigm, which smartly leverages the text query as guidance, and attentively exploits a relevant snippet prompt from video. ASP can effectively boost video retrieval, with cooperation of such text-driven snippet prompt and global video token. It onsists of two key modules, i.e., snippet prompting and video aggregating as shown in the following figure,

ASP4retrieval Our ASP simply outperforms the baseline and achieved the SOTA at that time.

Requirement

We utilize the code base of CLIP4Clip. Please follow their instructions to prepare the environment and datasets.

Get Started

Put modeling_asp.py under ./modules and add the related import codes, use the param --eval to decide the ASP structure. Then follow CLIP4Clip's command to run. As a plug-and-play module, you can also add our ASP_logits function to other retreival models to boost performance. The complete codes will be released soon.

Acknowledegement

This repo benefits from CLIP and CLIP4Clip. Thanks for their wonderful works.

Citation

About

demo for ASP

Resources

Stars

Watchers

Forks

38E0

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0