ekosman / AnomalyDetectionCVPR2018-Pytorch

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

features are extracted successfully but not able to run the video afterwards #215

Closed AbhinavJangra29 closed 9 months ago

AbhinavJangra29 commented 9 months ago

(venv) PS D:\ad> python video_demo.py --feature_extractor "c3d.pickle" --feature_method "c3d" --ad_model "epoch_80000.pt" 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 3.19it/s] 0it [00:00, ?it/s]D:\AnomalyDetectionCVPR2018-Pytorch-main\venv\lib\site-packages\torchvision\io\video.py:161: UserWarning: The pts_unit 'pts' gives wrong results. Please use pts_unit 'sec'. warnings.warn("The pts_unit 'pts' gives wrong results. Please use pts_unit 'sec'.") 33it [00:06, 4.91it/s] D:\ad\video_demo.py:276: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requiresgrad(True), rather than torch.tensor(sourceTensor). features = torch.tensor(features) D:\ad\video_demo.py:140: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requiresgrad(True), rather than torch.tensor(sourceTensor). features = torch.tensor(features).to(device) # pylint: disable=not-callable DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102)

ekosman commented 9 months ago

Hi, in order to reproduce the error I need the file that you pass