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

View File

@ -158,7 +158,7 @@ class YOLOLayer(nn.Module):
tcls = tcls[mask]
if xy.is_cuda:
txy, tw, th, mask, tcls = txy.cuda(), twh.cuda(), mask.cuda(), tcls.cuda()
txy, twth, mask, tcls = txy.cuda(), twh.cuda(), mask.cuda(), tcls.cuda()
# Compute losses
nT = sum([len(x) for x in targets]) # number of targets