Abnormal_Event_Detection icon indicating copy to clipboard operation
Abnormal_Event_Detection copied to clipboard

how to run the code

Open priti-ai opened this issue 2 years ago • 3 comments

please could anyone guide in details how to run this code.

priti-ai avatar Aug 19 '21 06:08 priti-ai

First at all, which platform are you using:

For Windows

install ffmpeg to your system and add the path of installed ffmpeg to system variable PATH

For Linux

sudo apt-get install -y ffmpeg

Use pip to install corresponding package respectively: numpy, sklearn, keras, tensorflow, h5py, scipy, OpenCV (Warning: notice which version that you need for each others)

pip install numpy==1.19.3 sklearn keras==2.4.3 tensorflow==2.4.0  h5py==2.10.0  scipy==1.4.1 opencv-python opencv-contrib-python

If the prerequirement complete, you could follow the process as author indicate: python processor.py to process the video in train folder. python train.py to get the model from video you put on that folder. python test.py need you have a test.npy before, which may originate that you put a test video in a newly created folder named test. After then run python process.py ./test 1 to get. Then you could see~ (Welcome for ask more additional information that I could provide)

cross-hello avatar Oct 08 '21 06:10 cross-hello

First at all, which platform are you using:

For Windows

install ffmpeg to your system and add the path of installed ffmpeg to system variable PATH

For Linux

sudo apt-get install -y ffmpeg

Use pip to install corresponding package respectively: numpy, sklearn, keras, tensorflow, h5py, scipy, OpenCV (Warning: notice which version that you need for each others)

pip install numpy==1.19.3 sklearn keras==2.4.3 tensorflow==2.4.0  h5py==2.10.0  scipy==1.4.1 opencv-python opencv-contrib-python

If the prerequirement complete, you could follow the process as author indicate: python processor.py to process the video in train folder. python train.py to get the model from video you put on that folder. python test.py need you have a test.npy before, which may originate that you put a test video in a newly created folder named test. After then run python process.py ./test 1 to get. Then you could see~ (Welcome for ask more additional information that I could provide)

Good morning, Sir I would like to consult you about the evaluation indicators in the abnormal event detection code you provided.I would like to ask you to help provide the codes of AUC and EER.If not, could you please give me some guidance? I am in urgent need of your help.Thank you .

wangrui12345678 avatar Oct 29 '21 02:10 wangrui12345678


Oct 29, 2021 10:36:07 wangrui12345678 @.***>:

First at all, which platform are you using:

For Windows

install ffmpeg[https://github.com/BtbN/FFmpeg-Builds/releases] to your system and add the path of installed ffmpeg to system variable PATH[https://www.zerodollartips.com/install-ffmpeg-windows-10/#:~:text=%20Add%20FFmpeg%20to%20Windows%20Path%20using%20Environment,select%20the%20Path%20and%20click%20on...%20More%20]

For Linux

sudo apt-get install -y ffmpeg

Use pip to install corresponding package respectively: numpy, sklearn, keras, tensorflow, h5py, scipy, OpenCV (Warning: notice which version that you need for each others)

pip install numpy==1.19.3 sklearn keras==2.4.3 tensorflow==2.4.0  h5py==2.10.0  scipy==1.4.1 opencv-python opencv-contrib-python

If the prerequirement complete, you could follow the process as author indicate: *python processor.py *to process the video in /train/ folder. python train.py to get the model from video you put on that folder. python test.py need you have a /test.npy/ before, which may originate that you put a test video in a newly created folder named /test/. After then run python process.py ./test 1 to get. Then you could see~ (Welcome for ask more additional information that I could provide)

Good morning, Sir I would like to consult you about the evaluation indicators in the abnormal event detection code you provided.I would like to ask you to help provide the codes of AUC and EER.If not, could you please give me some guidance? I am in urgent need of your help.Thank you .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub[https://github.com/harshtikuu/Abnormal_Event_Detection/issues/37#issuecomment-954361783], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AKGBAYFLZAILPCKQ3JFL7E3UJICBPANCNFSM5CNQ3GJA]. Triage notifications on the go with GitHub Mobile for iOS[https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675] or Android[https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub]. [data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAArSURBVHic7cEBDQAAAMKg909tDjegAAAAAAAAAAAAAAAAAAAAAAAAAAA+DFFIAAEctgHwAAAAAElFTkSuQmCC###24x24:true###][Tracking image][https://github.com/notifications/beacon/AKGBAYFEQDDWD4IHGK5ESCTUJICBPA5CNFSM5CNQ3GJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHDRGPNY.gif]

Sorry, I am just one of the visitors arriving here. So it is not my product. The abnormal evaluator could be made following the process that author mentioned. Seeking for knowledge is good. Best Blessing, thank you.

cross-hello avatar Oct 29 '21 05:10 cross-hello