updates
This commit is contained in:
parent
344bea20eb
commit
ed37551c38
|
@ -158,7 +158,7 @@ class YOLOLayer(nn.Module):
|
||||||
|
|
||||||
tcls = tcls[mask]
|
tcls = tcls[mask]
|
||||||
if xy.is_cuda:
|
if xy.is_cuda:
|
||||||
txy, twth, mask, tcls = txy.cuda(), twh.cuda(), mask.cuda(), tcls.cuda()
|
txy, twh, mask, tcls = txy.cuda(), twh.cuda(), mask.cuda(), tcls.cuda()
|
||||||
|
|
||||||
# Compute losses
|
# Compute losses
|
||||||
nT = sum([len(x) for x in targets]) # number of targets
|
nT = sum([len(x) for x in targets]) # number of targets
|
||||||
|
|
Loading…
Reference in New Issue