vt-le / astnet

This is an official implementation for "Attention-based Residual Autoencoder for Video Anomaly Detection".
https://vt-le.github.io/astnet/
MIT License
102 stars 15 forks source link

AssertionError: Ground truth has 2012 frames, BUT got 1962 detected frames! #20

Open Pingtj opened 6 months ago

Pingtj commented 6 months ago

Hi, I was evaluating a pre-trained model UCSDped2 using the command python test.py --cfg config/ped2_wresnet.yaml --model-file ped2.pth. After the 12 ephocs, I had this error AssertionError: Ground truth has 2012 frames, BUT got 1962 detected frames!. I have downloaded the ped2.pth and ped2.mat files correctly. Do you know how to solve this? Thank you.

Pingtj commented 6 months ago

I have already fixed it, i recommend you change your dataset onedrive downloads btw. They are not correct.

cvfan commented 5 months ago

Hi,may i ask how you resolved it