snailma0229/MS-DETR
حول
【Accepted by ACM MM'25 🎉🎉】MS-DETR: Towards Effective Video Moment Retrieval and Highlight Detection by Joint Motion-Semantic Learning
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلMS-DETR: Towards Effective Video Moment Retrieval and Highlight Detection by Joint Motion-Semantic Learning
Updates & News
2025-09-26 Updates
- Google Drive data & features link permissions updated; the link is now public for everyone: data & features link.
- Auxiliary data generation code and visualization toolkit are planned to be uploaded within two weeks.
2025-09-03 Initial Code Release (v0.1.0)
- Includes core training/inference code for MR/HD, evaluation utilities, and example scripts.
- Supports modular ablations via command-line args; see ms_detr/config.py for argument descriptions.
- Coming soon: auxiliary corpus generation code and visualization toolkit (released progressively).
- Paper: arXiv:2507.12062
Prerequisites
We follow the environment requirements of the QD-DETR baseline. Please refer to their repo for background and dataset preparation details: QD-DETR (CVPR'23).
- Tested OS: Linux/macOS
- Python: 3.7
- PyTorch: 1.9.0 (CUDA 11.1 recommended) and matching torchvision
- GPU: NVIDIA GPU with CUDA support (recommended)
Setup
- Create a clean Python 3.7 environment (conda example):
conda create -n msdetr python=3.7 -y
conda activate msdetr
- Install PyTorch 1.9.0 (choose the CUDA/CPU build that matches your system):
# CUDA 11.1 example
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
# or CPU-only
# pip install torch==1.9.0 torchvision==0.10.0
- Install project dependencies:
pip install -U pip wheel setuptools
pip install numpy scipy tqdm tensorboard scikit-learn matplotlib ftfy regex
- Verify installation:
python -c "import torch; import numpy as np; print('torch', torch.__version__, 'cuda', torch.cuda.is_available())"
Notes:
- Keep PyTorch/torchvision versions consistent (e.g., torch==1.9.0 with torchvision==0.10.0).
- If using CUDA, ensure your local CUDA driver is compatible with the selected wheel.
QVHighlights
Training
Note: Update the data paths in ms_detr/scripts/train.sh to your local paths. Download the provided data and features (including auxiliary data) from data & features link. We will progressively release code to generate these JSONs and features.
Training with (only video) and (video + audio) can be executed by running the shell below (following the setup style of QD-DETR):
# Only video
bash ms_detr/scripts/train.sh --seed 2018
# Video + audio
bash ms_detr/scripts/train_audio.sh --seed 2018
To calculate the standard deviation reported in the paper, we ran with 5 different seeds: 0, 1, 2, 3, 2018 (2018 is the seed used in Moment-DETR).
Inference Evaluation and Codalab Submission for QVHighlights
Once the model is trained, hl_val_submission.jsonl and hl_test_submission.jsonl can be produced by running:
bash ms_detr/scripts/inference.sh results/{direc}/model_best.ckpt 'val'
bash ms_detr/scripts/inference.sh results/{direc}/model_best.ckpt 'test'
where {direc} is the path to the saved checkpoint directory. For more details on submission, please check standalone_eval/README.md.
Roadmap
We will progressively release training and evaluation code for additional datasets.
Citation 💖
If you find MS-DETR useful for your project or research, welcome to 🌟 this repo and cite our work using the following BibTeX:
@article{ma2025msdetreffectivevideomoment,
author = {Ma, Hongxu and Wang, Guanshuo and Yu, Fufu and Jia, Qiong and Ding, Shouhong},
title = {MS-DETR: Towards Effective Video Moment Retrieval and Highlight Detection by Joint Motion-Semantic Learning},
journal = {arXiv preprint arXiv:2507.12062},
year = {2025}
}
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…