StevenLiuWen / ano_pred_cvpr2018

Official implementation of Paper Future Frame Prediction for Anomaly Detection -- A New Baseline, CVPR 2018
435 stars 126 forks source link

online inference #2

Closed Zumbalamambo closed 5 years ago

Zumbalamambo commented 6 years ago

How do I make online inference?

StevenLiuWen commented 6 years ago

@Zumbalamambo One rough way to online inference could be setting a threshold of PSNR, name \epsilon. On video streaming, when a new frame (t) is coming, calculating the PSNR (t) between the predicted frame and ground truth frame. If the PSNR (t) < \epsilon, then this frame will be classified as anomalies, otherwise it is normal. The slight problem is that the threshold (\epsilon) need to tune on validation data set, while there are no validation set on most of the public datsets, such as UCSD Ped1 & 2, CUHK Avenue and ShanghaiTech.