Skip to content

Low PSNR and SSIM Values #7

@mahiratmis

Description

@mahiratmis

Hello, thank you very much for the code. I applied your model on SHIQ Dataset and the metric scores except for MSE are really low
Average PSNR: 22.78
Average MSE: 0.0070
Average SSIM: 0.8810
Am I missing something?
The code I used is as follows

import torch
from PIL import Image
import os 

base_folder = os.path.join("datasets", "SHIQ_data_10825", "test")
output_folder = "output_shiq"
os.makedirs(output_folder, exist_ok=True)

for filename in os.listdir(base_folder):
    if filename.endswith("_A.png"):
        input_image = Image.open(os.path.join(base_folder, filename))
        predictor = torch.hub.load("Stable-X/StableDelight", "StableDelight_turbo", trust_repo=True)
        delight_image = predictor(input_image)
        delight_image.save(os.path.join(output_folder, filename))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions