updates
This commit is contained in:
parent
5ca987eaed
commit
5fcdcefec3
|
@ -161,6 +161,7 @@ class YOLOLayer(nn.Module):
|
||||||
nM = mask.sum().float() # number of anchors (assigned to targets)
|
nM = mask.sum().float() # number of anchors (assigned to targets)
|
||||||
k = 1 # nM / bs
|
k = 1 # nM / bs
|
||||||
if nM > 0:
|
if nM > 0:
|
||||||
|
print(xy.shape, txy.shape, mask.shape)
|
||||||
lxy = k * MSELoss(xy[mask], txy[mask])
|
lxy = k * MSELoss(xy[mask], txy[mask])
|
||||||
lwh = k * MSELoss(wh[mask], twh[mask])
|
lwh = k * MSELoss(wh[mask], twh[mask])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue