MSAD
[NeurIPS 24] Implementation of "Advancing Video Anomaly Detection: A Concise Review and a New Dataset".
Install / Use
/learn @Tom-roujiang/MSADREADME
[NeurIPS 2024] MSAD - A Benchmark for Video Anomaly Detection

This is a implementation of our work "Advancing Video Anomaly Detection: A Concise Review and a New Dataset" (Accepted by 2024 NeurIPS Dataset and Benchmark Track). We provide code for benchmarking our new Multi-Scenario Video Anomaly Detection dataset.
We propose a new Multi-Scenario Anomaly Detection (MSAD) dataset, a high- resolution, real-world anomaly detection benchmark encompassing diverse scenarios and anomalies, both human and non-human-related. For more details and applying for our MSAD dataset, please refer to our project website: Project Website
Dataset Preparation
If you would like to access the original dataset in video format, please download and submit a request through our application form here.
We use this I3D_Feature_Extraction_resnet repo for extracting I3D features. We also offer extracted features (I3D and Video-Swin Transformer) available for all researchers. (Feature_Download Link)
Note that the Dataset is to be used solely for academic and research purposes. Commercial use, reproduction, distribution, or sale of the Dataset or any derivative works is strictly prohibited.
Benchmarking on MSAD Dataset
For benchmarking weakly-supervised methods on our MSAD dataset, we follow Evaluation Protocol ii as described in our paper. Training and testing file list can be found in feature_download link. We have also provide the pretrained checkpoints for several methods in the link.
We have designed two protocol in our work. This GitHub repo only supports Protocol ii.
Protocol ii: Train on 360 normal and 120 abnormal videos, and test on 120 normal and 120 abnormal videos. During training, we only provide video-level annotations. This protocol is suitable for evaluating weakly-supervised methods trained with our video-level annotations.
If you want to test the model, you can download our pre-trained model from here. Our MSAD dataset supports benchmarking with the following weakly-supervised methods:
- RTFM
- MGFN
- UR-DMU (TODO)
RTFM
An example for testing the model is shown below, you can modify arguments for different datasets (e.g. MSAD, UCF-Crime, ShanghaiTech, etc).
cd RTFM
python test.py --test-rgb-list 'list/msad-i3d-test.list' \
--gt './list/gt-MSAD-WS-new.npy' \
--testing-model './ckpt/rtfm-msad-i3dfinal.pkl' \
--dataset 'msad'
Here is an example for training the model:
python main.py --feat-extractor 'i3d'\
--feature-size 2048 --rgb-list 'list/msad-i3d.list' \
--test-rgb-list 'list/msad-i3d-test.list' --gt default='list/gt-MSAD-WS-new.npy' \
--dataset 'msad' 2>&1 | tee ./train_logs_i3d_msad.txt
MGFN
cd MGFN
python test.py --testing-model ./ckpt/mgfn-msad-i3d-84.96.pkl
For training the model, just run the following code:
cd MGFN
python main.py
You can check the relevant arguments in option.py and adjust them accordingly.
Citation
If you find MSAD useful in your research, please consider citing our paper 📝
@inproceedings{msad2024,
title = {Advancing Video Anomaly Detection: A Concise Review and a New Dataset},
author = {Liyun Zhu and Lei Wang and Arjun Raj and Tom Gedeon and Chen Chen},
booktitle = {The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
year = {2024}
}
Acknowledgement
This codebase is built on top of RTFM, MGFN, UR-DMU, and we thank the authors for their work.
Related Skills
qqbot-channel
344.4kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
99.9k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
344.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
project-overview
FlightPHP Skeleton Project Instructions This document provides guidelines and best practices for structuring and developing a project using the FlightPHP framework. Instructions for AI Coding A
