Unverified 提交 ea7e78cb authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Grid indices overflow bug fix (#1316)

上级 58f8ba77
......@@ -589,7 +589,7 @@ def build_targets(p, targets, model):
# Append
a = t[:, 6].long() # anchor indices
indices.append((b, a, gj.clamp_(0, gain[3]), gi.clamp_(0, gain[2]))) # image, anchor, grid indices
indices.append((b, a, gj.clamp_(0, gain[3] - 1), gi.clamp_(0, gain[2] - 1))) # image, anchor, grid indices
tbox.append(torch.cat((gxy - gij, gwh), 1)) # box
anch.append(anchors[a]) # anchors
tcls.append(c) # class
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论