You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ pytyon darknet_images.py
Traceback (most recent call last):
File "", line 1, in
File "D:\YOLOv4-W11\darknet-2023.9.27\build\darknet\x64\darknet.py", line 265, in
lib = ct.CDLL("yolo_cpp_dll.dll", winmode = 0, mode = ct.RTLD_GLOBAL)
File "D:\AI\miniconda3\Lib\ctypes_init_.py", line 376, in init
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'D:\YOLOv4-W11\darknet-2023.9.27\build\darknet\x64\yolo_cpp_dll.dll' (or one of its dependencies). Try using the full path with constructor syntax.
** Focus **
Higher versions of ctype, enable dependency verification of importing DLLs. so, make sure the missing dependency DLLs exist under the x64 folder.
I use python 3.8. For me I had to change winmode=1, but after that it worked once I copied the cudart and cudnn files. I was using the darknet\scripts\darknet.py module so I made the winmode change here and also moved these 2 dll files here. Thanks!
ERROR
** Focus **
Higher versions of
ctype
, enable dependency verification of importing DLLs. so, make sure the missing dependency DLLs exist under the x64 folder.Solution
1. Analyze the dependencies of
yolo_cpp_dll.dll
(Compile YOLO with VS2019, not vcpkg, watch this video)ps: you can change the dll name to
darknet.dll
, or change the codedarknet.dll
toyolo_cpp_dll.dll
indarknet.py
Developer Command Prompt for VS 2022
dumpbin
command2. Copy missing dlls to
x64
folder, fromC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\{cuda version}
cudart64_102.dll
not workedcudnn64_7.dll
, then it works3. Done, enjoy it !
The text was updated successfully, but these errors were encountered: