提交 4821507c 编写于 作者: Bubbliiiing's avatar Bubbliiiing

update loss

上级 53c50566
......@@ -177,7 +177,7 @@ class YOLOLoss(nn.Module):
bs = tobj.shape[0]
loss = box_loss + obj_loss + cls_loss
return loss * bs
return loss
def xywh2xyxy(self, x):
# Convert nx4 boxes from [x, y, w, h] to [x1, y1, x2, y2]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册