Train YOLOv4 on a Custom Dataset

Project Universe Link: Traffic Detection Object Detection Dataset and Pre-Trained Model by FSMVU

Hello everyone!

I am new at this community so If I’m doing or saying something wrong I’m sorry.

So I’m currently trying to do Train YOLOv4 on a Custom Dataset. My project link is above. Anyway I kept getting the same results whatever I changed in that code.

This is the code;
!./darknet detector train Traffic-Detection-5/obj.data cfg/custom-yolov4-detector.cfg yolov4.conv.137 -dont_show -map

And this is the result;
/bin/bash: line 1: ./darknet: No such file or directory

If anyone can help me I would be very happy :slight_smile:

My notebook is same with the “How to Train YOLOv4 on a Custom Dataset” I just changed the “Traffic-Detection-5/obj.data” part because my dataset is in that folder.

Hi @BerkSarıdoğan

The error message, like @Lenny said, suggests that Darknet isn’t properly installed. Have you checked to see if there might’ve been problems with your installation?

Also, have you tried using our notebooks for newer models? YOLOv4 is from more than three years ago and there are newer models that might work better for you.