Open Rahul-Venugopal opened 5 years ago
@Rahul-Venugopal Hi,
Is it expected the mAP and avg loss to improve with RANDOM = 1 flag ? What could be the reason for lower mAP and higher avg loss with random = 1 flag ?
There are at least 2 reasons:
random=1
I am not seeing much variation in avg loss for last few 500 iterations and does it improve if I I train for more iterations ?
Usually you should train 2x-4x more iterations with random=1 than with random=0.
It shouldn't always increase mAP. random=1 can decrease mAP in some cases.
random=1
is necessary for training the weights-file that can be used for detection with different network resolutions, just like we can do with the default yolov3-file: https://pjreddie.com/media/files/yolov3.weights
As you can see there is the same URL to the same weights file for YOLOv3-320
, YOLOv3-416
, YOLOv3-608
: https://pjreddie.com/darknet/yolo/ Use the same yolov3.weights
just you change width= height= in yolov3.cfg
Thanks for replying @AlexeyAB
1.small validation dataset, so mAP value isn't accurate
What is the recommended number of validation set images(per class) , if I have around 600 training
images per class ?
Thanks for all information . I will try to change the modifications as you suggested
Hi ,
I have trained yolov3 to detect three custom objects with following number of images
I have trained for 20500 iterations
First I used flag RANDOM = 0 and mAP on validation set is
Also the avg loss is ~0.0657
Then I used flag RANDOM = 1 and in cfg the parameters are
When I calculate mAP for this weights with RANDOM = 1 , I get mAP
and avg loss is ~0.08
Is it expected the mAP and avg loss to improve with RANDOM = 1 flag ? What could be the reason for lower mAP and higher avg loss with random = 1 flag ? Should I continue for more training ? I am not seeing much variation in avg loss for last few 500 iterations and does it improve if I I train for more iterations ?
My chart after 19700 iterations with flag Random = 1 is attached below