updates
This commit is contained in:
parent
175e231c55
commit
5ca987eaed
|
@ -243,7 +243,7 @@ def build_targets(target, anchor_vec, nA, nC, nG):
|
|||
tcls = torch.ByteTensor(nB, nA, nG, nG, nC).fill_(0) # nC = number of classes
|
||||
|
||||
for b in range(nB):
|
||||
t = target[b]
|
||||
t = target[b].cpu()
|
||||
nTb = len(t) # number of targets
|
||||
if nTb == 0:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue