DmitryUlyanov / deep-image-prior

Image restoration with neural networks but without learning.
https://dmitryulyanov.github.io/deep_image_prior
Other
7.82k stars 1.43k forks source link

ERROR: float() argument must be a string or a number, not '_ImageCrop' #9

Open endpang opened 6 years ago

endpang commented 6 years ago

Under the Python 3.5

get_image yet return pil_to_np result。

modify code

img_np = get_image(fname, imsize)[1]

run successfully。

tuanphuc commented 6 years ago

Update to the latest version of pillow solves the error. pip3 install pillow --upgrade

ThGravo commented 6 years ago

@tuanphuc No, it doesn't... ;) I'm using pillow 5.0.0 and get this error.