Skip to content

Commit

Permalink
Comment fix (ultralytics#3058)
Browse files Browse the repository at this point in the history
Co-authored-by: kepler62f <>
(cherry picked from commit f2de1ad)
  • Loading branch information
kepler62f authored and Lechtr committed May 24, 2021
1 parent 3466f04 commit 6cfaf20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def test(data,

# Per target class
for cls in torch.unique(tcls_tensor):
ti = (cls == tcls_tensor).nonzero(as_tuple=False).view(-1) # prediction indices
pi = (cls == pred[:, 5]).nonzero(as_tuple=False).view(-1) # target indices
ti = (cls == tcls_tensor).nonzero(as_tuple=False).view(-1) # target indices
pi = (cls == pred[:, 5]).nonzero(as_tuple=False).view(-1) # prediction indices

# Search for detections
if pi.shape[0]:
Expand Down

0 comments on commit 6cfaf20

Please sign in to comment.