This commit is contained in:
Glenn Jocher 2019-02-20 12:55:06 +01:00
parent 344bea20eb
commit ed37551c38
1 changed files with 1 additions and 1 deletions

View File

@ -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