I wish to train a model to detect traffic speed sign 110km/h with the darknet v3 weights
./darknet detector train cfg/110.data cfg/speed-sign-yolov3-tiny.cfg yolov3.weights
However, I am getting this error which saying my dataset is not found
Loading weights from yolov3.weights...Done!
Learning Rate: 0.001, Momentum: 0.9, Decay: 0.0005
Saving weights to backup//speed-sign-yolov3-tiny_final.weights
Couldn't open file: /home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110-10.txt_fe486e17-33b5-4893-a497-577384a5fcbd.jpg
Couldn't open file: /home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110-3.txt_4c5460cc-fdef-4607-adc5-a60ba45ded7e.jpg
*** Error in `./darknet': double free or corruption (!prev): 0x0000000001d35250 ***
Couldn't open file: /home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110-3.txt_37dfb2fe-9384-425b-af2e-a1548b28edc9.jpg
Couldn't open file: /home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110-10.txt_a6b05612-d00a-4851-b18d-8e204a73eb68.jpg
The problem is all the filename stated in train / test.txt were replaced. Note on the following snippet of my train.txt
/home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110-6.jpg_e098075d-13e0-48bd-ac34-501b9c7cd9e6.jpg
/home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110-7.jpg_3d7828ee-2aaf-46b5-8f7e-dab9c97b6bcf.jpg
/home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110.jpg_6b04bf77-0775-4716-854d-ca32c4d2480b.jpg
/home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110-2.jpg_fbd4713e-68d2-487a-bc6b-79a4e5eb25bb.jpg
/home/jianyepa/dataset-traffic-sign/110kmh/output//110kmh_original_110-10.jpg_7e5082a1-eaf0-4e0c-9bbf-061d887f095d.jpg
The jpg in the middle of each filename was replaced by YOLO to txt
What actually happens?
I also encountered this problem... Have you solved it?
@ultimateyy
You can try this: https://github.com/AlexeyAB/darknet
I trained successfully by using AlexeyAB darknet.
The paths in tutorial is for Windows, pay attention about it if you are in Linux.
try:
dos2unix data/train.txt
if you were using files created in windows
in source code:
find_replace(path, "images", "labels", labelpath);
find_replace(labelpath, "JPEGImages", "labels", labelpath);
find_replace(labelpath, "raw", "labels", labelpath);
find_replace(labelpath, ".jpg", ".txt", labelpath);
find_replace(labelpath, ".png", ".txt", labelpath);
find_replace(labelpath, ".JPG", ".txt", labelpath);
find_replace(labelpath, ".JPEG", ".txt", labelpath);
dos2unix data/train.txt
Hi @zoranl
Where to use this? U mean while training?
Most helpful comment
try:
dos2unix data/train.txt
if you were using files created in windows