Home

Awesome

waifu2x-glsl

Fast waifu2x converter with GPU optimization. Using GLSL.

Platform

Download

How to build on macOS

$ #/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install glfw
$ make

How to build on Linux

# #dnf install mesa-libgbm-devel libdrm-devel mesa-libGL-devel mesa-libGLU-devel mesa-libEGL-devel mesa-libGLES-devel
# dnf install glfw-devel
$ make

How to build on Windows

  1. Installing OpenGL
  1. Linking OpenGL

How to use

$ ./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

How to work

01.Nyanko 02.Nyanko 03.Nyanko 04.Nyanko 05.Nyanko 06.Nyanko 07.Nyanko

Demo

Original

Original

Normal Resize

Normal

Waifu2x Resize

References