Open Flock1 opened 5 years ago
@Flock1 Hi,
You should have txt-label-file for each image with the same name but with txt-extension, with coordinates of objects.
In such format
<object-class> <x_center> <y_center> <width> <height>
As described here: https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects
@AlexeyAB, I did. I used the following link to convert COCO dataset annotation to YOLO annotations
So just copy these txt files to the same directory where are images.
And check
codo.data
file (is there correct path to train.txt`) train.txt
file (is there file 000000301712.jpg
)@AlexeyAB, I'll check that. I've copied the train.txt
and test.txt
in the data
folder. That I'm sure of. Also, the image exists. Like I mentioned in the 1st post, every time I run the command, I get a new file along with a new number for resizing
.
The only thing different is that I don't have the txt
files in the same folder as images. I'll do that.
The only thing different is that I don't have the txt files in the same folder as images. I'll do that.
Yes, do it.
, I get a new file along with a new number for resizing.
Do you use the latest version of Darknet?
@AlexeyAB, I don't think so I have the latest version. Is there any simpler way of updating it or will I have to clone darknet again?
@AlexeyAB, I also want to know where are the weights getting saved? For the first 1000 iterations, it saved the weights as yolo-obj_xxxx.weights
but then, after that, for every 1000 iterations, it's saving as Saving weights to backup//yolov3-tiny-obj.backup
.
Moreover, the loss is also not changing much 4357: 4.114630, 4.357525 avg, 0.001000 rate, 0.483670 seconds, 139424 images
Can you suggest what's happening?
@AlexeyAB, I was working with pjreddie
darknet. I used your darknet repo and even there the loss isn't going less than 4.5
What do you suggest?
@Flock1
Just check that mAP increases and continue training: https://github.com/AlexeyAB/darknet#when-should-i-stop-training
@AlexeyAB, this is what I got when I ran ./darknet detector map build/darknet/x64/data/obj.data yolov3-tiny-obj.cfg build/darknet/x64/backup/yolov3-tiny-obj_5000.weights
detections_count = 297704, unique_truth_count = 14323
class_id = 0, name = person, 704 ap = 26.03 %
class_id = 1, name = bicycle, ap = 10.16 %
class_id = 2, name = car, ap = 11.36 %
class_id = 3, name = motorcycle, ap = 16.33 %
class_id = 4, name = bus, ap = 26.10 %
class_id = 5, name = truck, ap = 13.13 %
for thresh = 0.25, precision = 0.44, recall = 0.17, F1-score = 0.25
for thresh = 0.25, TP = 2429, FP = 3075, FN = 11894, average IoU = 29.61 %
IoU threshold = 50 %
mean average precision (mAP@0.50) = 0.171831, or 17.18 %
Total Detection Time: 69.000000 Seconds
Is this okay?
Hi,
I'm trying to train Tiny YOLOv3 using COCO dataset. I have done everything as required but when I run the command
./darknet detector train cfg/obj.data yolov3-tiny-obj.cfg yolov3-tiny.conv.15
to start the training, I get the following error:I really don't know where it is getting this
txt
file. I've checked thetrain.txt
andtest.txt
files and there's no mention of the above file. Moreover, everytime I run the command, the file is different.