-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
OOM v1.7.0 with any example (demo, example with multi GPU...) #1864
Comments
I think it's the same as reported here: #1861 although I am able to run it without face and hands. |
Version 1.6.0 is proved that it works for this config? @Witek- @gineshidalgo99 |
I have a 6GB GPU and I can run the precompiled OpenPose demo with hands and face |
I always have those issues when I'm compiling the library (v1.6.0) (particularly Caffe): I was investigating, that's came to this: BVLC/caffe#6970 And when you didnt expect more problems... yes... Complete hell, sorry for the problems and thank you for the help. |
Another tip, I just tried to compile without USE_CUDNN. It's working consuming 5GB without face and hands. But when I run the script: https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/examples/tutorial_api_python/05_keypoints_from_images_multi_gpu.py Error: Segmentation fault (core dumped) (when it does: |
Windows issue - cuDNN not being usedThis is my Caffe repo to compile in Windows: https://github.com/gineshidalgo99/caffeCompilerForWindowsAndCUDA It is based on the Windows Caffe one. I have not been able to compile cuDNN for Windows, it keeps giving me this error:
If anybody is able to get it to work without giving the CUDNN_STATUS_NOT_INITIALIZED error, I'd very highly appreciate some hints of the exact CUDA/cuDNN version and/or instructions to get it to work! :) PS: It must use CUDA >= 11 to be compatible with Nvidia 30XX cards Please, continue this Ubuntu discursion in #1845, to centralize messages and hopefully focus efforts to fix the issue. Thanks! Ubuntu issue - cuDNN using too much memoryFor Ubuntu users with memory issues, v1.7.0 was modified to allow cuDNN 8, which was a pain. I am not an expert, so I am sure there must be a better way to run the cuDNN convolutions using less memory, but I am not an expert on it. I am very open to suggestions about the cudnn_conv implementation to minimize memory: |
I actually found that, with cnDNN, not just more GPU memory is consumed, but also, in most cases, the performance degrades (see attached). Perhaps it is better, for the time being, to change the default cmake setting not to use cuDNN. By the way, with the newer version of openpose, I found that RTX 3090 can process images much faster than Titan RTX. |
Hi, I've had some memory problems running the latest version of OpenPose from source on Ubuntu with cuDNN as well, and found that it requires less memory running without cuDNN. If this is a known issue, maybe it could be helpful for others to add a note about this in the prerequisites or similar? @gineshidalgo99 |
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. |
When my pc is ubuntu20, cuda11.4, run openpose1.7, used 6Gb GPU memory too. But in ubuntu16, cuda10.1, the gpu memory used is 3Gb. My GPU is GTX1080. |
@gineshidalgo99 Thinking to give it a try to minimize the memory consumption. Any suspicions where the memory inefficiencies derive from? |
@orestis-z try the moncio sugestion: dont use cudnn in flags of cmake-gui, the memory usage is 3 Gb (with cudnn is 7.6gb!) in my nvidia 3070, cuda 11.4, cudnn 8.2.4. Command: build/examples/openpose/openpose.bin --video examples/media/video.avi --net_resolution "-512x256" --logging_level 0 --disable_multi_thread --disable_blending |
@italosalgado14, interesting, what OS / OS version are you running on? My suggestion was to fix the cuDNN issue, not to leave it out. |
gineshidalgo99 please find here a working caffe patch (for inference only): Diff here: Caffe compilation similar to:
You need to compile openpose by specifying your custom caffe build similar to this:
|
Hey! Try to use cudnn 7.5.1, and still use cuda 11.0.3, i.e. not to change your cuda. cudnn 7.5.1 download url: https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v7.5.1/prod/10.1_20190418/cudnn-10.1-linux-x64-v7.5.1.10.tgz after I fixed this problem, I run openpose.bin to test, but unfortunately openpose.bin doesn't use gpu(GPU-Util is 0%), it actually use cpu, and the process is really slow. (two days later)good news: I successfully run openpose.bin with gpu. Try to use cudnn [cuDNN v8.4.1 (May 27th, 2022), for CUDA 11.x] |
Hey! It seems that using cudnn 7.5.1 can work ,despite using cuda 11. (two days later)good news: I successfully run openpose.bin with gpu. Try to use cudnn [cuDNN v8.4.1 (May 27th, 2022), for CUDA 11.x] |
Hi, can you explain how you solved the problem with the new version of cudnn? you just installed the new one and it worked or you needed to modify cmake or somthing else? thx |
Issue Summary
The precompiled OpenPoseDemo v1.7.0 with hands and face disabled will crash on my 11GB GPU due to lack of memory.
Executed Command (if any)
./build/openpose/examples/openpose.bin --model_folder models/ --video examples/media/video.avi
The same if I try to run a bundle of images with the script: https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/examples/tutorial_api_python/05_keypoints_from_images_multi_gpu.py
OpenPose Output (if any)
Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting camera index... Detected and opened camera 0.
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
F0201 02:28:29.051620 17604 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0) out of memory
*** Check failure stack trace: ***
Errors (if any)
Check failed: error == cudaSuccess (2 vs. 0) out of memory
Type of Issue
Execution error
Your System Configuration:
Operationg system: Ubuntu 20.04
Graphics card: Nvidia RTX 2080 11GB Driver Version: 450.10
CUDA 11.0.3, CuDNN: 8.0.5
Caffe, OpenCV: Default from OpenPose
OpenPose version 1.7.0 (GPU release), from:
https://github.com/CMU-Perceptual-Computing-Lab/openpose/releases/tag/v1.7.0
The text was updated successfully, but these errors were encountered: