如何将pybind11添加到python文件?

2024-09-27 21:30:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在为我的项目使用openpose,我已经设置了所有需要的内容,但仍然存在这个pybind11错误

我正在运行python webcam.py命令

Starting OpenPose Python Wrapper...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
(540, 960, 3)
Wait for connection...
Client Info:  <socket.socket fd=2272, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 9000), raddr=('127.0.0.1', 61761)> ('127.0.0.1', 61761)
emplaceAndPop(): incompatible function arguments. The following argument types are supported:
    1. (self: pyopenpose.WrapperPython, arg0: std::vector<std::shared_ptr<op::Datum>,std::allocator<std::shared_ptr<op::Datum> > >) -> bool

Invoked with: <pyopenpose.WrapperPython object at 0x000001F2386CCA30>, [<pyopenpose.Datum object at 0x000001F2364714B0>]

Did you forget to `#include <pybind11/stl.h>`? Or <pybind11/complex.h>,
<pybind11/functional.h>, <pybind11/chrono.h>, etc. Some automatic
conversions are optional and require extra headers to be included
when compiling your pybind11 module.

请帮助我解决此错误,我正在使用windows


Tags: togpuobject错误socketareatshared

热门问题