imxieyi / waifu2x-mac

Waifu2x-ios port to macOS, still in Core ML and Metal
MIT License
448 stars 47 forks source link

Upscale not working - segmentation fault & static results #24

Closed tillyfittleworth closed 4 years ago

tillyfittleworth commented 4 years ago

Hi! The script was working fine since I first download but for some reason, it broke down today. I've attached the terminal messages and the upscale result too. It copies the original image to 4 horizontally and the rest is just fuzzy static.

I'm running on a MacBook Air with MacOS Catalina 10.15.6

Any help would be appreciated! :D

tilly@192-168-1-101 ~ % cd /Users/tilly/Downloads/Waifu2x 
tilly@192-168-1-101 Waifu2x % ./waifu.sh
"With Alpha: false"
"Really With Alpha: false"
./waifu.sh: line 8:  1078 Segmentation fault: 11  ./waifu2x -n 1 -s 2 -i "$source" -o "$outputpng"
"With Alpha: false"
"Really With Alpha: false"
./waifu.sh: line 8:  1079 Segmentation fault: 11  ./waifu2x -n 1 -s 2 -i "$source" -o "$outputpng"
"With Alpha: false"
"Really With Alpha: false"
"With Alpha: false"
"Really With Alpha: false"
Screenshot 2020-10-13 at 7 37 40 pm
tillyfittleworth commented 4 years ago

Figured it out! It was because the images were in Grey mode. Turning them into RGB did the trick.