ekosman / AnomalyDetectionCVPR2018-Pytorch

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

'Tensor' object has no attribute 'conjugate' #31

Closed lesmiserable closed 3 years ago

lesmiserable commented 3 years ago

Hello, when I run video_demo.py, I meet this problem in feature_extractor.py--

Exception has occurred: AttributeError 'Tensor' object has no attribute 'conjugate' File "/home/wyz/pythonprojects/AnomalyDetectionCVPR2018-Pytorch/feature_extractor.py", line 69, in dump features = features / np.expand_dims(np.linalg.norm(features, ord=2, axis=-1), axis=-1) File "/home/wyz/pythonprojects/AnomalyDetectionCVPR2018-Pytorch/video_demo.py", line 105, in cd3_extartion features_writer.dump() File "/home/wyz/pythonprojects/AnomalyDetectionCVPR2018-Pytorch/video_demo.py", line 284, in dir_list=cd3_extartion(video_parth,device=device)

And how to fix it? Thank you very much.

ekosman commented 3 years ago

Merged a branch that fixes this