updates
This commit is contained in:
parent
344bea20eb
commit
ed37551c38
|
@ -158,7 +158,7 @@ class YOLOLayer(nn.Module):
|
|||
|
||||
tcls = tcls[mask]
|
||||
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
|
||||
nT = sum([len(x) for x in targets]) # number of targets
|
||||
|
|
Loading…
Reference in New Issue