This commit is contained in:
Glenn Jocher 2019-02-19 19:30:56 +01:00
parent a116dd36f7
commit 75225e4d99
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class YOLOLayer(nn.Module):
else:
if ONNX_EXPORT:
grid_xy = self.grid_xy.repeat((1, self.nA, 1, 1, 1)).view((1, -1, 2))
anchor_wh = self.anchor_wh.repeat((1, 1, nG, nG, 1)).view((1, -1, 2))
anchor_wh = self.anchor_wh.repeat((1, 1, nG, nG, 1)).view((1, -1, 2)) / nG
# p = p.view(-1, 85)
# xy = torch.sigmoid(p[:, 0:2]) + self.grid_xy[0] # x, y