darknet:
->data
--->images
----->img0.png
----->img1.png ... up to 6
--->labels
----->img0.txt ... up to 6
--->obj.names (with 6 names)
--->obj2.data:
classes = 6
train = data/train.txt
valid = data/test.txt
names = data/obj.names
backup = backup/
--->train.txt
----->absolute path to img0.png ... img6.png
--->test.txt
----->absolute path to img7.png ... img8.png
When I change a name of an image in the train.txt file to a non-existing file(e.g. imgabc123.png), then I get the error 'cannot load image absolute path/imgabc123.png'. So I assume the folder images and the files train.txt, obj2.data are fine.
The label-files look like this:
class number + 4 parameters:
0 0.456 0.233 0.034 0.014
...
I also have the same problem as described here (https://github.com/pjreddie/darknet/issues/611 or https://github.com/AlexeyAB/Yolo_mark/issues/60), but couldn't fix it yet.
That's my folder structure:
darknet: ->data --->images ----->img0.png ----->img1.png ... up to 6 --->labels ----->img0.txt ... up to 6 --->obj.names (with 6 names) --->obj2.data: classes = 6 train = data/train.txt valid = data/test.txt names = data/obj.names backup = backup/ --->train.txt ----->absolute path to img0.png ... img6.png --->test.txt ----->absolute path to img7.png ... img8.png
When I change a name of an image in the train.txt file to a non-existing file(e.g. imgabc123.png), then I get the error 'cannot load image absolute path/imgabc123.png'. So I assume the folder images and the files train.txt, obj2.data are fine.
The label-files look like this:
class number + 4 parameters: 0 0.456 0.233 0.034 0.014 ...
The command in the terminal is the following:
./darknet detector train data/obj2.data data/yolov3-tiny2.cfg darknet54.conv.74
The output in the console:
Loading weigths ...Done! Learning rate:.... Resizing 480 Cannot load image "" STB Reason: can't fopen