tsurumeso / waifu2x-chainer

Chainer implementation of waifu2x
MIT License
165 stars 54 forks source link

an error message in the middle of processing #14

Closed ghost closed 5 years ago

ghost commented 5 years ago

when I tried to enlarge my 132 images with this command python waifu2x.py -a 3 -e png -q 8 -b 8 -l 128 -m noise_scale -s 4 -n 3 -i /home/ucok66/material/4 -o /home/ucok66/waifu i got this message

Traceback (most recent call last):
  File "waifu2x.py", line 175, in <module>
    src = Image.open(path)
  File "/usr/lib/python3.7/site-packages/PIL/Image.py", line 2687, in open
    % (filename if filename else fp))
OSError: cannot identify image file '/home/ucok66/material/4/.directory'

did i did something wrong?

tsurumeso commented 5 years ago

I think the error was occurred because input directory contains some files other than images. I fixed to load only image files. Thank you for letting me know.