BobLiu20/YOLOv3_PyTorch

What's the meaning of w and h in your loss function?

Opened this issue · 1 comments

When you calculate loss, the code about tw and th like this:

# Width and height
tw[b, best_n, gj, gi] = math.log(gw/anchors[best_n][0] + 1e-16)
th[b, best_n, gj, gi] = math.log(gh/anchors[best_n][1] + 1e-16)

I don't understand why you use log,and in the paper, the loss function about w and h is
image

Can you explain it ? THX.

I have known it.