FORTH-ModelBasedTracker / PyOpenPose

Python bindings for the Openpose library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyOpenPose has no attribute OpenPose

ahmed-bensaad opened this issue · comments

Hello,

I've got this error while trying to use PyOpenPose

Traceback (most recent call last): File "generate_train_data.py", line 76, in <module> run() File "generate_train_data.py", line 15, in run op = OP.OpenPose((656, 368), (368, 368), (1280, 720), "COCO", OPENPOSE_ROOT + os.sep + "models" + os.sep, 0, AttributeError: module 'PyOpenPose' has no attribute 'OpenPose'

I use CUDA 9 on Ubuntu 18 and openpose is well installed.

Have you built PyOpenPose correctly?
When you do a

import PyOpenPose as OP
dir(OP)

You should get something like:
['OpenPose', 'doc', 'file', 'name', 'package']

yeah I got this

import PyOpenPose as OP
dir(OP)
['doc', 'loader', 'name', 'package', 'path', 'spec']

Any progress on this building issue?

same problem.

Traceback (most recent call last): File "generate_train_data.py", line 77, in <module> run() Traceback (most recent call last): File "generate_train_data.py", line 77, in <module> run() File "generate_train_data.py", line 16, in run op = OP.OpenPose((656, 368), (368, 368), (1280, 720), "COCO", OPENPOSE_ROOT + os.sep + "models" + os.sep, 0, AttributeError: module 'PyOpenPose' has no attribute 'OpenPose'

Thank you for your concern in advance.

This might because you haven't build the python API of openpose. You can try to rebuild openpose with the python API option on by editing the CMakeLists.txt ('option(BUILD_PYTHON "Build OpenPose python." ON)').