Open Syed-Hamza-Ali opened 1 year ago
Hi Syed-Hamza-Ali-- did you ever find a solution to this issue? I've installed and re-installed openPose on two brand-new Ubuntu systems, and I'm having issues that seem closely related to yours.
But importantly, if I only detect the pose (default), then the demo runs perfectly and produces keypoint output files.
When I run with -hand or -face, however, I get the same runtime error as you:
Check failed: status == CUDNN_STATUS_SUCCESS (1 vs. 0) CUDNN_STATUS_NOT_INITIALIZED
When compiling, I'm also having the same compile warnings that you are seeing:
CUDNN_STATUS_VERSION_MISMATCH
(see below for more details on these warnings)
I'm working on an AWS EC2 instance, so I need to run with no rendering or display. I'm using these options when running:
-display 0 --render_pose 0 --write_json
My configuration: Ubuntu 20.04 CUDA 11.7. (11.7.99) cuDNN: ver. 8.5.0 cmake: 3.18.0
When I compiled, I had 11 or 12 of these warnings, all from various components of caffe:
21 | switch (status) {
| ^
In file included from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/util/device_alternate.hpp:40,
from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/common.hpp:19,
from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/blob.hpp:8,
from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/caffe.hpp:7,
from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/examples/cpp_classification/classification.cpp:1:
/home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’:
/home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:10:warning: enumeration value ‘CUDNN_STATUS_VERSION_MISMATCH’ not handled in switch [-Wswitch]
Nope, I couldn't find a solution, actually the error was related to the update of Google colab, I tried few things but couldn't solve it So, I simply switched to media pipe. I was able to achieve my goals through media pipe. I'll suggest you try this.
On Thu, 7 Dec 2023, 00:09 Ben R, @.***> wrote:
Hi Syed-Hamza-Ali-- did you ever find a solution to this issue? I've installed and re-installed openPose on two brand-new Ubuntu systems, and I'm having issues that seem closely related to yours.
But importantly, if I only detect the pose (default), then the demo runs perfectly and produces keypoint output files.
When I run with -hand or -face, however, I get the same runtime error as you: Check failed: status == CUDNN_STATUS_SUCCESS (1 vs. 0) CUDNN_STATUS_NOT_INITIALIZED
When compiling, I'm also having the same compile warnings that you are seeing: CUDNN_STATUS_VERSION_MISMATCH (see below for more details on these warnings)
I'm working on an AWS EC2 instance, so I need to run with no rendering or display. I'm using these options when running: -display 0 --render_pose 0 --write_json
My configuration: Ubuntu 20.04 CUDA 11.7. (11.7.99) cuDNN: ver. 8.5.0 cmake: 3.18.0
When I compiled, I had 11 or 12 of these warnings, all from various components of caffe:
21 | switch (status) { | ^ In file included from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/util/device_alternate.hpp:40, from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/common.hpp:19, from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/blob.hpp:8, from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/caffe.hpp:7, from /home/ubuntu/ben-dev/openpose/3rdparty/caffe/examples/cpp_classification/classification.cpp:1: /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’: /home/ubuntu/ben-dev/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:10:warning: enumeration value ‘CUDNN_STATUS_VERSION_MISMATCH’ not handled in switch [-Wswitch]
— Reply to this email directly, view it on GitHub https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/2225#issuecomment-1843531781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZRFM66AH77ELAGRFECBKXTYIC7GVAVCNFSM6AAAAAA2Y7EUTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTGUZTCNZYGE . You are receiving this because you authored the thread.Message ID: @.***>
I'm running Openpose on google colabe. I have Ubuntu 20. This is the code: !git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git import os from os.path import exists, join, basename, splitext
git_repo_url = 'https://github.com/CMU-Perceptual-Computing-Lab/openpose.git' project_name = splitext(basename(git_repo_url))[0] if exists(project_name):
see: https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949
install new CMake becaue of CUDA10
!wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz !tar xfz cmake-3.13.0-Linux-x86_64.tar.gz --strip-components=1 -C /usr/local
clone openpose
!git clone -q --depth 1 $git_repo_url !sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
install system dependencies
!apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev opencl-headers ocl-icd-opencl-dev libviennacl-dev
install python dependencies
!pip install -q youtube-dl
build openpose
!cd openpose && rm -rf build || true && mkdir build && cd build && cmake .. && make -j
nproc
from IPython.display import YouTubeVideo
it gives the warning during installation:
/content/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’: /content/openpose/3rdparty/caffe/include/caffe/util/cudnn.hpp:21:8: warning: enumeration value ‘CUDNN_STATUS_VERSION_MISMATCH’ not handled in switch [-Wswitch]
and then it gives the error: Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. F0709 17:47:40.614012 15906 cudnn_conv_layer.cpp:53] Check failed: status == CUDNN_STATUS_SUCCESS (1 vs. 0) CUDNN_STATUS_NOT_INITIALIZED Check failure stack trace: @ 0x7fd60197f1c3 google::LogMessage::Fail() @ 0x7fd60198425b google::LogMessage::SendToLog() @ 0x7fd60197eebf google::LogMessage::Flush() @ 0x7fd60197f6ef google::LogMessageFatal::~LogMessageFatal() @ 0x7fd6015a5115 caffe::CuDNNConvolutionLayer<>::LayerSetUp() @ 0x7fd601689e8d caffe::Net<>::Init() @ 0x7fd60168c3a5 caffe::Net<>::Net() @ 0x7fd602032c6c op::NetCaffe::initializationOnThread() @ 0x7fd601fde553 op::FaceExtractorCaffe::netInitializationOnThread() @ 0x7fd601fdfe75 op::FaceExtractorNet::initializationOnThread() @ 0x7fd602078887 op::Worker<>::initializationOnThreadNoException() @ 0x7fd6020789d8 op::SubThread<>::initializationOnThread() @ 0x7fd60207a1e8 op::Thread<>::initializationOnThread() @ 0x7fd60207d77c op::Thread<>::threadFunction() @ 0x7fd601cbdde4 (unknown) @ 0x7fd6019bd609 start_thread @ 0x7fd601af9133 clone