SRCNN-Tensorflow icon indicating copy to clipboard operation
SRCNN-Tensorflow copied to clipboard

Why is the size of "test_image" different from the original picture

Open MBCmbc opened this issue 6 years ago • 7 comments

The size of the "test_image" is 231231 while the size of the original "butterfly_GT" is 256256.

MBCmbc avatar May 12 '18 06:05 MBCmbc

So when I compute the PSNR with matlab ,it's only about 11 dB, which is too small. I can't solve this problem, who can help me?

MBCmbc avatar May 12 '18 06:05 MBCmbc

One more question ,How did you compute the PSNR? Did the author give the method of computing PSNR in this code? I can't find it.

MBCmbc avatar May 12 '18 07:05 MBCmbc

First it's because the bottom row and further right set of patches is not computed. Use compare_psnr from skimage.measure using the original image cropped to the same size as test image. It should give u a better number.

On Sat, May 12, 2018, 3:00 AM MBCmbc [email protected] wrote:

One more question ,How did you compute the PSNR? Did the author give the method of coputing PSNR in this code? I can't find it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tegg89/SRCNN-Tensorflow/issues/29#issuecomment-388535415, or mute the thread https://github.com/notifications/unsubscribe-auth/ATogiPVWayXMcYZ9OhHafs8Ct4Y219laks5txohygaJpZM4T8Tjb .

PrathamSoni avatar May 12 '18 09:05 PrathamSoni

I set the 'is_train' to False, but I find the size of 'test_image.png' is 336*336 and it seems the test image resolution is very low . Can anyone help me?

lmz123321 avatar Jul 23 '18 01:07 lmz123321

hi.. test image size is reduced as well as image is not same as the org butterfly image bcoz test image in sample is downscaled by a factor of 3 and then upscaled using the same factor. so that image is basically a low resolution image. but can u help me in knowing where the actual results are being stored after training and testing is completed

manojsingla0906 avatar Mar 03 '19 15:03 manojsingla0906

Only a single image is being tested in testing, refer to line 164 (preprocess() call in def input_setup). data[2] takes only the third image in "Set5" directory and results the output image as test_image.png in sample directory.

rockr6 avatar Mar 27 '19 20:03 rockr6

how to see the PSNR?

FJstyle avatar Apr 10 '19 07:04 FJstyle