1.下载代码:
https:// cvlab.yonsei.ac.kr/projects/MNAD
2.下载ped2数据集,放到/dataset/目录下,下载目录如下:
Shanghaitech Vision and Intelligent Perception(SVIP) LAB (svip-lab.github.io)
3.安装torch、torchvision、opencv-python、scikit-learn等。
4.运行Train.py
在终端输入 python Train.py
如果使用重构方法,需要改一下参数,详细见“Readme"。
结果会自动保存在’exp/ped2/pred/log/log.txt‘下,如下:
5.同理,运行评估Evaluate.py