YoloV3 with GIoU loss implemented in original Darknet as https://github.com/generalized-iou/g-darknet
Will GIoU loss be supported in this version of Darknet?
@article{Rezatofighi_2018_CVPR,
author = {Rezatofighi, Hamid and Tsoi, Nathan and Gwak, JunYoung and Sadeghian, Amir and Reid, Ian and Savarese, Silvio},
title = {Generalized Intersection over Union},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2019},
}
I will think about it:
https://arxiv.org/abs/1902.09630v2
@TaihuLight Hi,
I added GIoU: https://github.com/AlexeyAB/darknet/commit/6e13527f06480505556455dd9aad34d627a74501
from: https://github.com/generalized-iou/g-darknet
Cfg-files:
@AlexeyAB this is used for training or inference ?
@tdurand
It should be used for training.
@tdurand thanks and sorry for this other question, I went through the paper and the website but failed to understand if those trained weight published here: https://github.com/generalized-iou/g-darknet#pre-trained-models improves inference speed / accuracy ? Or is it just a method to train faster ?
@tdurand As they said, the MS COCO AP@[.5, .95] was increased: https://arxiv.org/pdf/1902.09630v2.pdf
It means that by training with GIoU:

Checking mAP on MS COCO 2014 validation dataset 5k.txt - you can get this dataset by using: https://github.com/AlexeyAB/darknet/blob/master/scripts/get_coco_dataset.sh
Yolo v3 (not spp) width=608 height=608: https://github.com/AlexeyAB/darknet/blob/master/cfg/yolov3.coco-giou-12.cfg
Using these weights-files: https://github.com/generalized-iou/g-darknet#pre-trained-models
[email protected] - (IoU_threshold = 75%)
GIoU - 35.05% [email protected] - 0.351
darknet.exe detector map cfg/coco.data cfg/yolov3.coco-giou-12.cfg yolov3_final_giou.weights -points 101 -iou_thresh 0.75
MSE - 31.39% [email protected] - 0.314
darknet.exe detector map cfg/coco.data cfg/yolov3.coco-giou-12.cfg yolov3_492000_mse.weights -points 101 -iou_thresh 0.75
MSE (default weights https://pjreddie.com/media/files/yolov3.weights ) - 31.63% [email protected] - 0.316
darknet.exe detector map cfg/coco.data cfg/yolov3.coco-giou-12.cfg yolov3.weights -points 101 -iou_thresh 0.75
Result is slightly different than in Pycoco-tool, since Pycoco-tool takes into account parameters crowd in MS COCO labels.
[email protected] (IoU_threshold = 50%)
GIoU - 52.17% [email protected] - 0.522
darknet.exe detector map cfg/coco.data cfg/yolov3.coco-giou-12.cfg yolov3_final_giou.weights -points 101 -iou_thresh 0.50
MSE - 52.17% [email protected] - 0.522
darknet.exe detector map cfg/coco.data cfg/yolov3.coco-giou-12.cfg yolov3_492000_mse.weights -points 101 -iou_thresh 0.50
MSE (default weights https://pjreddie.com/media/files/yolov3.weights ) - 55.19% [email protected] - 0.552
darknet.exe detector map cfg/coco.data cfg/yolov3.coco-giou-12.cfg yolov3.weights -points 101 -iou_thresh 0.50
Result is slightly different than in Pycoco-tool, since Pycoco-tool takes into account parameters crowd in MS COCO labels.
many thanks !
Explanation of AP(GIoU)-metric: https://github.com/generalized-iou/g-darknet/issues/12#issuecomment-507353281
Is it possible to evaluation the GIoU metric with this repo?
Why is it that there is an increase in mAP and AP75 but a decrease in AP50 with GIoU loss?
@LukeAI
Is it possible to evaluation the GIoU metric with this repo?
Do you mean mAP@GIoU_treshold instead of mAP@IoU_treshold ?
No.
Why is it that there is an increase in mAP and AP75 but a decrease in AP50 with GIoU loss?
correct classifications are slightly less likely but the bounding boxes are tighter
@AlexeyAB
I want to train https://github.com/AlexeyAB/darknet/blob/master/cfg/yolov3.coco-giou-12.cfg, I can use https://pjreddie.com/media/files/darknet53.conv. 74 weight documents?
@yrc08 Yes.
@AlexeyAB
Thank you very much for your prompt reply.
------------------ 原始邮件 ------------------
发件人: "Alexey"notifications@github.com;
发送时间: 2019年10月23日(星期三) 晚上6:47
收件人: "AlexeyAB/darknet"darknet@noreply.github.com;
抄送: "洋葱"2990064358@qq.com;"Mention"mention@noreply.github.com;
主题: Re: [AlexeyAB/darknet] Add GIoU loss into this repo? ~+3 AP@[.5,.95] (#3249)
@yrc08 Yes.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Most helpful comment
I will think about it:
https://arxiv.org/abs/1902.09630v2
https://giou.stanford.edu/