Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/torchmetrics/functional/segmentation/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def dice_score(
target: Tensor,
num_classes: int,
include_background: bool = True,
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "micro",
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "macro",
input_format: Literal["one-hot", "index"] = "one-hot",
) -> Tensor:
"""Compute the Dice score for semantic segmentation.
Expand Down
2 changes: 1 addition & 1 deletion src/torchmetrics/segmentation/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(
self,
num_classes: int,
include_background: bool = True,
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "micro",
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "macro",
input_format: Literal["one-hot", "index"] = "one-hot",
zero_division: Union[float, Literal["warn", "nan"]] = 0.0,
**kwargs: Any,
Expand Down
Loading