ubuntu16.04 stgcn运行报错Did you forget to `#include <pybind11/stl.h>`? Or <pybind11/complex.h>, <pybind

网友投稿 1368 2022-08-23

ubuntu16.04 stgcn运行报错Did you forget to `#include <pybind11/stl.h>`? Or <pybind11/complex.h>, <pybind

ubuntu16.04 stgcn运行报错Did you forget to `#include <pybind11/stl.h>`? Or <pybind11/complex.h>, <pybind

今天openpose完以后,运行stgcn的demo程序报错,运行的命令如下:

python main.py demo_offline --video ./resource/media/clean_and_jerk.mp4 --openpose /media/data/projects/A15697/openpose-master/build

然后出现如下的错误:

Starting OpenPose Python Wrapper...Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.Traceback (most recent call last): File "main.py", line 35, in p.start() File "/media/data/projects/A15697/st-gcn-master/processor/demo_realtime.py", line 82, in start opWrapper.emplaceAndPop([datum])TypeError: emplaceAndPop(): incompatible function arguments. The following argument types are supported: 1. (self: openpose.pyopenpose.WrapperPython, arg0: std::vector, std::allocator > >) -> boolInvoked with: , []Did you forget to `#include `? Or ,, , etc. Some automaticconversions are optional and require extra headers to be includedwhen compiling your pybind11 module.

根据报错信息可以看出是82行出现了问题。

解决方法

opWrapper.emplaceAndPop([datum])

换成

opWrapper.emplaceAndPop(op.VectorDatum([datum]))

就行了。

参考文献

[1].question about run python main.py demo_offline. https://issueexplorer.com/issue/open-mmlab/mmskeleton/384

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:iOS指纹识别登录流程及实现(appleid指纹登录)
下一篇:TypeError Expected int32 got tensorflow python ops variables Variable object at 0x117ea3a10 of t
相关文章

 发表评论

暂时没有评论,来抢沙发吧~