First, thanks very much for this repository!
The first call to delta_yolo_box in forward_yolo_layer function is the straightforward one (near line 230). But I can't understand why there's a second call, updating l.delta, near line 261, iterating over mask_n. Could you explain?
Also, I don't understand where is the confidence loss - I see only class delta and box delta updates.
Thanks!
IoU > truth_thresh, i.e. delta_yolo_box can be calculated for several final cells/anchors (but in current models truth_thresh=1 so this part of code is disabled)prediction only, so delta_yolo_box will be calculated for the best final cell/anchor only: https://github.com/AlexeyAB/darknet/blob/6682f0b98984e2b92049e985b21ed81b76666565/src/yolo_layer.c#L259-L261confidence (probability) = objectness * class_probabilityobjectness:
class_probability:
Thanks!
Most helpful comment
IoU > truth_thresh, i.e. delta_yolo_box can be calculated for several final cells/anchors (but in current modelstruth_thresh=1so this part of code is disabled)https://github.com/AlexeyAB/darknet/blob/6682f0b98984e2b92049e985b21ed81b76666565/src/yolo_layer.c#L222-L231
predictiononly, so delta_yolo_box will be calculated for the best final cell/anchor only: https://github.com/AlexeyAB/darknet/blob/6682f0b98984e2b92049e985b21ed81b76666565/src/yolo_layer.c#L259-L261confidence (probability) = objectness * class_probabilityobjectness:
class_probability: