Python

Pose Estimation Tutorial #1 – Install and Run OpenPose| OpenCV Python | Computer Vision 2020



Please watch: “How to get a JOB or FREELANCE in Computer Vision with YOLOR PRO – [COURSE PRE-LAUNCH]”
–~–
Watch the 2021 Updated Computer Vision Tutorial Here: where you can run Pose Estimation on CPU at 30FPS!
We implement it using OpenCV and Python
Pose Estimation Tutorial #1 – Installation & Execution of Pose Estimation
►FREE YOLO GIFT –
⭐6-in-1 AI Mega Course with…

Similar Posts

20 thoughts on “Pose Estimation Tutorial #1 – Install and Run OpenPose| OpenCV Python | Computer Vision 2020
  1. ====================================

    Alternative Repos (If original repo is not working)

    https://github.com/gsethi2409/tf-pose-estimation

    https://github.com/tryagainconcepts/tf-pose-estimation

    https://github.com/gsethi2409/tf-pose-estimation

    -Method 1-

    If you get the above error in the next few lectures then

    Go to ./tf-pose-estimation/tf-pose/estimator.py and commenting out import tensorflow.contrib.tensorrt as trt .

    -Method 2 (Preferred Method)-

    Other wise check out the older revision of the repo.

    tf-pose-estimation -> "git checkout 60c0ebfee71f8156a2538124b030b8e3b302c806 ." to remove "trt" dependence.

    Because In latest code. They have implemented tensorrt which supports the latest version of tensorflow

    ====================================

  2. After cd tf_pose/pafprocess

    Anyone getting the 'Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases." error

    swig -python -c++ pafprocess.i && python3 setup.py build_ext –inplace < this will cause you error
    use 'swig -python -c++ pafprocess.i && python setup.py build_ext –inplace' instead

  3. Keep getting this mess:
    Traceback (most recent call last):

    File "run_webcam.py", line 51, in <module>

    logger.info('cam image=%dx%d' % (image.shape[1], image.shape[0]))

    AttributeError: 'NoneType' object has no attribute 'shape'

  4. This would be a great tutorial if we could fix this problem with tensorflow. Many people below, including me, get a tensorflow module not found error when running the model. Is there any sure workaround for this?

    Here's the problem:

    1. You cannot install tensorflow 1.x on Python 3.8

    2. Tensorflow 2.x (latest version) does not contain some of the functions because some of the .py files are written for tensorflow 1.x

    Basically, you need to use Python 3.8 and tensorflow 1.x to run properly but there seems to be no way to do this.

    How to solve? Would be very nice to know my friend.

  5. I would really appreciate if someone can help me with this error:
    Traceback (most recent call last):

    File "run_webcam.py", line 8, in <module>

    from tf_pose.estimator import TfPoseEstimator

    File "C:UsersrastogiDesktopopenposetf-pose-estimationtf-pose-estimationtf_pose__init__.py", line 5, in <module>

    from tf_pose.runner import infer, Estimator, get_estimator

    File "C:UsersrastogiDesktopopenposetf-pose-estimationtf-pose-estimationtf_poserunner.py", line 8, in <module>

    from tf_pose import eval

    File "C:UsersrastogiDesktopopenposetf-pose-estimationtf-pose-estimationtf_poseeval.py", line 13, in <module>

    from tf_pose.estimator import TfPoseEstimator

    File "C:UsersrastogiDesktopopenposetf-pose-estimationtf-pose-estimationtf_poseestimator.py", line 14, in <module>

    import tensorflow.contrib.tensorrt as trt

    ModuleNotFoundError: No module named 'tensorflow.contrib'

    I ran this code: python run_webcam.py –camera video.mp4 and then this error came up.

  6. Hi, Thank you for your teaching. However, it does not work at all. Please see the below, the error code.
    Please help me. If you can work for success, I would like to take your course. Thank you.

    C:UsersuserDownloadstf-pose-estimation>python run_webcam.py –camera video1.mp4

    C:Usersuseranaconda3libsite-packagestensorflowpythonframeworkdtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

    _np_qint8 = np.dtype([("qint8", np.int8, 1)])

    C:Usersuseranaconda3libsite-packagestensorflowpythonframeworkdtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

    _np_quint8 = np.dtype([("quint8", np.uint8, 1)])

    C:Usersuseranaconda3libsite-packagestensorflowpythonframeworkdtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

    _np_qint16 = np.dtype([("qint16", np.int16, 1)])

    C:Usersuseranaconda3libsite-packagestensorflowpythonframeworkdtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

    _np_quint16 = np.dtype([("quint16", np.uint16, 1)])

    C:Usersuseranaconda3libsite-packagestensorflowpythonframeworkdtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

    _np_qint32 = np.dtype([("qint32", np.int32, 1)])

    C:Usersuseranaconda3libsite-packagestensorflowpythonframeworkdtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

    np_resource = np.dtype([("resource", np.ubyte, 1)])

    Traceback (most recent call last):

    File "run_webcam.py", line 8, in <module>

    from tf_pose.estimator import TfPoseEstimator

    File "C:UsersuserDownloadstf-pose-estimationtf_pose__init__.py", line 5, in <module>

    from tf_pose.runner import infer, Estimator, get_estimator

    File "C:UsersuserDownloadstf-pose-estimationtf_poserunner.py", line 7, in <module>

    from tf_pose import common

    File "C:UsersuserDownloadstf-pose-estimationtf_posecommon.py", line 3, in <module>

    import tensorflow as tf

    File "C:Usersuseranaconda3libsite-packagestensorflow__init__.py", line 28, in <module>

    from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

    File "C:Usersuseranaconda3libsite-packagestensorflowpython__init__.py", line 83, in <module>

    from tensorflow.python import keras

    File "C:Usersuseranaconda3libsite-packagestensorflowpythonkeras__init__.py", line 26, in <module>

    from tensorflow.python.keras import activations

    File "C:Usersuseranaconda3libsite-packagestensorflowpythonkerasactivations.py", line 24, in <module>

    from tensorflow.python.keras.utils.generic_utils import deserialize_keras_object

    File "C:Usersuseranaconda3libsite-packagestensorflowpythonkerasutils__init__.py", line 39, in <module>

    from tensorflow.python.keras.utils.multi_gpu_utils import multi_gpu_model

    File "C:Usersuseranaconda3libsite-packagestensorflowpythonkerasutilsmulti_gpu_utils.py", line 22, in <module>

    from tensorflow.python.keras.engine.training import Model

    File "C:Usersuseranaconda3libsite-packagestensorflowpythonkerasenginetraining.py", line 40, in <module>

    from tensorflow.python.keras.engine import network

    File "C:Usersuseranaconda3libsite-packagestensorflowpythonkerasenginenetwork.py", line 39, in <module>

    from tensorflow.python.keras import saving

    File "C:Usersuseranaconda3libsite-packagestensorflowpythonkerassaving__init__.py", line 33, in <module>

    from tensorflow.python.keras.saving.saved_model import export_saved_model

    ImportError: cannot import name 'export_saved_model' from 'tensorflow.python.keras.saving.saved_model' (C:Usersuseranaconda3libsite-packagestensorflowpythonkerassavingsaved_model__init__.py)

  7. Could you help me resolve this error ?

    Traceback (most recent call last):

    File "run_webcam.py", line 8, in <module>

    from tf_pose.estimator import TfPoseEstimator

    File "C:UsersUSERDesktopopenposetf-pose-estimationtf_pose__init__.py", line 5, in <module>

    from tf_pose.runner import infer, Estimator, get_estimator

    File "C:UsersUSERDesktopopenposetf-pose-estimationtf_poserunner.py", line 7, in <module>

    from tf_pose import common

    File "C:UsersUSERDesktopopenposetf-pose-estimationtf_posecommon.py", line 3, in <module>

    import tensorflow as tf

    File "C:UsersUSERanaconda3libsite-packagestensorflow__init__.py", line 24, in <module>

    from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

    File "C:UsersUSERanaconda3libsite-packagestensorflowpython__init__.py", line 49, in <module>

    from tensorflow.python import pywrap_tensorflow

    File "C:UsersUSERanaconda3libsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>

    from tensorflow.python.pywrap_tensorflow_internal import *

    File "C:UsersUSERanaconda3libsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 114

    def TFE_ContextOptionsSetAsync(arg1, async):

    ^

    SyntaxError: invalid syntax

Leave a Reply

Your email address will not be published. Required fields are marked *