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

The range of reconstruction score #23

Closed usamahjundia closed 4 years ago

usamahjundia commented 4 years ago

Hi again, i have another question..

So i wrapped the current reconstruction / prediction network for use in a real-time basis, after carefully making sure it stays true to the original implementation

I think it is also relevant to mention that this is my setup :

This might be a silly question, but the reconstruction score is supposed to be within the range of [0, 1], right?

Because testing on another video (different resolution) using the same scalers and the pretrained model for shanghaitech dataset, i observed values bigger than 1 for the reconstruction error, ranging as far as 5!

I just want to know if this is the case or i did something wrong on my preprocessing / postprocessing and score calculation because i wrote custom codes (heavily referring to yours, but just vectorized) for preprocessing (scaling, frame to global and local feats) and postprocessing (flipping) and score calculation

Cheers, thanks in advance

usamahjundia commented 4 years ago

closed because some stupid mistake in preprocessing caused all my global features to be NaN which is then converted to zeros, causing local features to shoot up in value, all fixed now.