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

No libdarknet.so after build #5685

Open Haeryangkim opened 4 years ago

Haeryangkim commented 4 years ago

I wanna utilize darknet.py to use yolov4 in my python project.

however after build the darknet and write down my script there is an error shown below. OSError: ./libdarknet.so: cannot open shared object file: No such file or directory

Btw is the opencv python library supporting Yolov4?

Haeryangkim commented 4 years ago

found self solution

set LIBSO=1 in Makefile

leaving this for other people.

AlexeyAB commented 4 years ago

https://github.com/AlexeyAB/darknet#how-to-use-yolo-as-dll-and-so-libraries

set LIBSO=1 in the Makefile and do make

MindSightTH commented 4 years ago

@AlexeyAB I've rebuild to generate libdark.so after changed LiBSO =1 and rebuild with CMake('./build.ps1), libdark.so it did not generate anywhere, any thought on this? Any help would appreciate.

loki3-coding commented 4 years ago

@MindSightTH I found libdarknet.so after setting LIBSO=1, and do make.

fahadchauhan4 commented 3 years ago

After doing LIBSO=1, run command "make" not "cmake". you'll have libdarknet.so in darknet main directory.