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

Description
When computing the ms-ssim for images with different size than 144 x144, for example in:
from generative.metrics import MSSSIM
import torch
metric = MSSSIM(data_range=torch.tensor(1.0))
metric(torch.ones([3, 1, 256, 256]), torch.ones([3, 1, 256, 256]))
returns
RuntimeError: stack expects each tensor to be equal size, but got [3, 1] at entry 0 and [1, 1] at entry 4