sowson/darknet

YoloV4

runaway opened this issue · 36 comments

Can the project support YoloV4 training?

Not yet...

Do you have OpenCL code for Yolo4

I am working on this but not wanted to share it just yet. Thanks!

Hello @runaway @maitheen,

I committed the version with YOLO4 experimental support, not all are working yet, I am deep dive into issues. The issue was to separate YOLO4 from previous work parts. So pls use an [yolo4] instead of [yolo] in YOLO4 CFG files. And all pull requests are welcome if you find issues. It is difficult to time for me to make it better. The last thing in the project "cfg" folder is ready to reuse models.

Thanks!

@maitheen I am not so smart, but anyway happy to read what you wrote. Anyway, I have still a stability issue. Pls wait few more days or use CPU only flags till I stabilize the training process of YOLO4 in OpenCL. Thanks!

@maitheen I have an interesting idea for your master thesis, pls use the YOLO3 model, but replace inside [yolo] to [yolo4] it will be an interesting change, also you may change activation functions to MISH, that should be super stable for training, so you will not use a full YOLO4 but some elements of this model... works for you? :-).

@maitheen I finished YOLO4 elements port for now... Good Luck!

Screen Shot 2020-10-02 at 12 05 19 PM
:D all solved! :D... training too... :D. In this picture, I used official yolov4.weights from the YOLO4 project :D.
Screen Shot 2020-10-02 at 3 12 05 PM
And above it is a training that progressing super awesome on my https://github.com/sowson/clBLAS modified with multi-GPU support on macOS :D.

Hey, @maitheen I cannot see your screenshot.

are you unable to read? :p

read what error said!

Are you sure? devel version (headers and other things)? is it ubuntu?

In ubuntu name of the correct package is: libopencv-dev

btw, what gpu(s) you have? wonder how fast drivers in ubuntu work? pls help on that to me... I tried 18.04 and drivers for Radeon VII gpus were very very slow

hmm... why you do not use?: sudo apt install libopencv-dev

same for libomp-dev etc...

and regarding GPU(s) what you have?

you have to figure out how to use OpenCV v2 or v3 because v4 it is not supported...

use: sudo apt install libclblas-dev
if you have an multi GPU isse (not enable in Makefile! keep disabled!) use https://github.com/sowson/clBLAS and replace clBLAS..2.12.0.so
thx!

sorry but again cannot see image you added

I think nothing more needs to be added here. Thanks!