SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.09409 · 2022

Video Moment Retrieval from Text Queries via Single Frame Annotation

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 9 functions out of this paper's own repositories and ran 9 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.

RepositoryRoleRan
r-cui/ViGA canonical 9 of 9
FunctionStatusWhere it lives
generate_glance Ran r-cui/ViGA/src/dataset/generate_duration_glance.py
code served (permissive licence) · get_code("8aacf71aa706569b")
generate_glance Ran r-cui/ViGA/src/dataset/generate_glance.py
code served (permissive licence) · get_code("de4861acf39ea0b7")
get_dataloader Ran r-cui/ViGA/src/dataset/dataset.py
code served (permissive licence) · get_code("53cc461ea1cb51c9")
n_params Ran r-cui/ViGA/src/utils/utils.py
code served (permissive licence) · get_code("b8a58636933e534a")
resample Ran r-cui/ViGA/src/utils/vl_utils.py
code served (permissive licence) · get_code("fa20e5fc3322d7fd")
safe_division Ran r-cui/ViGA/src/utils/utils.py
code served (permissive licence) · get_code("3c972d0a6beab968")
sent_tokenize Ran r-cui/ViGA/src/utils/vl_utils.py
code served (permissive licence) · get_code("cbffb4232e13336f")
sliding_window Ran r-cui/ViGA/src/utils/utils.py
code served (permissive licence) · get_code("52ddce29a36a2f02")
word_tokenize Ran r-cui/ViGA/src/utils/vl_utils.py
code served (permissive licence) · get_code("19ba6c7e5a81ba75")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Video moment retrieval aims at finding the start and end timestamps of a moment (part of a video) described by a given natural language query. Fully supervised methods need complete temporal boundary annotations to achieve promising results, which is costly since the annotator needs to watch the whole moment. Weakly supervised methods only rely on the paired video and query, but the performance is relatively poor. In this paper, we look closer into the annotation process and propose a new paradigm called "glance annotation". This paradigm requires the timestamp of only one single random frame, which we refer to as a "glance", within the temporal boundary of the fully supervised counterpart. We argue this is beneficial because comparing to weak supervision, trivial cost is added yet more potential in performance is provided. Under the glance annotation setting, we propose a method named as Video moment retrieval via Glance Annotation (ViGA) based on contrastive learning. ViGA cuts the input video into clips and contrasts between clips and queries, in which glance guided Gaussian distributed weights are assigned to all clips. Our extensive experiments indicate that ViGA achieves better results than the state-of-the-art weakly supervised methods by a large margin, even comparable to fully supervised methods in some cases.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2204.09409")
get_code_for_paper("2204.09409")
have("2204.09409")

Connect an agent — have() is free.