Skip to content

Commit

Permalink
Revise error message of MS-SSIM
Browse files Browse the repository at this point in the history
Co-authored-by: Qian Zhao <[email protected]>
  • Loading branch information
LeoXing1996 and C1rN09 authored Mar 10, 2023
1 parent cc9d889 commit 0095367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmeval/metrics/ms_ssim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0095367

Please sign in to comment.