Skip to content

Commit

Permalink
Remove unnecessary IoU ignore_index comment
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahambotros committed Sep 14, 2020
1 parent 2579475 commit a63d403
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pytorch_lightning/metrics/functional/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,6 @@ def iou(
scores = torch.zeros(num_classes, device=pred.device, dtype=torch.float32)

for class_idx in range(num_classes):
# Skip this class if its index is being ignored.
if class_idx == ignore_index:
continue

Expand Down

0 comments on commit a63d403

Please sign in to comment.