gsethi2409 / tf-pose-estimation

Hey! This is a clone of the tf-pose-estimation by Ildoo Kim modified to work with Tensorflow 2.0+!
Apache License 2.0
160 stars 117 forks source link

Errors running run_webcam.py #1

Closed Adilrn closed 4 years ago

Adilrn commented 4 years ago

I am experiencing difficulties running the run_webcam.py. This is the error I am getting, how could I resolve the issue? Traceback (most recent call last): File "run_webcam.py", line 8, in from tf_pose.estimator import TfPoseEstimator File "...\myWorkspace\tf-pose-estimation\tf_pose__init__.py", line 5, in from tf_pose.runner import infer, Estimator, get_estimator File "...\myWorkspace\tf-pose-estimation\tf_pose\runner.py", line 8, in from tf_pose import eval File "...\myWorkspace\tf-pose-estimation\tf_pose\eval.py", line 13, in from tf_pose.estimator import TfPoseEstimator File "...\myWorkspace\tf-pose-estimation\tf_pose\estimator.py", line 14, in from tensorflow.python.compiler.tensorrt import trt_convert as trt ImportError: cannot import name 'trt_convert' from 'tensorflow.python.compiler.tensorrt'

mohit9949 commented 4 years ago

I am experiencing difficulties running the run_webcam.py. This is the error I am getting, how could I resolve the issue? Traceback (most recent call last): File "run_webcam.py", line 8, in from tf_pose.estimator import TfPoseEstimator File "...\myWorkspace\tf-pose-estimation\tf_poseinit.py", line 5, in from tf_pose.runner import infer, Estimator, get_estimator File "...\myWorkspace\tf-pose-estimation\tf_pose\runner.py", line 8, in from tf_pose import eval File "...\myWorkspace\tf-pose-estimation\tf_pose\eval.py", line 13, in from tf_pose.estimator import TfPoseEstimator File "...\myWorkspace\tf-pose-estimation\tf_pose\estimator.py", line 14, in from tensorflow.python.compiler.tensorrt import trt_convert as trt ImportError: cannot import name 'trt_convert' from 'tensorflow.python.compiler.tensorrt'

Just for now comment out "from tensorflow.python.compiler.tensorrt import trt_convert as trt" in the estimator.py file and run the script.

Adilrn commented 4 years ago

Thank you!