Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Fix error message on MS-SSIM #229

@JessyD

Description

@JessyD

Fix the new line on the error messages of the MS-SSIM metric are displayed. For example, this is how it currently looks like

--> 117         raise ValueError(
    118             f"Image size should be larger than {bigger_than} due to \
    119                 the {len(self.weights) - 1} downsamplings in MS-SSIM."
    120         )
    122 levels = self.weights.shape[0]
    123 mcs_list: List[torch.Tensor] = []

ValueError: Image size should be larger than 144 due to                         the 4 downsamplings in MS-SSIM.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions