Fast waifu2x converter with GPU optimization. Using GLSL.
- Linux with GLEW
- macOS with GLEW
- Windows with GLFW and GLEW
- You can download this program from here.
$ #/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install glfw
$ make
# #dnf install mesa-libgbm-devel libdrm-devel mesa-libGL-devel mesa-libGLU-devel mesa-libEGL-devel mesa-libGLES-devel
# dnf install glfw-devel
$ make
- Installing OpenGL
- nupengl.core with NuGet
- Linking OpenGL
- Choose ‘Linker-> General’.
- In the ‘Additional Dependencies’ field click on the arrow that appears at the end of the field and choose Edit…
- In the dialog that appears enter “opengl32.lib”
$ ./waifu2x_glsl -h
Usage: ./waifu2x_glsl [options] file
Options:
-h Print this message
-m <model name> waifu2x model name [noise2_model.json...]
-s <scale> Magnification [1.0, 1.6, 2.0...]
-o <output name> output file name [*.png, *.jpg]
$ ./waifu2x_glsl -s 1.0 nyanko.jpg
$ ./waifu2x_glsl -m vgg_7/art_y/noise3_model.json nyanko.jpg