The code is as follows

Blockquote

tbox[ bi,gj,gi,ai]=s_target[:,2:6]

Blockquote

it means that the anchor located in (bi,gj,gi,ai) in prediction layer is responsible for predicting one target box. In some case where the (bi,gj,gi, ai) of at least two target box are equal, how to process the conflict?
Does the next target box overlap the previous one and the previous one is ignored?