create step lr schedule

This commit is contained in:
Glenn Jocher
2018-10-05 17:01:07 +02:00
parent c01b8e6b7c
commit 07ac4fef8d
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -264,8 +264,8 @@ def build_targets(pred_boxes, pred_conf, pred_cls, target, anchor_wh, nA, nC, nG
ty[b, a, gj, gi] = gy - gj.float()
# Width and height (yolo method)
tw[b, a, gj, gi] = torch.log(gw / anchor_wh[a, 0] + 1e-16)
th[b, a, gj, gi] = torch.log(gh / anchor_wh[a, 1] + 1e-16)
tw[b, a, gj, gi] = torch.log(gw / anchor_wh[a, 0])
th[b, a, gj, gi] = torch.log(gh / anchor_wh[a, 1])
# Width and height (power method)
# tw[b, a, gj, gi] = torch.sqrt(gw / anchor_wh[a, 0]) / 2