/Waifu2x-Extension

Image, GIF and Video enlarger/upscaler achieved with waifu2x-ncnn-vulkan, waifu2x-converter and Anime4K.

Primary LanguagePythonOtherNOASSERTION

Waifu2x-Extension

What is Waifu2x-Extension?

Image & GIF & Video Super-Resolution for Anime-style art using Deep Convolutional Neural Networks.

Based on waifu2x-ncnn-vulkan (version 20190712) and Waifu2x-converter .

Thanks to waifu2x-ncnn-vulkan, Waifu2x-Extension could use any kind of gpu that support Vulakn, even Intel GPU.

If your gpu doesn't support vulkan, you can use Waifu2x-converter, which is also intergrated into the Waifu2x-Extension.

Already been tested on AMD RX 550, NVIDIA GeForce GTX 1070 and Intel UHD 620.

Features

New features brought by this extension:

  • Much more friendly CUI (Character User Interface).
  • Achieved with waifu2x-ncnn-vulkan, waifu2x-converter and Anime4K.
  • Support 1x/2x/4x/8x/.... magnification
  • Batch enlarge still images and GIF dynamic images (Waifu2x-ncnn-vulkan & Waifu2x-converter)
  • Batch enlarge video files (Waifu2x-ncnn-vulkan & Waifu2x-converter & Anime 4k)
  • Personalization
  • Online update
  • Save the enlarged image target as .jpg
  • Lossless compression of .jpg images after the target is saved
  • Optimize enlarged GIF dynamic images to reduce space usage
  • Display processing progress and remaining time
  • Smart selection of models
  • Gif compression & image compression (multi-threading and multiple compression levels)
  • Benchmark (to get the tile size value for your computer)
  • Multi-threaded mode
  • Protect Gif files
  • Error catching
  • Record error log
  • Sleep mode
  • Notification sound
  • Compatibility test
  • And more

Samples

Original Imgae 480x300 (.jpg 93.2 KB):

Original Imgae

After 8x magnification, level 3 denoise and compress 3840x2400 (.jpg 525 KB):

Scaled Imgae

Original GIF 500 x 372 (493 KB):

Original GIF

After 2x magnification, level 2 denoise and gif optimize 1000 x 744 (3.77 MB):

Original GIF

Github doesn't support play video online, pls check link below:

Screenshot

mainmenu

Demonstration

Demonstration-en

How to fix compatibility issue :

waifu2x-ncnn-vulkan:

Re-install gpu driver or update it to the latest.

waifu2x-converter:

Buy a new computer.

Anime4k:

Install the latest JDK and JRE

Credits:

waifu2x-ncnn-vulkan: https://github.com/nihui/waifu2x-ncnn-vulkan

FFmpeg: https://ffmpeg.org/

Gifsicle: https://www.lcdf.org/gifsicle/

Anime4K: https://github.com/bloc97/Anime4K

Waifu2x-converter: https://github.com/WL-Amigo/waifu2x-converter-cpp

Icon:

Icons made by : Freepik (https://www.flaticon.com/authors/freepik)

From Flaticon : https://www.flaticon.com/

Donate

If this extension helps you, please donate to support developers.

donate

Note: The user agreement of the software is modified based on the MIT protocol, allowing others to make secondary modifications to the software or to use the software-processed images, gifs, and videos for commercial purposes (via the consent of the original author of the image, gif, and video content) However, it is forbidden to use the software for commercial use after the second modification, including but not limited to secondary packaging and sales(for example: sale this software on Taobao or Ebay), integrated in other charging software. After the second modification, the source code must be disclosed. For details, please refer to the built-in user agreement. When you open the software, or modify the software, you agree to the software built-in agreement.