I recently started learning about YOLO and object detection, and I am kind of stuck on something. I was wondering if someone could explain to me what happens when a grid cell contains the centers of more than one bounding box. Does the grid cell still predict a single bounding box?
In YOLOv3 the image is divided into several grid cells of size $13\times13$, $26\times26$ and $52\times52$ Each of these grid cells are responsible for predicting a bounding box if the center of the ground truth bounding box is in the grid cell.
I know that each grid cell predicts $B$ boxes, where $B$ is the number of anchor boxes. The dimensions of each of these predictions is $4+1+n$, where $n$ is the number of classes. $4$ for $b_x,b_y,b_w,b_h$, and 1 for the objectness score. $b_x,b_y,b_w,b_h$ is defined below:
$$ b_x = \sigma(t_x)+c_x \\ b_y = \sigma(t_y)+c_y \\ b_h = e^{t_h}p_h \\ b_w = e^{t_w}p_w $$
$p_h$ and $p_w$ is the height and width of the anchor boxes. $t_x, t_y, t_h, t_w$ are predictions made from a single anchor box of a grid cell. My confusion is when a grid cell contains the centers of more than one bounding box, there are more than one values for $t_x, t_y, t_h, t_w$, but the description of the YOLOv3 training process or the above equations does not seem to take this into account.