# train_images and label must be the sama path.
./darknet detector train m_data/net.data m_data/cfg/yolov4-tiny-custom.cfg backup/yolov4.conv.137
# result
...
total_bbox = 183764, rewritten_bbox = 0.312901 %
6000: 0.132380, 0.150676 avg loss, 0.000026 rate, 0.534962 seconds, 96000 images, 0.014835 hours left
Saving weights to m_data/net_backup/yolov4-tiny-custom_6000.weights
Saving weights to m_data/net_backup/yolov4-tiny-custom_last.weights
Saving weights to m_data/net_backup/yolov4-tiny-custom_final.weights
If you want to train from the beginning, then use flag in the end of training command: -clear
检测
./darknet detector test m_data/net.data m_data/cfg/yolov4-tiny-custom.cfg m_data/net_backup/yolov4-tiny-custom_final.weights