ptirupat / AnomalyDetection_CVPR18

Implementation of Real-World Anomaly Detection CVPR_2018 paper
http://openaccess.thecvf.com/content_cvpr_2018/papers/Sultani_Real-World_Anomaly_Detection_CVPR_2018_paper.pdf
43 stars 12 forks source link

problem while running sudo python extract_C3D_feature.py #19

Open cervantes-loves-ai opened 4 years ago

cervantes-loves-ai commented 4 years ago

sh c3d_sport1m_feature_extraction_frm.sh runs perfectly but while run sudo python extract_C3D_feature.py i faced this problem

sudo python extract_C3D_feature.py Traceback (most recent call last): File "extract_C3D_feature.py", line 7, in import numpy as np File "/usr/local/lib/python2.7/dist-packages/numpy/init.py", line 142, in from . import core File "/usr/local/lib/python2.7/dist-packages/numpy/core/init.py", line 91, in raise ImportError(msg.format(path)) ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/usr/local/lib/python2.7/dist-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.

even though i reinstall numpy sevaral times but still have same error. also when i run with python3 i saw this error

sudo python3 extract_C3D_feature.py File "extract_C3D_feature.py", line 32 print "[Info] trained_model={} found. Good to go!".format(trained_model) ^ SyntaxError: invalid syntax

thanks in advance

dexXxed commented 4 years ago

Hello! I have fixed this issue, working code is here