ekosman / AnomalyDetectionCVPR2018-Pytorch

Pytorch version of - https://github.com/WaqasSultani/AnomalyDetectionCVPR2018
176 stars 55 forks source link

Need Help in test_annotation.txt #120

Closed rabaig closed 2 years ago

rabaig commented 2 years ago

The numbers indicates the range of frames where anomalies occure. 30 90 -1 -1 means anomaly between frames 30-90. -1 -1 means no second anomaly in the video.

Notice that all normal video are annotated with -1 -1 -1 -1, thus no anomalies in these videos. All anomaly videos have at least one pair (and at most two pairs) of numbers, indicating the frames range.

Hello @ekosman ,

I would like to append my custom videos to the UCF-Crime dataset. I have successfully done feature extraction and could you help how to make custom annotation for train and test dataset. For train, I have added custom features path in Train_annotation.txt could you help me how to make test_annotation.txt

Thanks Rafi

Originally posted by @rabaig in https://github.com/ekosman/AnomalyDetectionCVPR2018-Pytorch/issues/18#issuecomment-1152560475

ekosman commented 2 years ago

@rabaig What kind of help do you need?

rabaig commented 2 years ago

@ekosman I have some custom videos and I would like to train and test its anomaly.

I need help to create its annotations files.

One way I thought is to append to existing train and test annotations files. I successfully extracted features.

when I see train_annotation.txt 1st line --> Vandalism/Vandalism048_x264.mp4 7183 . Could you tell me what does that 7183 means ?

Also I would like to create test_annotations.txt for my custom videos

RoadAccidents/RoadAccidents021_x264.mp4 155 RoadAccidents 30 90 -1 -1 -- for this you explained in the previous issue that 30 and 90 is the frame range that anomoly occurs . what about 155 how does it get created?

So, to make it very simple how does you suggest me to create train and test annotations files for my custom videos

Thanks & Regards rafi

ekosman commented 2 years ago

when I see train_annotation.txt 1st line --> Vandalism/Vandalism048_x264.mp4 7183 . Could you tell me what does that 7183 means ?

They mean the length of the video. You can just append random numbers there. As I just took these annotations from the original repo, the code doesn't make use of it.

RoadAccidents/RoadAccidents021_x264.mp4 155 RoadAccidents 30 90 -1 -1 -- for this you explained in the previous issue that 30 and 90 is the frame range that anomoly occurs. what about 155 how does it get created?

155 stands for the length of the video.

ekosman commented 2 years ago

Anything else @rabaig ?

If not, I will close this issue by 10/7/2022.

rabaig commented 2 years ago

Hello @ekosman,

Sorry for the delay!.. I got some issues with the custom data and is checking with that. By any chance do you know any simplified method to create annotations with script.

Thanks

ekosman commented 2 years ago

@rabaig Sorry, I'm not aware of a simplified method of creating annotations. You may contact the original authors of the paper, maybe they have insights.

rabaig commented 2 years ago

Thanks for the support. I will try seeking help from original author. You can close this issue.

ekosman commented 2 years ago

@rabaig Happy to help! :)