guptapraful / niqe

NIQE for IQA in python..
224 stars 43 forks source link

scipy.misc.imresize no longer exists #3

Open quenotl opened 4 years ago

quenotl commented 4 years ago

scipy.misc.imresize function have been removed from the latest version of the module. I suggest to replace line 173 by: img2 = skimage.transform.resize(img, [int(np.floor(h/2)), int(np.floor(w/2))],order=3)

Timmate commented 2 years ago

I guess, generating a requirements.txt file or a conda env file would have been helpful here in the first place.

QiuQianSuo commented 1 year ago

Using the following code to replace line 173 could also be helpful im = Image.fromarray(img) size = tuple((np.array(im.size) * 0.5).astype(int)) img2 = np.array(im.resize(size, PIL.Image.BICUBIC))