AnomalyDetectionCVPR2018-Pytorch icon indicating copy to clipboard operation
AnomalyDetectionCVPR2018-Pytorch copied to clipboard

regarding - On-line (via webcam)

Open Chuttyboy opened this issue 2 years ago • 3 comments

Hai @ekosman

My project is related to this topic ( Anomaly detection ). After successful completion of training, how can I test the model with live anomaly prediction?

thanks

Chuttyboy avatar Aug 12 '22 12:08 Chuttyboy

Hi @Chuttyboy , Have you tried using AD_live_prediction.py?

ekosman avatar Aug 21 '22 07:08 ekosman

Hai @ekosman

Yes, I tried AD_live_prediction.py. But it takes more time to extract frames.

Thanks

Chuttyboy avatar Sep 05 '22 05:09 Chuttyboy

@ekosman @PHDPeter

[ WARN:0] global /io/opencv/modules/videoio/src/cap_v4l.cpp (887) open VIDEOIO(V4L2:/dev/video0): can't open camera by index

I am facing this error while running the below command

python AD_live_prediction.py --feature_extractor c3d.pickle --feature_method c3d --ad_model exps/c3d/models/epoch_80000.pt --clip_length 32

How to resolve that ???

Thanks

suki1504 avatar Sep 07 '22 15:09 suki1504

@ekosman @PHDPeter

[ WARN:0] global /io/opencv/modules/videoio/src/cap_v4l.cpp (887) open VIDEOIO(V4L2:/dev/video0): can't open camera by index

I am facing this error while running the below command

python AD_live_prediction.py --feature_extractor c3d.pickle --feature_method c3d --ad_model exps/c3d/models/epoch_80000.pt --clip_length 32

How to resolve that ???

Thanks

Hi @suki1504 I tried to run the same command and it worked for me. Can you please try again with the current code version?

Unless there are further questions, I'll close this issue by 15/1

ekosman avatar Jan 13 '23 12:01 ekosman