Vid-Group: Temporal Video Grounding Pretraining from Unlabeled Videos in the Wild

March 21, 2025 · View on GitHub

Contribution 1) Dataset: A crucial challenge in temporal video grounding is its reliance on massive datasets with labor-intensive annotations. To overcome this, we introduce a large-scale dataset for Temporal Video Grounding Pretraining (Vid-Group), collected in a scalable way with minimal human involvement.

Contribution 2) Pretraining Algorithm: To address the issues of error-prone pseudo-anntations, we propose the Refinement and Correction (ReCorrect) algorithm with a self-correction mechanism for pretraining.

Dataset Download

Our full dataset can be accessed in vid_group_dataset_release.txt. It comprises 52.7K videos and a total of 200.3K annotations.

Below is an example annotation:

v_b0rFmH4XXg8 22.1 110.4 176.7##Person kayaking through water between rocky cliffs.

It represents the following information:

  • Video ID: v_b0rFmH4XXg8
  • Video Duration: 176.7 seconds
  • Sentence Query: "Person kayaking through water between rocky cliffs."
  • Start Time: 22.1 seconds
  • End Time: 110.4 seconds

To access the video, remove the prefix "v_" from the Video ID and then you can find the video on YouTube. For example, for the Video ID v_b0rFmH4XXg8, the corresponding YouTube link is: https://www.youtube.com/watch?v=b0rFmH4XXg8

This dataset is released under the CC BY 4.0 license. In order to comply with legal requirements, this dataset provides YouTube links to the videos instead of distributing the video files. Users are advised to download the videos independently and to strictly adhere to YouTube's Terms of Service and all applicable copyright policies when accessing or using the video content, as well as adhering to the license terms governing the annotations.

Comparison to Existing Dataset

Dataset Comparision

Code for Zero-Shot, Unsupervised, and Fully-Supervised Setting

To run the code, use the following command, which integrates the evaluation process for 1) zero-shot, 2) unsupervised, and 3) fully-supervised setting.

python main.py --cfg ./experiment/charades/recorrect_eval_configs_on_ZeroShot+Unsup+Full.json --eval

The evaluation results highlight that:

  • Compared to the fully supervised approach SimBase, Our ReCorrect achieves 81.3% and 86.7% of its performance in zero-shot and unsupervised settings.
  • This narrow performance gap underscores the potential of our Vid-Group dataset to address the critical challenge of TVG's heavy reliance on manual annotations.

Checkpoints and Features

You do not need any extra downloading to run the code, as the repository is self-contained with necessary features and checkpoints.

  1. CLIP features are available in the data/charades/feat directory.
  2. Pre-trained checkpoints are located in ckpt/charades
    • zero_shot.ckpt: zero-shot model.
    • unsup.ckpt: unsupervised model.
    • full_sup.ckpt: fully supervised model.

Expected Results

Zero-Shot Setting

MethodR@0.1R@0.2R@0.3mIoU
ReCorrect66.5451.1528.5445.63
% of SimBase85.6%76.9%64.8%81.3%

 

Unsupervised Setting

MethodR@0.1R@0.2R@0.3mIoU
ReCorrect70.9654.4231.1048.66
% of SimBase91.2%81.9%70.7%86.7%

 

Fully Supervised Setting

MethodR@0.1R@0.2R@0.3mIoU
SimBase77.7766.4844.0156.15
ReCorrect (Ours)78.5568.3945.7857.42