From 0095367abaa277dca7ffbe7bb86719fe9ae592b0 Mon Sep 17 00:00:00 2001 From: LeoXing1996 Date: Fri, 10 Mar 2023 13:34:02 +0800 Subject: [PATCH] Revise error message of MS-SSIM Co-authored-by: Qian Zhao <112053249+C1rN09@users.noreply.github.com> --- mmeval/metrics/ms_ssim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmeval/metrics/ms_ssim.py b/mmeval/metrics/ms_ssim.py index 765bdade..b8f06d58 100644 --- a/mmeval/metrics/ms_ssim.py +++ b/mmeval/metrics/ms_ssim.py @@ -97,8 +97,8 @@ def add(self, predictions: Sequence[np.ndarray], groundtruths: Sequence[np.ndarr Defaults to None. """ assert len(predictions) == len(groundtruths), ( - 'The length of \'predictions\' and \'groundtruths\' must be ' - 'same.') + 'The length of "predictions" and "groundtruths" must be ' + 'the same.') half1, half2 = predictions, groundtruths half1 = [reorder_image(samp, self.input_order) for samp in half1]