Skip to content

Commit

Permalink
updated yaml configs
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaenzig committed Nov 29, 2024
1 parent 0766787 commit ab69fcc
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 25 deletions.
5 changes: 3 additions & 2 deletions configs/vision/pathology/offline/segmentation/bcss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
labels:
- outside_roi
- tumor
Expand Down
5 changes: 3 additions & 2 deletions configs/vision/pathology/offline/segmentation/consep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
labels:
- background
- other
Expand Down
5 changes: 3 additions & 2 deletions configs/vision/pathology/offline/segmentation/monusac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: 6
average: none
reduction: none
ignore_index: *IGNORE_INDEX
labels:
- background
Expand Down
5 changes: 3 additions & 2 deletions configs/vision/pathology/online/segmentation/bcss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
labels:
- outside_roi
- tumor
Expand Down
5 changes: 3 additions & 2 deletions configs/vision/pathology/online/segmentation/consep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
labels:
- background
- other
Expand Down
5 changes: 3 additions & 2 deletions configs/vision/pathology/online/segmentation/monusac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: 6
average: none
reduction: none
ignore_index: *IGNORE_INDEX
labels:
- background
Expand Down
5 changes: 3 additions & 2 deletions configs/vision/radiology/offline/segmentation/lits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
labels:
- background
- liver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
labels:
- background
- liver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
data:
class_path: eva.DataModule
init_args:
Expand Down
5 changes: 3 additions & 2 deletions configs/vision/radiology/online/segmentation/lits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
labels:
- background
- liver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
labels:
- background
- liver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ model:
- class_path: torchmetrics.ClasswiseWrapper
init_args:
metric:
class_path: eva.vision.metrics.DiceScore
class_path: eva.vision.metrics.MonaiDiceScore
init_args:
include_background: true
num_classes: *NUM_CLASSES
average: none
reduction: none
data:
class_path: eva.DataModule
init_args:
Expand Down
4 changes: 3 additions & 1 deletion src/eva/vision/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
from eva.vision.metrics.segmentation.dice import DiceScore
from eva.vision.metrics.segmentation.generalized_dice import GeneralizedDiceScore
from eva.vision.metrics.segmentation.mean_iou import MeanIoU
from eva.vision.metrics.segmentation.monai_dice import MonaiDiceScore

__all__ = [
"DiceScore",
"GeneralizedDiceScore",
"MulticlassSegmentationMetrics",
"MeanIoU",
"MonaiDiceScore",
"MulticlassSegmentationMetrics",
]

0 comments on commit ab69fcc

Please sign in to comment.