henrryzh1 / UR-DMU

Official code for AAAI2023 paper "Dual Memory Units with Uncertainty Regulation for Weakly Supervised Video Anomaly Detection"
MIT License
66 stars 5 forks source link

about gt-ucf.npy #13

Open qzfm opened 2 weeks ago

qzfm commented 2 weeks ago

Excuse me, why is the size of frame labels in gt-ucf.npy is 1109680 instead of 1109824 (if drop the last frames). I drop the last few frames of each video so that the total frame count for each video is divisible by 16, but the final total frame count is 1109824.

It seems that when the number of frames in a video is exactly divisible by 16, the corresponding .npy file is missing the last 16 frames. For example, video "Assault/Assault006_x264" has 8096 frames, but the Assault006_x264.npy only has 505 clips. (505 * 16 = 8080).

henrryzh1 commented 3 days ago

Thank you for your attention. After extracting the features, you can recreate the gt-ucf.npy file.