augment update
This commit is contained in:
parent
6c5ecaf805
commit
933e05cb44
|
@ -252,9 +252,9 @@ class Darknet(nn.Module):
|
|||
# for i, yi in enumerate(y): # coco small, medium, large = < 32**2 < 96**2 <
|
||||
# area = yi[..., 2:4].prod(2)[:, :, None]
|
||||
# if i == 1:
|
||||
# yi = yi * (area < 96. ** 2).float()
|
||||
# yi *= (area < 96. ** 2).float()
|
||||
# elif i == 2:
|
||||
# yi = yi * (area > 32. ** 2).float()
|
||||
# yi *= (area > 32. ** 2).float()
|
||||
# y[i] = yi
|
||||
|
||||
y = torch.cat(y, 1)
|
||||
|
|
Loading…
Reference in New Issue