Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics on RGB or Y? #11

Open
jiaqixuac opened this issue Dec 19, 2022 · 2 comments
Open

Metrics on RGB or Y? #11

jiaqixuac opened this issue Dec 19, 2022 · 2 comments

Comments

@jiaqixuac
Copy link

Hi,

Thank you for your nice work.
I want to know how you calculate the metrics for reporting.

Here are some results using your code and your model weights.

  1. python inference.py --checkpoint student-setting1.pth xxx and save the restored images.
  2. Calculate psnr and ssim using
    a) RGB: torchPSNR(pred_image, gt_image) + pytorch_ssim.ssim(pred_image, gt_image);
    b) Y: torchPSNR(rgb2ycbcr(pred_image[0]), rgb2ycbcr(gt_image[0])) + sk_cpt_ssim(rgb2ycbcr(pred_image[0]), rgb2ycbcr(gt_image[0]), data_range=1.0, multichannel=True).

The val data (and numbers) are: SOTS outdoor (500), Rain1400 (1400), CSD (2000).

Here are my results compared to the CVPR version:

Haze Rain Snow
RGB 31.35/0.9441 30.54/0.9004 30.10/0.9334
Y 33.39/0.9693 32.51/0.9218 31.68/0.9495
Yours 33.95/0.98 33.13/0.93 31.35/0.95

I think the metrics calculated on the Y channel are close to yours.
Can you clarify this? Thanks!

@huang-hz
Copy link

I get the same value on Rain1400 testset

@jjb202
Copy link

jjb202 commented Sep 7, 2023

Do you generate the meta file for training? can you provide the generate code by dataset path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants