Coder Social home page Coder Social logo

aaronfeng753 / waifu2x-extension Goto Github PK

View Code? Open in Web Editor NEW
167.0 8.0 18.0 155.62 MB

Image, GIF and Video enlarger/upscaler achieved with waifu2x and Anime4K. [NO LONGER UPDATED]

License: Other

Python 91.22% Batchfile 0.01% JavaScript 0.19% Makefile 0.11% C 8.47%
waifu2x anime4k python super-resolution video-enlarger gif-enlarger image-compression image-enlarger gif-compression machine-learning

waifu2x-extension's Introduction

.


Waifu2x-Extension

https://github.com/AaronFeng753/Waifu2x-Extension/releases/latest

https://github.com/AaronFeng753/Waifu2x-Extension/blob/master/User_Guide.md

What is Waifu2x-Extension?

Image & GIF & Video Super-Resolution using Deep Convolutional Neural Networks.

Based on Waifu2x-ncnn-vulkan and Waifu2x-converter .

Thanks to waifu2x-ncnn-vulkan, Waifu2x-Extension could use any kind of gpu that support Vulkan, 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.

mainmenu

Features

New features brought by this extension:

  • Much more friendly CUI (Character User Interface).
  • Achieved with waifu2x-ncnn-vulkan, waifu2x-converter and Anime4K.
  • Support both 2D Anime-style image and 3D Real-life image
  • 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
  • Multi-threaded mode
  • Protect Gif files
  • Error catching
  • Record error log
  • Sleep mode
  • Notification sound
  • Compatibility test
  • Record running log.
  • And more

Samples

Original 2D Anime Imgae 480x300 (.jpg 93.2 KB):

Original Imgae

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

Scaled Imgae

Comparison

Comparison

Original 3D Real-life Imgae 800x535 (.jpg 81.4 KB):

Original Imgae

After 4x magnification, level 2 denoise and compress 3200x2140 (.jpg 881 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:

Demonstration(v3.5)

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

Integrated component(In releases):

  • waifu2x-ncnn-vulkan version Nov 4, 2019

  • Anime4K Java v0.9 Beta

  • ffmpeg version 4.2.1

  • gifsicle version 1.92

  • Waifu2x-converter version: 2015-11-30T02:17:24

  • ImageMagick 7.0.9-12-portable-Q16-x64

Credits:

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.

waifu2x-extension's People

Contributors

aaronfeng753 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

waifu2x-extension's Issues

视频放大倍数希望增加1.5倍选项

很多人现在依然是使用1080P的屏幕,720P的视频可能是会需要waifu2x拉升的主要视频源,使用3.8版本测试视频压制过程中,发现和图片一样只有整数倍率(1/2/4/8)放大,只是图片而言其实还好,但是就视频来说,720P 2X放大直接就来到2K分辨率了,即便waifu2x足够优秀,拉伸倍数越高一定会造成细节损失越大,希望能增加1.5倍率放大选项或者直接能够像caffe版本一样可以.1倍率手动设置,这样无论是图片还是视频都可以灵活很多

Output converted files to different path?

Hello :)

I was wondering if there was a way to do the following:

  1. Set Scaled_Waifu2x to NOT be removed upon converting files (as when I convert new images in the folder, the files that are already in Scaled_Waifu2x are deleted)
  2. Set an ouput path for the converted files to move to after conversion

At the moment I currently have my settings to delete the original after conversion. If i then add a new picture to the folder, run the conversion again, all images that were in scaled_waifu2x are deleted, leaving ONLY the recently added image.

I can at the moment just setup a script to move anything in "scaled_waifu2x" to a different folder.

Thanks :)

能否设置图片质量?

试用了最新版本测试图片,出图大小,质量都和http://waifu2x.udp.jp/出图有较大差距。(原图700kb左右,http://waifu2x.udp.jp/ 【照片模式,2倍放大,降噪中】出图5MB,修复效果满意,Waifu2x-Extension 默认参数【2倍放大,降噪2】出图940kb竟然出现了许多原图未出现的锯齿)image quality 参数修改没有效果,没看到有其他修改出图质量的选项,想问下能否解决这个问题?毕竟这个gui界面还是很不错的,显卡是RX570

GUI is too wide

As the program is usually used by dragging images inside, the interface is partially hidden on a 1920x1080 screen (picture below), including the Start button. I believe it would be interesting to make the interface less wide, for example by joining GIF and Videos in one tab or reducing the width between the tabs.

image

Update Anime4K to v1.0 RC2?

Anime4K has released v1.0 RC2 with reduced texture loss, aliasing and banding. The time cost is similar with v0.9. Is it better to update Anime4K to v1.0 RC2?

请问遇到兼容性问题应该怎么解决

我是昨晚帖子里遇到使用问题的人
之前3.1版本使用waifu2x-ncnn-vulkan这个模式处理视频时,进度会一直卡在0不动,创建的新文件也不会进行处理,右侧的计时功能则正常
将模式换做waifu2x-converter时虽然会正常运作,但每当程序将视频处理完毕后会出现报错现象,报错的同时原本由程序创建处理好的新文件也全被程序自动删除了

以上问题在换了3.15版本后,于作者您新增加的兼容性检测功能得到了解答:
Compatible with waifu2x-ncnn-vulkan : False
Compatible with waifu2x-converter : True
Compatible with Anime4k : False
请问以上三条兼容性问题应该如何解决?
20190915174404

"An error occurred, pls report this to the developer."

I experienced this error while scaling my images, it was OK since 17/20 pictures.
Then the problem suddenly occurred.

---------------------------------------------------
                   !!! Error !!!
---------------------------------------------------
Traceback (most recent call last):
  File "Waifu2x-Extension.py", line 6820, in <module>
    init()
  File "Waifu2x-Extension.py", line 6796, in init
    MainMenu()
  File "Waifu2x-Extension.py", line 258, in MainMenu
    Image_Gif_Scale_Denoise_waifu2x_ncnn_vulkan()
  File "Waifu2x-Extension.py", line 606, in Image_Gif_Scale_Denoise_waifu2x_ncnn_vulkan
    Process_ImageModeAB(inputPathList_folders,orginalFileNameAndFullname,JpgQuality,models,noiseLevel,scale,load_proc_save_str,tileSize,gpuId_str,saveAsJPG,delorginal)
  File "Waifu2x-Extension.py", line 795, in Process_ImageModeAB
    originalName=list(orginalFileNameAndFullname.keys())[list(orginalFileNameAndFullname.values()).index(fileName)]
ValueError: 'temp.jpg' is not in list

---------------------------------------------------
An error occurred, pls report this to the developer.

Report link:
https://github.com/AaronFeng753/Waifu2x-Extension/issues

You can download the Latest release here, maybe the bug is already fixed:
https://github.com/AaronFeng753/Waifu2x-Extension/releases/latest
-------------------------------------------
Press [Enter] key to restart the software.

Error Message

I got this error message at some point, i thoiught it only occurs at broken Gif files, but thats not the case,

I also recommend the possibility to save files in a different folder thasn the input folder and make tighter scale values possible like caffee does 1, 5/ 3 etc .

System Specs:

Win 10 Home
Waifu Extension 4.1
Amd Radeon Saphire R9 290 Oci Tri X

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.