Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: emplaceAndPop(): incompatible function arguments. #1903

Closed
Ishihara-Masabumi opened this issue Mar 26, 2021 · 4 comments
Closed

Comments

@Ishihara-Masabumi
Copy link

Ishihara-Masabumi commented Mar 26, 2021

I have a error in executing using the following command.

python3 run_video.py --path='/home/****/openpose/build/examples/tutorial_api_python/' --video='youtube_golf2.mp4' --plt_graph=True

Then, the following error message appeared.

Starting OpenPose Python Wrapper...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
/home/****/openpose/build/examples/tutorial_api_python/
/home/****/openpose/build/examples/tutorial_api_python/movies/youtube_golf2.mp4
APP_LOG, INFO:	OPEN: youtube_golf2.mp4
Traceback (most recent call last):
  File "run_video.py", line 250, in <module>
    cog_color=args.cog_color, start_frame=args.start_frame, debug=args.debug)
  File "run_video.py", line 117, in run_video
    opWrapper.emplaceAndPop([datum])
TypeError: emplaceAndPop(): incompatible function arguments. The following argument types are supported:
    1. (self: openpose.pyopenpose.WrapperPython, arg0: std::vector<std::shared_ptr<op::Datum>, std::allocator<std::shared_ptr<op::Datum> > >) -> bool

Invoked with: <openpose.pyopenpose.WrapperPython object at 0x7faa696d8fb8>, [<openpose.pyopenpose.Datum object at 0x7fa9f6e85a40>]

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.
F0327 07:02:59.669406 17840 cudnn_conv_layer.cpp:53] Check failed: status == CUDNN_STATUS_SUCCESS (1 vs. 0)  CUDNN_STATUS_NOT_INITIALIZED

I don't know what the cause is and how to fix it.
Please tell me the solution if you know.

Environment is as follows:

Ubuntu18.04
Python3.6.9

Build commands are as follows:

cmake -DBUILD_PYTHON=true ..
make -j`nproc
@ravijo
Copy link
Contributor

ravijo commented Mar 30, 2021

@Ishihara-Masabumi

From the error message, I can see these two lines:

  File "run_video.py", line 117, in run_video
    opWrapper.emplaceAndPop([datum])

Assuming you are using OpenPose v1.7.0, you need to edit your file run_video.py as shown below:

Before

opWrapper.emplaceAndPop([datum])

Now

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

Please feel free to look at an example provided here.

@ravijo
Copy link
Contributor

ravijo commented Apr 1, 2021

@Ishihara-Masabumi

Just for reference, I am writing this comment. The above problem TypeError: emplaceAndPop(): incompatible function arguments was discussed here as well.

@Ishihara-Masabumi
Copy link
Author

Hi ravijo,

Thank you very much for fixing this error.
I tried to run the same command line after rewriting run_video.py as you suggested.
The error disappeared.

But, another error happened.

Starting OpenPose Python Wrapper...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
/home/****/openpose/build/examples/tutorial_api_python/
/home/****/openpose/build/examples/tutorial_api_python/movies/youtube_golf2.mp4
APP_LOG, INFO:	OPEN: youtube_golf2.mp4
F0401 14:44:27.152856 17275 cudnn_conv_layer.cpp:53] Check failed: status == CUDNN_STATUS_SUCCESS (4 vs. 0)  CUDNN_STATUS_INTERNAL_ERROR

The error above means out of GPU memory.
So I will try this on another machine.

Best Regards,

@stale
Copy link

stale bot commented Jun 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale/old label Jun 11, 2021
@stale stale bot closed this as completed Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants