Skip to content

Commit

Permalink
Fix AP calculation bug #8464 (#8484)
Browse files Browse the repository at this point in the history
Co-authored-by: Glenn Jocher <[email protected]>
  • Loading branch information
UnglvKitDe and glenn-jocher authored Jul 7, 2022
1 parent dd28df9 commit 39d7a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion val.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def run(

if npr == 0:
if nl:
stats.append((correct, *torch.zeros((3, 0), device=device)))
stats.append((correct, *torch.zeros((2, 0), device=device), labels[:, 0]))
continue

# Predictions
Expand Down

0 comments on commit 39d7a93

Please sign in to comment.