Pretrained models can be downloaded in here:Onedrive
$pip install -r requirement.txt
gt generate reference github
Dataset Prepare: UCF-crime ten-crop I3D. Rename the data path in ucf-i3d.list and ucf-i3d-test.list based on your data path.
32 segmented UCF dataset: UCF-crime_ten-crop_I3D_32_seg. Rename the data path in ucf-i3d.list and ucf-i3d-test.list based on your data path.
@misc{chen2022mgfn,
title={MGFN: Magnitude-Contrastive Glance-and-Focus Network for Weakly-Supervised Video Anomaly Detection},
author={Yingxian Chen and Zhengzhe Liu and Baoheng Zhang and Wilton Fok and Xiaojuan Qi and Yik-Chung Wu},
year={2022},
eprint={2211.15098},
archivePrefix={arXiv},
primaryClass={cs.CV}
}