Open jayshonzs opened 7 years ago
I do it later in https://github.com/longcw/yolo2-pytorch/blob/master/darknet.py#L227
Thanks for the reply.
But when training, you will call yolo_to_bbox which will call yolo_to_bbox_c,
there you calculate bw and bh: bw = bbox_pred[b, ind, a, 2] anchors[a][0] / W 0.5 bh = bbox_pred[b, ind, a, 3] anchors[a][1] / H 0.5
and later bw and bh are used to calculate bbox_overlaps, but they are not exp(), is it right?
Thank you for pointing out this bug. I'll fix this and try to train it later.
Hi, I cannot understand why have you done these changes? Why the exp of w and h is not needed?
wh_pred = torch.exp(conv5_reshaped[:, :, :, 2:4])
Thank you