Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6392 Discussions

Have Build the Human Pose 3D Demo , Not able to debug or run the demos on Windows in VS 2019

Chiu__Hsien_Hsiang
1,880 Views

Hi,

Have followed the Open Model Zoo Demos link page to built Demos Projects.


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


To Build the Demos Applications on Microsoft Windows* OS

PC: OS Windows 10

Python 3.6.5

 

Have created Demo projects in the

C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build

In this directory have both intel64 and python_demos folders. Please see attached screen pictures.

 

Inside python_demos folder has created only 2 demo projects.

But there are around 22 demo (python) projects in the C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\open_model_zoo\demos\python_demos

Question 1:
Why only have 2 demo projects created in the python_demo folder?

 

In the human_pose_estimation_3d_demo Demo project / pose_extractor folder.
and Run the pose_extractor project with Visual Studio 2019

VS2019 Open the human_pose_estimation_3d_demo project,

Click the Build project.
But has errors.


Error 1. The Error lst has error LNK1104 cannot open file 'python36_d.lib'
Error 2. The References has link errors

Question 2:
Would you please tell in details steps,
How & Where should additionally set up the PYTHONPATH environment variable?
set PYTHONPATH=%PYTHONPATH%;<bin_dir>

and
I have edited Visual Studio Human Post 3D project's configured Debugging environment settings.

Have enter

PATH=C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\inference_engine\bin\intel64\Debug;C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\opencv\bin;%PATH%

Should the "set PYTHONPATH...."  also edit in this Environment field?
set PYTHONPATH=%PYTHONPATH%;C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build

or

where need to be add the additionally set up the PYTHONPATH environment variable?
set PYTHONPATH=%PYTHONPATH%;<bin_dir>

Could you please tell in details steps, How & where to edit to solve error?

 

For the 2nd Reference error:
When click the Reference, Search the missing solution, but has no found the file.

Question 3: How to solve the missing reference error?

 

Please review attached screen pictures for reference

And

PC: OS Windows 10

Python 3.6.5

 


Does anyone know How to solve the project's build error "cannot open file python36_dlib"?
and
How to correct the missing reference solution error?

 

 

 

 

0 Kudos
1 Solution
Adli
Moderator
1,846 Views

Hi Hsien,

 

Thank you for reaching out to us.

 

Question 1:

Those demo applications require native Python extension modules to be built before you can run them. For more information, you can refer to the following links.

3D Human Estimation Pose:

https://github.com/openvinotoolkit/open_model_zoo/blob/master/demos/python_demos/human_pose_estimation_3d_demo/README.md

 

Speech Recognition Demo:

https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos/python_demos/speech_recognition_demo

 

Question 2:

  1. Build the demo solution with Release Configuration in Visual Studio.
  2. Go to 'C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release' directory.
  3. Verify that the following files are available in the 'Release' folder:
    pose_extractor.pyd
    pose_extractor.lib
    pose_extractor.exp
  4. Open Command Prompt, set the OpenVINO environment by running 'setupvars.bat'.
  5. Go to the 'human_pose_estimation_3d_demo' folder by running the following command:
    cd "C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\open_model_zoo\demos\python_demos\human_pose_estimation_3d_demo"
  6.  Enter the following command:
    set PYTHONPATH=%PYTHONPATH%;C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release
  7. Run the demo by running the following example command:
    python human_pose_estimation_3d_demo.py -h

 

Regards,

Adli

 

View solution in original post

0 Kudos
5 Replies
Adli
Moderator
1,847 Views

Hi Hsien,

 

Thank you for reaching out to us.

 

Question 1:

Those demo applications require native Python extension modules to be built before you can run them. For more information, you can refer to the following links.

3D Human Estimation Pose:

https://github.com/openvinotoolkit/open_model_zoo/blob/master/demos/python_demos/human_pose_estimation_3d_demo/README.md

 

Speech Recognition Demo:

https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos/python_demos/speech_recognition_demo

 

Question 2:

  1. Build the demo solution with Release Configuration in Visual Studio.
  2. Go to 'C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release' directory.
  3. Verify that the following files are available in the 'Release' folder:
    pose_extractor.pyd
    pose_extractor.lib
    pose_extractor.exp
  4. Open Command Prompt, set the OpenVINO environment by running 'setupvars.bat'.
  5. Go to the 'human_pose_estimation_3d_demo' folder by running the following command:
    cd "C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\open_model_zoo\demos\python_demos\human_pose_estimation_3d_demo"
  6.  Enter the following command:
    set PYTHONPATH=%PYTHONPATH%;C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release
  7. Run the demo by running the following example command:
    python human_pose_estimation_3d_demo.py -h

 

Regards,

Adli

 

0 Kudos
Chiu__Hsien_Hsiang
1,830 Views

Hi Adli,

Thanks for reply message.

I have followed the guiding link page, and re-build demo projects by using the (Build Script) build_demos_msvc.bat

in C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\inference_engine\demos

 

Have edit the (build script) 

and add command in cmake --build section

cd "C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release" && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON "C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\open_model_zoo\demos"

 

Once Run the Build script, it wills tart build demo project to the \intel64\release

 

The human_pose_estimation_3d-demo project will bed created at 

C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release\python_demos\human_pose_estimation_3d_demo\pose_extractor

I have try use VS2019 to open the pose_extractor.vcxproj

But there are 2 errors.

Error 1: missing reference link. Reference could not be resolved.

and

When Build compile has critical error: 

Error LNK1104 cannot open file 'python36_d.lib'

pose_extractor C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release\python_demos\human_pose_estimation_3d_demo\pose_extractor\LINK 1

and

27 Warning.

Please see attached screen picture for reference.

 

Have checked The System Environment Path, have add the CMAKE and Python path.

During the (Build Script) build-demos-mscv.bat, the CMD shows able to found the python path ...etc.

After using (Build Script) to build the demo project at \intel64\Release,  

and also the VS project

Set the VS project's property -> debug -> configuration environment path

PATH=C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\inference_engine\bin\intel64\Debug;C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\opencv\bin;%PATH%

 

Using VS2019 open the project, but when Run the project,  have 2 errors, unable to Build.

 

Project can not be build by VS2019,

and

Doesn't have these files,
pose_extractor.pyd
pose_extractor.lib,
and pose_extractor.exp,
in C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release

 

Not able to continue to follow the step 4,5,6, and 7 to Run the demo python human_pose_estimation_3d_demo.py -h

 

Attached the (Build Script) build-demos-msvc.bat in TEXT file,

CMD windows shows (when build projects, build script can found the python path), 

and

VS2019 project error screen picture (when using VS, not able to found python) for reference.

 

 

Is the command in cmake --build section command that added, has errors in build-demos-mscv.bat command?

 

How to have solve the VS project's 2 errors, so can Build compile the project demo and have generate the 3 files in the \Intel\Release folder? (pose_extractor.pyd, pose_extractor.lib, and pose_extractor.exp).

 

 

 

 

0 Kudos
Chiu__Hsien_Hsiang
1,819 Views

Hi Adli,

Thank you for point out to verify 3 files in \Inte64|Release

After re-build the demo project,  can run the human_pose_estimation_3d_demo project with Video file or Video Camera..

Here are summary the details solution commands steps  to run the Demo: human_pose_estimation_3d_demo

The solution steps:

1. Open CMd as Admin,

cd C:\Program Files (x86)\IntelSWTools\openvino\inference_engine\demos
build_demos_msvc.bat -DENABLE_PYTHON=YES

and then 

cd "C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\open_model_zoo\demos\python_demos\human_pose_estimation_3d_demo"

set PYTHONPATH=%PYTHONPATH%;C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release

python human_pose_estimation_3d_demo.py -h

 

To Create human-pose-estimation-3d-0001.xml

Need to convert to ONNX to the Right IR

cd C:\Program Files (x86)\IntelSWTools\openvino_2021.1.110\deployment_tools\open_model_zoo\tools\downloader>

python converter.py --name human-pose-estimation-3d-0001

 

To run the Dem

python human_pose_estimation_3d_demo.py -m human-pose-estimation-3d-0001.xml -i (Video File or  Video Camera)

 

Question:

Can we have using the demo project to compile the human_pose_estimation_3d_demo project by ourselves?

I have try to use Visual Studio 2019 to open the Build Demo project

C:\Users\User\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release\python_demos\human_pose_estimation_3d_demo\pose_extractor

pose_extractor.vcxproj

I have try to open the project and Run, but it has errors that mentioned in my previous message.

Error 1: missing reference link. Reference could not be resolved.

and

Error 2: When Build compile has 

Error LNK1104 cannot open file 'python36_d.lib'

 

 

 

 

 

0 Kudos
Adli
Moderator
1,756 Views

Hi Hsien,

 

You can build the 'pose_extractor' with Release configurations. In order to build the module in Debug configurations, 'Python Native Development tools' installation in Visual Studio is required. In the Python Development workload, select the box on the right for Python native development tools. Please refer to the following link:

https://docs.microsoft.com/en-us/visualstudio/python/installing-python-support-in-visual-studio?view=vs-2019

 

To enable Mixed-mode Debugging for Python in Visual Studio, please refer to the following link:

https://docs.microsoft.com/en-us/visualstudio/python/debugging-mixed-mode-c-cpp-python-in-visual-studio?view=vs-2019

 

As additional information, the following link here will be helpful for you to solve your issue.

https://www.intel.com/content/www/us/en/support/articles/000055251/boards-and-kits/neural-compute-sticks.html

 

Regards,

Adli


0 Kudos
Adli
Moderator
1,730 Views

Hi Hsien,


This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.


Regards,

Adli


0 Kudos
Reply