diff --git a/models.py b/models.py index 92562a7b..cc61df1d 100755 --- a/models.py +++ b/models.py @@ -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