Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
calebrob6 authored Feb 25, 2024
1 parent c204504 commit 3ea459e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions torchgeo/trainers/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ def configure_losses(self) -> None:
i for i in range(self.hparams["num_classes"]) if i != ignore_index
]

self.criterion = smp.losses.JaccardLoss(
mode="multiclass", classes=classes
)
self.criterion = smp.losses.JaccardLoss(mode="multiclass", classes=classes)
elif loss == "focal":
self.criterion = smp.losses.FocalLoss(
"multiclass", ignore_index=ignore_index, normalized=True
Expand Down

0 comments on commit 3ea459e

Please sign in to comment.