Open2

AttributeError: module 'skimage.measure' has no attribute 'compare_ssim'

PINTOPINTO
# from skimage import measure
from skimage import metrics

    # ssim_list = [
    #     measure.compare_ssim(
    #         dehaze_list_np[ind],
    #         gt_list_np[ind],
    #         data_range=1,
    #         multichannel=True
    #     ) for ind in range(len(dehaze_list))
    # ]
    ssim_list = [
        metrics.structural_similarity(
            dehaze_list_np[ind],
            gt_list_np[ind],
            data_range=1,
            multichannel=True
        ) for ind in range(len(dehaze_list))
    ]