Skip to content

Commit

Permalink
refactor: Rename metrics in SemanticSegmentationTask
Browse files Browse the repository at this point in the history
  • Loading branch information
robmarkcole committed Jun 19, 2024
1 parent b7d8305 commit b1526fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torchgeo/trainers/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def configure_metrics(self) -> None:
average='micro',
multidim_average='global',
),
'OverallIoU': JaccardIndex(
'OverallJaccardIndex': JaccardIndex(
task='multiclass',
num_classes=num_classes,
ignore_index=ignore_index,
Expand All @@ -240,7 +240,7 @@ def configure_metrics(self) -> None:
average='macro',
multidim_average='global',
),
'AverageIoU': JaccardIndex(
'AverageJaccardIndex': JaccardIndex(
task='multiclass',
num_classes=num_classes,
ignore_index=ignore_index,
Expand Down Expand Up @@ -283,7 +283,7 @@ def configure_metrics(self) -> None:
),
labels=labels,
),
'IoU': ClasswiseWrapper(
'JaccardIndex': ClasswiseWrapper(
JaccardIndex(
task='multiclass', num_classes=num_classes, average='none'
),
Expand Down

0 comments on commit b1526fa

Please sign in to comment.