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

AttributeError: module 'tensorflow' has no attribute 'nn' #92

Closed sch0722 closed 1 year ago

sch0722 commented 1 year ago

Traceback (most recent call last): File "s5_test.py", line 59, in <module> from utils.lib_openpose import SkeletonDetector File "C:\Users\Hank\Downloads\action1\src/..\utils\lib_openpose.py", line 21, in <module> from tf_pose.networks import get_graph_path, model_wh File "C:\Users\Hank\Downloads\action1\utils/../src/githubs/tf-pose-estimation\tf_pose\__init__.py", line 5, in <module> from tf_pose.runner import infer, Estimator, get_estimator File "C:\Users\Hank\Downloads\action1\utils/../src/githubs/tf-pose-estimation\tf_pose\runner.py", line 7, in <module> from tf_pose import common File "C:\Users\Hank\Downloads\action1\utils/../src/githubs/tf-pose-estimation\tf_pose\common.py", line 10, in <module> activation_fn = tf.nn.relu AttributeError: module 'tensorflow' has no attribute 'nn'

Above message is my error while I run s5_test.py. Did anyone get the same wrong?

datnguyen-tien204 commented 1 year ago

I used tensorflow==1.15.0 keras==2.1.6 I fixed this error