Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Training custom object detection model: /bin/bash: ./darknet: No such file or directory, or /bin/bash: ./darknet: Is a directory on Google Colab

I tried to train the custom object according to https://www.youtube.com/watch?v=mmj3nxGT2YQ&t=1747s. In the training part when i run this code on my colab

!./darknet detector train data/obj.data cfg/yolov4-obj.cfg yolov4.conv.137 -dont_show -map

I get errors like:

/bin/bash: ./darknet: No such file or /bin/bash: ./darknet: Is a directory

What shoul i do?

like image 611
Önder Eser Avatar asked Oct 29 '25 15:10

Önder Eser


2 Answers

run !make before running the command (for colab)

like image 178
Darkhan Saidnassimov Avatar answered Nov 01 '25 06:11

Darkhan Saidnassimov


The following steps are to be followed for custom object detection training with Yolo on colab:

# clone darknet from github to create a darknet folder inside /content on colab
!pwd
# /content/darknet
!make
# modify Yolo cfg, copy images etc. and make the training data ready
!pwd
# /content/darknet
# now train
!./darknet detector train data/obj.data cfg/yolov4-obj.cfg yolov4.conv.137 -dont_show -map
like image 43
Sandipan Dey Avatar answered Nov 01 '25 06:11

Sandipan Dey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!