Closed nikhiljha closed 5 years ago
The same result in the non-cli version as well.
Hi @nikhiljha. I tried the same image as shown on your screenshot but it works fine:
The size of the image is 200x200. It should work fine on any computer.
I guess the issue is with Metal. Can you try to comment out this if block and see if it works? Without Metal support the code should be platform-independent, although the performance would suffer from this.
Yup, it works fine without that if block.
I do have a Macbook Pro with a dedicated GPU though, so it probably should work (?)
If not, maybe it should detect the empty image and fallback to non-metal if necessary, it was "only" about 3x slower without metal.
This feature has been implemented in the latest version.
I did
../waifu2x-mac-cli/waifu2x -t a -s 2 -n 2 -i "$file" -o "output/$file"
to upscale some files, but it outputs a blank image at output/$file.I tried other image files (jpeg) and they work great, but there seems to be an issue either with transparency or file size. The exact images I was upscaling can be found here: https://drive.google.com/drive/folders/1Ok9QfoeLz0XKYUBOHC5aVq4JWXhzyCas