sanghyun-son / EDSR-PyTorch

PyTorch version of the paper 'Enhanced Deep Residual Networks for Single Image Super-Resolution' (CVPRW 2017)
MIT License
2.41k stars 666 forks source link

PSNR and SSIM #348

Open AminTolou opened 1 year ago

AminTolou commented 1 year ago

I have a question about calculating psnr and ssim. as you know the size of some pictures in database set 14 , B100 and Manga 109 are not a correct multiple of 2, 3, 4, and 8. For this reason, when we downscale them to make low-resolution images and then super-resolution, we face the problem of changing the dimensions of the images. For example, suppose that the size of HR Image (100x100) and LR/3 Image (33x33) and finally SR image is (99x99) so we should calculate psnr and ssim between HR(100x100) and SR(99x99) that they have different size and we can not calculate the PSNR and SSIM between these two image. Is it possible to guide in this field?