Skip to content

Commit 1bd43fe

Browse files
authored
Update loss.py
1 parent 0829160 commit 1bd43fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def __call__(self, p, targets): # predictions, targets
138138
pxy = pxy.sigmoid() * 2 - 0.5
139139
pwh = (pwh.sigmoid() * 2) ** 2 * anchors[i]
140140
pbox = torch.cat((pxy, pwh), 1) # predicted box
141-
iou = bbox_iou(pbox, tbox[i], ESIoU=True).squeeze() # iou(prediction, target)
141+
iou = bbox_iou(pbox, tbox[i], EIoU=True).squeeze() # iou(prediction, target)
142142
lbox += (1.0 - iou).mean() # iou loss
143143

144144
# Objectness

0 commit comments

Comments
 (0)