image-super-resolution icon indicating copy to clipboard operation
image-super-resolution copied to clipboard

unreproducible results as introduction

Open SE2AI opened this issue 3 years ago • 4 comments

dear authors,

I try to use the demo code and the baboon image in your introduction as below:

import numpy as np
from PIL import Image
from ISR.models import RDN
import matplotlib.pyplot as plt

img = Image.open('./input/sx.jpg')
lr_img = np.array(img)

rdn = RDN(weights='psnr-large')
sr_img = rdn.predict(lr_img, by_patch_of_size=50)
res = Image.fromarray(sr_img)
plt.imshow(res)
plt.show()

I test different modes of weight with psnr-large/psnr-small/noise-cancel. However, none of these could generate your result. Same problem also mentioned in #186

I think I must miss something, is there any suggestion?

regards

SE2AI avatar Jun 01 '21 09:06 SE2AI

Hi, are you able to reproduce the results on colab?

cfrancesco avatar Jun 01 '21 09:06 cfrancesco

@cfrancesco no, it didn't work, the result seems not change.

SE2AI avatar Jun 01 '21 11:06 SE2AI

Could you post a screenshot of the results?

cfrancesco avatar Jun 01 '21 11:06 cfrancesco

@cfrancesco sure, both the input and output like the image here https://github.com/idealo/image-super-resolution/blob/master/figures/baboon-compare.png, the output may be slightly different from the input, but one can not figure out with eyes' observation.

SE2AI avatar Jun 02 '21 09:06 SE2AI