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?
run !make before running the command (for colab)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With