-
Notifications
You must be signed in to change notification settings - Fork 13
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
Quenstions of testing phase #5
Comments
The PSNR and SSIM was computed only on Y channel as I mention in the paper, and the code just copied the bicubic upsampled Cb and Cr channels for visualize the colored image. |
Thank you for finding the BGR and RGB issue. |
The general practice of computing psnr metric is converting the images (predicted and ground-truth) to uint8 type firstly, and then sending them to compute_psnr function in Matlab. In python, the skimage.messure.compute_psnr() function can be used. I find that your customized psnr function is different from that of Matlab, please reedit it. @opteroncx |
OK, thank you! |
Line 95 in 4bbdfde
Hello, I can't find the getY function in your code. @opteroncx |
Your convert_rgb_to_ycbcr() function is different from that in Matlab, please reedit it. I recommend to use skimage.color.rgb2ycbcr(). @opteroncx |
This function was referred from |
Due to the other state-of-the-art methods use rgb2ycbcr() function in Matlab, the convert_rgb_to_ycbcr() function appeared in your code could be changed to skimage.rgb2ycbcr() that is same as rgb2ycbcr() in Matlab for fair comparison. @opteroncx |
Lines 180 to 185 in 14860b5
Lines 165 to 166 in 14860b5
These are different from https://en.wikipedia.org/wiki/YCbCr, [65.481 / 256.0, 128.553 / 256.0, 24.966 / 256.0] can be modified to [65.738 / 256.0, 129.057 / 256.0, 25.064 / 256.0] . @opteroncx
|
Same for Y channel in the source code of skimage |
The skimage.color.rgb2ycbcr() is
|
emmm.... |
Maybe I have to inform https://github.com/jiny2001 about this issue, since I borrowed this function from https://github.com/jiny2001/dcscn-super-resolution |
Hello, I carefully read your test code and find that you use opencv to read image.
SESR/test.py
Lines 63 to 65 in e43f85b
Actually, the
img
is in BGR mode. So the following operations are wrong.SESR/test.py
Lines 86 to 89 in e43f85b
In addition, the customized convert_rgb_to_y() and convert_rgb_to_ycbcr() functions are different from these in Matlab. I find skimage.color.rgb2ycbcr() is same as that in Matlab.
SESR/test.py
Lines 154 to 162 in e43f85b
The inputs of this PSNR function (pred, gt) are float type, but the traditional inputs in Matlab are uint8 type, and I find that using your PSNR function can compute higher psnr index. I obtain the rgb images by using the test code and then test these in Matlab R2017a and get the results as follows.
@opteroncx
The text was updated successfully, but these errors were encountered: