kepler62f kepler62f commited on
Commit
f2de1ad
1 Parent(s): 3ef3a95

Comment fix (#3058)

Browse files

Co-authored-by: kepler62f <>

Files changed (1) hide show
  1. test.py +2 -2
test.py CHANGED
@@ -188,8 +188,8 @@ def test(data,
188
 
189
  # Per target class
190
  for cls in torch.unique(tcls_tensor):
191
- ti = (cls == tcls_tensor).nonzero(as_tuple=False).view(-1) # prediction indices
192
- pi = (cls == pred[:, 5]).nonzero(as_tuple=False).view(-1) # target indices
193
 
194
  # Search for detections
195
  if pi.shape[0]:
 
188
 
189
  # Per target class
190
  for cls in torch.unique(tcls_tensor):
191
+ ti = (cls == tcls_tensor).nonzero(as_tuple=False).view(-1) # target indices
192
+ pi = (cls == pred[:, 5]).nonzero(as_tuple=False).view(-1) # prediction indices
193
 
194
  # Search for detections
195
  if pi.shape[0]: