Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1641 Discussions

human_pose_estimation on DevCloud

VladT
Beginner
1,476 Views

hi. I try to setup and run human_pose_estimation_demo on different instances to get the FPS on different hardware. when I try to run human_pose_estimation_demo.py file it have several iports which is not possible to install on IntelDevCloud for Edge

#!pip install monitors - installed
#!pip install images_capture - not possible to install.It probably file or lib
#!pip install pipelines - installed but not possible import AsyncPipeline

#!pip install performance_metrics # - not possible to install.

without that modules human_pose_estimation_demo.py not working. 

Could you please navigate me how to install or get that lib in to my intelDevCloud for Edge all the libs and dependency for that project.

0 Kudos
1 Solution
JesusE_Intel
Moderator
1,421 Views

Hi VladT,

 

Instead of installing the modules, copy the common directory to your working directory. You can add the following line to your Jupyter Notebook.

 

!mkdir common

!cp -r /opt/intel/openvino_2021/inference_engine/demos/common/python/* common/

 

Assuming you are copying the human_pose_estimation_demo.py to DevCloud, modify line #28 to match the parent directory level.

 

sys.path.append(str(Path(__file__).resolve().parents[0] / 'common'))

 

The above steps should fix your import issues. Please note that additional changes may be required to get the demo working on DevCloud. I recommend following the Migrate from Edge Device tutorial under Advanced tutorials on DevCloud for guidance.

 

Regards,

Jesus

 

 

View solution in original post

0 Kudos
5 Replies
Sahira_Intel
Moderator
1,442 Views

Hi VladT,


I apologize for the delay in my response! I am looking into this and will provide an answer shorty.


Sincerely,

Sahira


0 Kudos
JesusE_Intel
Moderator
1,422 Views

Hi VladT,

 

Instead of installing the modules, copy the common directory to your working directory. You can add the following line to your Jupyter Notebook.

 

!mkdir common

!cp -r /opt/intel/openvino_2021/inference_engine/demos/common/python/* common/

 

Assuming you are copying the human_pose_estimation_demo.py to DevCloud, modify line #28 to match the parent directory level.

 

sys.path.append(str(Path(__file__).resolve().parents[0] / 'common'))

 

The above steps should fix your import issues. Please note that additional changes may be required to get the demo working on DevCloud. I recommend following the Migrate from Edge Device tutorial under Advanced tutorials on DevCloud for guidance.

 

Regards,

Jesus

 

 

0 Kudos
VladT
Beginner
1,396 Views

hi Jesus.

Thanks a lot for that tip.

I try to do what you advise. Now I have the error on the next step.

File "human_pose_estimation_demo.py", line 32, in <module>
import models
File "/home/u71397/common/models/__init__.py", line 23, in <module>
from .open_pose import OpenPose
File "/home/u71397/common/models/open_pose.py", line 18, in <module>
import ngraph as ng
ModuleNotFoundError: No module named 'ngraph'

And again I can not install module - ngraph.

Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement ngraph
ERROR: No matching distribution found for ngraph

Is it possible to solve that issue? 

0 Kudos
JesusE_Intel
Moderator
1,390 Views

Hi VladT,

 

Are you using the latest human_pose_estimation_demo.py code? I am not seeing any import errors after using the steps mentioned above. On DevCloud, ensure you are using OpenVINO 2021.3 Kernel.

 

Regards,

Jesus

 

0 Kudos
JesusE_Intel
Moderator
1,356 Views

If you need any additional information, please submit a new question as this thread will no longer be monitored.


0 Kudos
Reply