-
Notifications
You must be signed in to change notification settings - Fork 94
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
cudnn error when running zed api alongside a pytorch model #154
Comments
I met exact same problem with same environment, except for Ubuntu 18 instead of Windows, my guess would be something like CUDA context problem. |
I have the same problem: torch and zed python api work perfectly separately, but running them in the same script produces this error Has anyone been able to find a workaround? |
did you manage to figure it out? |
No, unfortunately. I have started to use the camera without ZED SDK: |
Were you able to extract the point cloud and depth map too? |
I am getting the same issue, unable to run ZED SDK and PyTorch at the same time, both work fine separately. |
I am seeing an identical error to @sheldoncoup . I'm using an AGX. I've tried multiple torch versions. Spent a full day fighting this so far. Seems to happen after zed.open() is called, |
It may be a CUDA context issue, similar to this #35 Especially if the zed sample and PyTorch program are working fine independently. You need to either share the same context or split the program into 2 different threads with one for the ZED and one for PyTorch, each one having its own CUDA context (similar to the zed-tensorflow repo). |
@adujardin Thanks for the suggestion. Moving the camera capture to a background thread seems to have worked |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days |
Hi,
I use ZED2 camera and zed api in python and have a pytorch model running in the same script. But I get the following cuDNN error.
However, when running them seperately, at the same time in different scripts, no error pops up! (Both on an nvidia 2070 super GPU)
I need to run both of the codes in the same script since it's a sequence (I get the images and disparities from the zed api and then run some deep learning models on them).
CUDA version : 10.2
cudnn version : 8.0.3.33
pytorch version: 1.6.0
ZED SDK version: 3.2.2
The text was updated successfully, but these errors were encountered: