未验证 提交 46cd0d8c 编写于 作者: G Glenn Jocher 提交者: GitHub

Grid indices overflow bug fix 2 (#1551)

上级 95460570
......@@ -464,7 +464,6 @@ def build_targets(p, targets, model):
gi, gj = gij.T # grid xy indices
# Append
indices.append((b, a, gj, gi)) # 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册