Openpose: Windows, Python API tutorial execution error

Created on 8 Oct 2019  路  7Comments  路  Source: CMU-Perceptual-Computing-Lab/openpose

Hi
I successfully build and run C++ tutorial 01_body_from_image_default.exe
but python tutorial does not show anything.

after uncomment line70 in 01_body_from_image.py
it shows some error message

System Configuration

Windows 7, Visual Studio 2017, CMake 3.14.1
CUDA 10
Python 3.6.7 (Anaconda env)

Executed Command (if any)

..\openpose\build\examples\tutorial_api_python>python 01_body_from_image.py

OpenPose Output (if any)

Starting OpenPose Python Wrapper...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting
 at GPU 0.

Errors (if any)

uncomment line70 in 01_body_from_image.py
it shows

Starting OpenPose Python Wrapper...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting
 at GPU 0.
(): incompatible function arguments. The following argument types are supported:

    1. (self: pyopenpose.Datum, arg0: op::Matrix) -> None

Invoked with: <pyopenpose.Datum object at 0x0000000009F51FB8>, array([[[ 60, 129
, 102],
...

how do I fix this?
thanks

Python butypo fixeadded in newer versions

Most helpful comment

I had the same problem on Ubuntu 18.04, CUDA 10.1, Python 3.6.

I solved it by reverting to this commit 06d4ea6

git reset --hard 06d4ea6
cd build
make

All 7 comments

Hi I also got this problem. But a few days ago it still worked. Is there some upates leading to this problem or ?

Same here.

Same here on windows following the installation guide.

I had the same problem on Ubuntu 18.04, CUDA 10.1, Python 3.6.

I solved it by reverting to this commit 06d4ea6

git reset --hard 06d4ea6
cd build
make

Thanks It works for me.
I had the same problem on Ubuntu 16.04 with python3 and cpu-only mode.

Works for me as well

Fixed in the latest commit. Sorry for the troubles.

Was this page helpful?
0 / 5 - 0 ratings