Giter VIP home page Giter VIP logo

waifu2x-glsl's Introduction

waifu2x-glsl

Fast waifu2x converter with GPU optimization. Using GLSL.

Platform

  • Linux with GLEW
  • macOS with GLEW
  • Windows with GLFW and GLEW
    • nupengl.core with NuGet

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-libEGL-devel mesa-libGLES-devel
# dnf install glfw-devel
$ make

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

  • ./waifu2x_glsl -s 2.0 -m noise2_model.json waifu_s.jpg -o waifu_d.png Waifu2x

References

waifu2x-glsl's People

Watchers

Hanjie Xu avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.