RomeroBarata / skeleton_based_anomaly_detection

Code for the CVPR'19 paper "Learning Regularity in Skeleton Trajectories for Anomaly Detection in Videos"
132 stars 49 forks source link

How to generate frame level prediction mask from pixel level mask? #9

Closed AshviniKSharma closed 4 years ago

AshviniKSharma commented 4 years ago

Hello, Thank you for your excellent work. I want to know is there any way to generate frame-level anomaly mask from pixel-level anomaly mask of predictions. I tried doing max over all values, but it's creating a lot of false outcomes. Can you help?

RomeroBarata commented 4 years ago

Hi @AshviniKSharma , A frame-level anomaly means that at least one pixel in the frame is anomalous. So, from the pixel-level mask, if you identify at least one anomalous pixel, you can set the frame-level mask to one.

Cambrainnnnn commented 4 years ago

Hi @AshviniKSharma I want to know which file or function could get the pixel-level anomaly mask? I just set the anomaly result if the frame anomaly score out the threshold. Thanks~