seominseok0429 / Real-world-Anomaly-Detection-in-Surveillance-Videos-pytorch

Real-world Anomaly Detection in Surveillance Videos- pytorch Re-implementation
114 stars 26 forks source link

Different evaluation strategy #8

Closed LiUzHiAn closed 2 years ago

LiUzHiAn commented 2 years ago

Is your evaluation strategy the same as the official?

I notice you average the AUCs of 140 testing abnormal videos. If I didn't remember wrong, the official calculated the whole videos at the same time.

LiUzHiAn commented 2 years ago

Besides, the testing normal videos seem not to be used.

seominseok0429 commented 2 years ago

you're right. I only used 140 because I wanted to calculate AUC using sklearn. If all the remaining 10 normal videos are calculated, the AUC is 86. The code can be easily modified.

LiUzHiAn commented 2 years ago

Have you ever tried to evaluate the AUC of all the videos at once?

To be more specific, suppose we have 3 test videos with 1000 frames each. And the first video is normal, the rest two are abnormal ones. You should contact the gt_labels and predicted scores of all three videos and use sklearn to calculate the AUC. What is the result then?

Thx.

Karthikeya-t commented 2 years ago

Can you please tell me How to add evaluate this model , Auc curve code of this model

Thanks for helping

wjtan99 commented 2 years ago

@LiUzHiAn I tried your way, and the AUC is not identical but about the same.
@seominseok0429 What training parameters did you use? I got AUC=0.82, but 0.845. Thanks.

seominseok0429 commented 2 years ago

Ours full code available at CODE