PRVQL: Progressive Knowledge-Guided Refinement for Robust Egocentric Visual Query Localization

July 10, 2025 ยท View on GitHub

Watch Demo Paper

๐ŸŽ‰ This work has been accepted to ICCV 2025!

๐Ÿ“ Overview

Egocentric Visual Query Localization (EgoVQL) aims to locate a target object in both space and time within first-person videos based on a given visual query. However, existing methods often struggle with significant appearance variations and cluttered backgrounds, leading to reduced localization accuracy.

To overcome these challenges, PRVQL introduces a progressive knowledge-guided refinement approach. By dynamically extracting and refining knowledge from the video itself, PRVQL continuously enhances query and video features across multiple stages, resulting in more accurate localization.


๐Ÿ” Core Idea

Comparison of PRVQL with existing methods

PRVQL employs appearance and spatial knowledge extraction modules at each stage to iteratively refine the query and video features. This progressive refinement leads to increasingly accurate localization results.


๐Ÿ—๏ธ Model Framework

PRVQL Framework


โš™๏ธ Environment Setup

Set up your environment with the following commands:

conda create --name prvql python=3.8 -y
conda activate prvql

conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cudatoolkit=11.6 -c pytorch -c conda-forge

pip install -r requirements.txt

๐Ÿ“ฆ Pretrained Weights

Download the pretrained model weights from Google Drive and place them in:

./output/ego4d_vq2d/train/train

๐Ÿ“‚ Dataset Preparation

1๏ธโƒฃ Process the Dataset

Follow the instructions in the VQLoC repository to process the dataset into video clips and images.

2๏ธโƒฃ Organize the Dataset

Ensure the dataset is structured as follows:

./your/dataset/path/
โ””โ”€โ”€ datav2
    โ”œโ”€โ”€ clips
    โ”‚   โ”œโ”€โ”€ 1.mp4
    โ”‚   โ””โ”€โ”€ ...
    โ”œโ”€โ”€ images
    โ”‚   โ”œโ”€โ”€ 1   
    โ”‚   โ”‚   โ”œโ”€โ”€ 1.mp4
    โ”‚   โ”‚   โ””โ”€โ”€ ...
    โ”‚   โ””โ”€โ”€ ...        
    โ”œโ”€โ”€ train_annot.json
    โ”œโ”€โ”€ val_annot.json
    โ”œโ”€โ”€ vq_test_unannotated.json
    โ”œโ”€โ”€ vq_train.json
    โ””โ”€โ”€ vq_val.json

3๏ธโƒฃ Update Configuration Files

Modify the dataset path in the following configuration files:

  • config/eval.yaml
  • config/train.yaml
  • config/val.yaml

Update the dataset root path:

root: './your/dataset/path/'

๐Ÿ‹๏ธ Training & Evaluation

We will release the model and code soon.


๐Ÿ“Š Benchmark Results on Ego4D Validation and Test Sets

๐Ÿ“ˆ Validation Set

MethodtAP25_{25}stAP25_{25}rec%Succ
STARK (ICCV'21)0.100.0412.4118.70
SiamRCNN (CVPR'22)0.220.1532.9243.24
NFM (VQ2D'22)0.260.1937.8847.90
CocoFormer (CVPR'23)0.260.1937.6747.68
VQLoC (NeurIPS'23)0.310.2247.0555.89
PRVQL (Ours)0.350.2747.8757.93

๐Ÿ† Test Set

MethodtAP25_{25}stAP25_{25}rec%Succ
STARK (ICCV'21)----
SiamRCNN (CVPR'22)0.200.13--
NFM (VQ2D'22)0.240.17--
CocoFormer (CVPR'23)0.250.18--
VQLoC (NeurIPS'23)0.320.2445.1155.88
PRVQL (Ours)0.370.2845.7059.43

๐Ÿ“– Citation

If you find this repository useful, please consider starring โญ it and citing our work:

@article{fan2025prvql,
  title={PRVQL: Progressive Knowledge-Guided Refinement for Robust Egocentric Visual Query Localization},
  author={Fan, Bing and Feng, Yunhe and Tian, Yapeng and Lin, Yuewei and Huang, Yan and Fan, Heng},
  journal={arXiv preprint arXiv:2502.07707},
  year={2025}
}