# CUDA, PyTorch and YOLO Integration problem

**URL:** <https://forum.opencv.org/t/cuda-pytorch-and-yolo-integration-problem/18082>\
**Category:** Python\
**Tags:** cuda, pytorch\
**Created:** [June 25, 2024, 8:32am UTC](https://forum.opencv.org/t/cuda-pytorch-and-yolo-integration-problem/18082 "2024-06-25T08:32:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akdenzi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/akdenzi/32/8957_2.png) [@akdenzi](https://forum.opencv.org/u/akdenzi)\
**Post date:** [June 25, 2024, 8:32am UTC](https://forum.opencv.org/t/cuda-pytorch-and-yolo-integration-problem/18082/1 "2024-06-25T08:32:37Z")

</div>

* * *

Hello, as I mentioned yesterday, I installed Python 3.11 and then recompiled OpenCV with CUDA. I was working on YOLO with CUDA as well, but now when I run PyTorch 12.4 with CUDA, I’m getting this error for YOLO: “could not load symbol cudnngetlibconfig. error code 127.” Later, when I tried running my YOLO code with another PyTorch version, I got this error instead: “OSError: [WinError 127] The specified procedure could not be found. Error loading ‘C:\Users\MikailAkdeniz\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\lib\cufftw64\_11.dll’ or one of its dependencies.” What should I do? Can you help?

---

<div class="post-metadata">

**Author:** ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)\
**Post date:** [June 25, 2024, 9:09am UTC](https://forum.opencv.org/t/cuda-pytorch-and-yolo-integration-problem/18082/2 "2024-06-25T09:09:30Z")

</div>

Delete the OpenCV bindings. If you still have an issue with pytorch this is a pytorch not OpenCV issue.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 25, 2024, 1:21pm UTC](https://forum.opencv.org/t/cuda-pytorch-and-yolo-integration-problem/18082/3 "2024-06-25T13:21:07Z")

</div>

[crosspost](https://meta.stackoverflow.com/a/266159):

> <https://stackoverflow.com/questions/78666256/cuda-pytorch-and-yolo-integration-problem>
