felixchenfy / Realtime-Action-Recognition

Apply ML to the skeletons from OpenPose; 9 actions; multiple people. (WARNING: I'm sorry that this is only good for course demo, not for real world applications !!! Those ary very difficult !!!)
MIT License
875 stars 256 forks source link

ModuleNotFoundError: No module named 'tf_pose' #81

Open Coder-Vishali opened 2 years ago

Coder-Vishali commented 2 years ago

(har_venv) C:\Users\VISHALI\Desktop\Realtime-Action-Recognition-master>python src/s5_test.py --model_path model/trained_classifier.pickle --data_type video --data_path data_test/exercise.avi --output_folder output Traceback (most recent call last): File "C:\Users\VISHALI\Desktop\Realtime-Action-Recognition-master\src\s5_test.py", line 57, in from utils.lib_openpose import SkeletonDetector File "C:\Users\VISHALI\Desktop\Realtime-Action-Recognition-master\src/..\utils\lib_openpose.py", line 21, in from tf_pose.networks import get_graph_path, model_wh ModuleNotFoundError: No module named 'tf_pose'

felixchenfy commented 2 years ago

Sorry I don't have a quick answer now, since it's been many years since I worked on it. Thanks for reporting the issue anyway

StuartsFish commented 2 years ago

(har_venv) C:\Users\VISHALI\Desktop\Realtime-Action-Recognition-master>python src/s5_test.py --model_path model/trained_classifier.pickle --data_type video --data_path data_test/exercise.avi --output_folder output Traceback (most recent call last): File "C:\Users\VISHALI\Desktop\Realtime-Action-Recognition-master\src\s5_test.py", line 57, in from utils.lib_openpose import SkeletonDetector File "C:\Users\VISHALI\Desktop\Realtime-Action-Recognition-master\src/..\utils\lib_openpose.py", line 21, in from tf_pose.networks import get_graph_path, model_wh ModuleNotFoundError: No module named 'tf_pose'

You need to put the code of tf-pose-estimation into the "src\github". Have a look at the "lib_openpose.py". or Try to put the code"from tf_pose import..." behind the code "sys.append...."

DukeZacharia commented 1 year ago

i tried it out by using pip and it worked for me well.

pip install tf-pose