AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.63k stars 7.95k forks source link

AttributeError: function 'network_width' not found, while executing darknet.py #5199

Open vineeth0911 opened 4 years ago

vineeth0911 commented 4 years ago

I tried to execute "build\darknet\x64\darknet.py" after compiling both gpu & nogpu dll files and renamed them. I encountered the following error:

C:\darknet-master\build\darknet\x64>py darknet.py Traceback (most recent call last): File "darknet.py", line 130, in lib.network_width.argtypes = [c_void_p] File "C:\Users\CHEPURI VINEETH\AppData\Local\Programs\Python\Python37\lib\ctypes__init.py", line 377, in getattr func = self.getitem(name) File "C:\Users\CHEPURI VINEETH\AppData\Local\Programs\Python\Python37\lib\ctypes\init.py", line 382, in getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: function 'network_width' not found

vineeth0911 commented 4 years ago

Am able to use darknet.exe fie and predict the objects, this issue is while using python files. please help me to resolve this issue .!