Skip to content

Commit 8d8c86e

Browse files
committed
修复小bug。
1 parent fa4e0a7 commit 8d8c86e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/recorders/metric_recorder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def round_w_zero_padding(x, bit_width):
5757
"dice": {"handler": py_sod_metrics.DICEHandler, "kwargs": gray_metric_kwargs},
5858
"specificity": {"handler": py_sod_metrics.SpecificityHandler, "kwargs": gray_metric_kwargs},
5959
#
60-
"bif1": {"handler": py_sod_metrics.FmeasureHandler, "kwargs": dict(binary_metric_kwargs, beta=1)},
60+
"bif1": {"handler": py_sod_metrics.FmeasureHandler, "kwargs": dict(**binary_metric_kwargs, beta=1)},
6161
"biprecision": {"handler": py_sod_metrics.PrecisionHandler, "kwargs": binary_metric_kwargs},
6262
"birecall": {"handler": py_sod_metrics.RecallHandler, "kwargs": binary_metric_kwargs},
6363
"biiou": {"handler": py_sod_metrics.IOUHandler, "kwargs": binary_metric_kwargs},
@@ -66,7 +66,7 @@ def round_w_zero_padding(x, bit_width):
6666
}
6767
GRAYSCALE_METRICS = ["em"] + [k for k in BINARY_METRIC_MAPPING.keys() if not k.startswith("bi")]
6868
SUPPORTED_METRICS = ["mae", "em", "sm", "wfm", "msiou"] + sorted(BINARY_METRIC_MAPPING.keys())
69-
# fmt: off
69+
# fmt: on
7070

7171

7272
class GrayscaleMetricRecorder:

0 commit comments

Comments
 (0)