Community
cancel
Showing results for 
Search instead for 
Did you mean: 
1,837 Views

New 3D human pose estimation demo

Jump to solution

As pointed out in the release notes of the latest version of OpenVINO (2020.1), several new demos were added, including a "3D human pose estimation" demo. Such demo is located at /opt/intel/openvino_2020.1.023/deployment_tools/open_model_zoo/demos/python_demos/human_pose_estimation_3d_demo

When I try to execute the following command:

python3 human_pose_estimation_3d_demo.py -h

I get the following error:

Traceback (most recent call last):
  File "human_pose_estimation_3d_demo.py", line 25, in <module>
    from modules.parse_poses import parse_poses
  File "/opt/intel/openvino_2020.1.023/deployment_tools/open_model_zoo/demos/python_demos/human_pose_estimation_3d_demo/modules/parse_poses.py", line 18, in <module>
    from pose_extractor import extract_poses
ImportError: cannot import name 'extract_poses'

It seems as though a Python module of some sort is missing. How do I solve that?

0 Kudos
1 Solution
JesusE_Intel
Moderator
1,837 Views

Hi Francesco,

You will need to build the Native Python Extension module as stated in the Prerequisites. To Build the extension modules add -DENABLE_PYTHON=ON to the cmake command in the build script.

(cd "$build_dir" && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON "${extra_cmake_opts[@]}" "$DEMOS_PATH")

The build script is located in the /opt/intel/openvino/inference_engine/demos directory. Once you run the script you will need to export the PYTHONPATH as follows:

export PYTHONPATH="$PYTHONPATH:<bin_dir>/lib"

All the detailed steps can be found here:

https://github.com/opencv/open_model_zoo/blob/master/demos/README.md#build-the-demo-applications

Hope this helps!

 

Regards,

Jesus

View solution in original post

5 Replies
JesusE_Intel
Moderator
1,838 Views

Hi Francesco,

You will need to build the Native Python Extension module as stated in the Prerequisites. To Build the extension modules add -DENABLE_PYTHON=ON to the cmake command in the build script.

(cd "$build_dir" && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON "${extra_cmake_opts[@]}" "$DEMOS_PATH")

The build script is located in the /opt/intel/openvino/inference_engine/demos directory. Once you run the script you will need to export the PYTHONPATH as follows:

export PYTHONPATH="$PYTHONPATH:<bin_dir>/lib"

All the detailed steps can be found here:

https://github.com/opencv/open_model_zoo/blob/master/demos/README.md#build-the-demo-applications

Hope this helps!

 

Regards,

Jesus

View solution in original post

1,837 Views

Thank you very much Jesus!

azmat
Beginner
1,837 Views

Where exactly is the pre-trained, converted model for this demo?  All I can find is the 2D pose estimation model `human-pose-estimation-0001`.  Thanks.

JesusE_Intel
Moderator
1,837 Views

Hi Azmat,

You can download the PyTorch model with the Model Downloader tool using the following command:

python3 /opt/intel/openvino/deployment_tools/tools/model_downloader/downloader.py --name human-pose-estimation-3d-0001

Take a look at this thread for additional information on converting the PyTorch model to IR format.

Regards,

Jesus

1,837 Views

Hi jesus !

I have build the Native Python Extension module as stated in the Prerequisites. still the same issue persists

from pose_extractor import extract_poses
ImportError: cannot import name 'extract_poses'

 I have checked the files in the pose_extracter there are no python files. I can find a bunch of cpp files only even after the build was successful.

 

Reply