jmiller656 / EDSR-Tensorflow

Tensorflow implementation of Enhanced Deep Residual Networks for Single Image Super-Resolution
MIT License
330 stars 107 forks source link

error in windows #4

Closed 2017develper closed 7 years ago

2017develper commented 7 years ago

hello i have this error can you help me please and thank you

Traceback (most recent call last): File "test.py", line 31, in x,y=data.get_batch(args.numimgs,args.imgsize,down_size) File "D:\hala\EDSR-Tensorflow-master\data.py", line 67, in get_batch x_img = scipy.misc.imresize(img,(shrunk_size,shrunk_size)) File "C:\Users\USER\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\scipy\misc\pilutil.py", line 490, in imresize imnew = im.resize(size, resample=func[interp]) File "C:\Users\USER\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\PIL\Image.py", line 1556, in resize return self._new(self.im.resize(size, resample)) TypeError: integer argument expected, got float

jmiller656 commented 7 years ago

Whoops, looks like I made a mistake and forgot to force integer division of image sizes. I've just pushed an update that should fix this. Feel free to re-open this issue if you continue to experience problems