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 15, 2020
1 parent f0cc0fa commit 8b84b04
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 @@ -1010,7 +1010,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 8b84b04

Please sign in to comment.