Skip to content

Commit

Permalink
修复小bug。
Browse files Browse the repository at this point in the history
  • Loading branch information
lartpang committed Apr 9, 2024
1 parent fa4e0a7 commit 8d8c86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/recorders/metric_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def round_w_zero_padding(x, bit_width):
"dice": {"handler": py_sod_metrics.DICEHandler, "kwargs": gray_metric_kwargs},
"specificity": {"handler": py_sod_metrics.SpecificityHandler, "kwargs": gray_metric_kwargs},
#
"bif1": {"handler": py_sod_metrics.FmeasureHandler, "kwargs": dict(binary_metric_kwargs, beta=1)},
"bif1": {"handler": py_sod_metrics.FmeasureHandler, "kwargs": dict(**binary_metric_kwargs, beta=1)},
"biprecision": {"handler": py_sod_metrics.PrecisionHandler, "kwargs": binary_metric_kwargs},
"birecall": {"handler": py_sod_metrics.RecallHandler, "kwargs": binary_metric_kwargs},
"biiou": {"handler": py_sod_metrics.IOUHandler, "kwargs": binary_metric_kwargs},
Expand All @@ -66,7 +66,7 @@ def round_w_zero_padding(x, bit_width):
}
GRAYSCALE_METRICS = ["em"] + [k for k in BINARY_METRIC_MAPPING.keys() if not k.startswith("bi")]
SUPPORTED_METRICS = ["mae", "em", "sm", "wfm", "msiou"] + sorted(BINARY_METRIC_MAPPING.keys())
# fmt: off
# fmt: on


class GrayscaleMetricRecorder:
Expand Down

0 comments on commit 8d8c86e

Please sign in to comment.