Open Kickjaw opened 3 years ago
Just recently I have found that the "max=" setting has a significant effect on training, at least for me and the training I've done. I struggled to get avg loss below 20 when I had max=400. Try delete the "max=" line all together. It greatly improved training for me and I have yet to run into an issue with it detecting a high number of objects per image. (I have images with ~170 objects in it)
I'm not sure why the "max=" setting has an effect on training.
Just recently I have found that the "max=" setting has a significant effect on training, at least for me and the training I've done. I struggled to get avg loss below 20 when I had max=400. Try delete the "max=" line all together. It greatly improved training for me and I have yet to run into an issue with it detecting a high number of objects per image. (I have images with ~170 objects in it)
I'm not sure why the "max=" setting has an effect on training.
Thanks for the response, should I restart the training with the default weights, the weights that I have made so far, or from no weights?
Just recently I have found that the "max=" setting has a significant effect on training, at least for me and the training I've done. I struggled to get avg loss below 20 when I had max=400. Try delete the "max=" line all together. It greatly improved training for me and I have yet to run into an issue with it detecting a high number of objects per image. (I have images with ~170 objects in it) I'm not sure why the "max=" setting has an effect on training.
Thanks for the response, should I restart the training with the default weights, the weights that I have made so far, or from no weights?
Default weights.
Thank you, after 6000 iterations now the Loss is down to 1.3 with MaP around 86%. I am wondering if I should run it back with a lower learning rate to try and get it even better or just stick with this for now.
You're welcome!
You don't have to start completely over with a lower learning rate. You can stop the training, lower the learning rate, and resume it. Whether or not you want to keep going is up to you. You can always experiment and see what gives you the best results.
loss doesn't matter, check mAP. @Tony904 max means max obj nums in current yolo layer.
Hello,
I am working through a small object detection training model. I am starting out with roughly 4000x4000 images and tiling them down into 512 by 512 images and running the training on them. Currently I have around 1300 images for training on 2 classes. I know it is not the best data set as a portion of it is just images rotate by varying degrees. As I am running the model the average loss starts oscillating around 8 or 9. I have turned random off because I can get an out of memory error while running with my current batch and subdivisions.
I am looking to get an accurate count of the objects in the images. What should I do to decrease the loss. Currently I have let the training run out to 1700 iterations and counting. The loss is 9.8705 with a MaP of 86. I started with the pre-trained weights yolov4.conv.137. Should I keep running out to 6000 or make some changes?
command used: darknet.exe detector train data/obj.data cfg/yolov4-obj-tilled.cfg yolov4.conv.137 -dont_show -map