Giter Club home page Giter Club logo

waifu2x_snowshell's Introduction

waifu2x - Snowshell apm Github Releases

This is GUI Shell for waifu2x-converter-cpp, waifu2x-caffe, waifu2x-ncnn-vulkan, Real-CUGAN and Real-ESRGAN

Preview Example

Original
inazuma_(kancolle), blush, smile, blue archive(style), highres, classroom, xd s-4008249648
Original-Magnified Waifu2x
origin waifu2x
Real-CUGAN Real-ESRGAN
cugan esrgan

You can use Snowshell to make your image better.
Snowshell uses C++ and Win32API.

Usage

Just drag & drop your image files (or folder) in to Snowshell! (multiple image supports)
To change your conversion setting, select option at menu bar.

To Use Vulkan Based Converters (Supported GPU Only)

  1. Install latest Graphics Driver. AMD / NVIDIA / INTEL
  2. Choose Converter to download
    2-1. Download waifu2x-ncnn-vulkan to waifu2x-ncnn-vulkan folder.
    2-2. Download Real-CUGAN to realcugan-vulkan folder.
    2-3. Download Real-ESRGAN to realesrgan-vulkan folder.
  3. Select Converter to waifu2x-ncnn-vulkan/realcugan-vulkan.
  4. Set conversion mode on TTA menu.
    4-1. TTA convert mode is slower but higher quality conversion.
  5. Snowshell will start conversion using waifu2x-ncnn-vulkan / realcuan-vulkan.

Notice For waifu2x-ncnn-vulkan:

You cannot use upconv_7 models for x1 mode. please use cunet instead (default)

To Use waifu2x-caffe (NVIDIA GPU Only)

  1. Install latest NVIDIA Graphics Driver.
  2. Put waifu2x-caffe to waifu2x-caffe folder.
  3. Select Converter to waifu2x-caffe.
  4. Set conversion mode on GPU(CPU) menu.
    4-1. TTA convert mode is slower but higher quality conversion.
  5. Snowshell will start conversion using waifu2x-caffe.

To Use cunet model with included waifu2x-caffe:

  1. set model folder to models/cunet
  2. set Custom Option to -p cudnn
    image

To Change Model File

  1. Open config.ini file (if there is no config.ini, launch Snowshell once and close it)
  2. Set your model file directory with absolute path or relative path.
    2-1 You have to use \\ instead of \
    2-2. When you use relative path, path is relative to converter's directory.
  3. Converters default model directory (relative)
    3-1. waifu2x_converter_cpp = models_rgb
    3-2. waifu2x_caffe = models\\upconv_7_anime_style_art_rgb
    3-3. waifu2x_ncnn-vulkan = models-cunet
    3-4. realcugan-vulkan = model-se
    3-5. realesrgan-vulkan = realesrgan-x4plus-anime

To Change Output Extension

  1. Open config.ini file (if there is no config.ini, launch Snowshell once and close it)
  2. Change extension to prefer file format.
    2-1. Check converter's HP to find which file format will be supported.

To Use Advanced Option in Converter

  1. Open config.ini file (if there is no config.ini, launch Snowshell and close it)
  2. Check your converter and fill OptionString with currect option.
  3. To find option for your converter, please visit converter's HP
    3-1. waifu2x_converter_cpp: waifu2x-converter-cpp
    3-2. waifu2x_caffe: waifu2x-caffe
    3-3. waifu2x_ncnn-vulkan: waifu2x-ncnn-vulkan
    3-4. realcugan-vulkan: Real=CUGAN
    3-5. realesrgan-vulkan: Real-ESRGAN
  4. If you want to ignore/override settings that Snowshell supports, add -- to end of optionstring to ignore all settings.
    4-1. you cannot override input file name because it is nessesory to make Snowshell works.

waifu2x_snowshell's People

Contributors

deadsix27 avatar jiwon-park avatar kirill0ermakov avatar wolegca avatar xurdejl avatar yukihoaa 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  avatar  avatar  avatar  avatar

waifu2x_snowshell's Issues

Windows Defender detection as trojan

Describe the bug
This is probably a false positive, but the latest release (2.3) gets blocked by Windows Defender for containing a trojan. According to Virustotal no other antivirus engines detect it as such.

To Reproduce
Try to use it on Windows 10 with Windows Defender enabled.

Expected behavior
Regular run of the application.

Desktop (please complete the following information):

  • CPU: Intel Core i7 6700k
  • RAM: 16GB
  • GPU: NVIDIA GeForce GTX 1080ti
  • OS: Windows 10
  • Converter: n.A.

There are always some omissions when images upscaled

Hello, I tried to upscaled 702 images using waifu2x_snowshell but only 700 images were upscaled and 2 images were not upscaled. There is a problem that If lots of (at least 500) images are tried to be upscaled, part of images (around 0.5% of total images) are not upscaled always.
Please fix this problem. Thank you.

Use both GPU and CPU when batch converting?

The Intel integrated graphics on my lowly dual core desktop Intel Haswell processor takes around 45 seconds to apply 2x-scaling and low noise reduction to a 960x544 image.

Interestingly though, setting snowshell to use my CPU results in the exact same process also taking around 45 seconds (albiet with my CPU overclocked to 4.6GHz), and task manager confirms that it's very much using my CPU instead.

I then got the idea to launch two instances of snowshell, one window set to use the GPU and the other set to use the CPU. Sure enough, it was able to then complete two 960x544 images with the same 2x scaling + low noise reduction in only around 50 seconds or so which is nearly half of the time it would take if snowshell tried processing the same two images only through the GPU or only through the CPU.

So wouldn't it make sense if snowshell had a built-in option to use both the CPU and the GPU when specifically converting multiple files? Now obviously it can't use the GPU and CPU at the same time for a single image, but this way would at least let it process two files at once rather than a single file at a time.

Also ideally it shouldn't just split the allocation evenly (that is, half goes to the GPU and half goes to the CPU) since that would be no good when using a GPU that is vastly faster than your CPU or vice-versa. Therefore it'd probably be best to just treat it as one single queue of files to convert for both the CPU and GPU and simply allocates the next image in the queue to whichever processor finishes first and is ready for another image.

...I did however notice that snowshell does give ever so slightly different results depending on whether the image is processed through the CPU or GPU, but this may only be a difference mathematically and not to a level that any human could actually notice since I discovered this difference via Paint.NET's "difference" layer properties setting rather than by actually looking at the results and the difference may be impossible to actually spot visually anyway.

Error when using Waifu2x-caffe model cunet

Using cudnn-10.2-windows10-x64-v7.6.5.32 version.

Error:

Log file created at: 2020/01/03 13:41:37
Running on machine: DELL7730-XXXXX
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
F0103 13:41:37.764295  3732 cudnn_pooling_layer.cpp:12] Check failed: status == CUDNN_STATUS_SUCCESS (1 vs. 0)  CUDNN_STATUS_NOT_INITIALIZED

With default model there wasn't problem.

config.ini :

[Snowshell]
ConverterNum=1
Noise=0
Scale=4
GPU=1
TTA=0
Export=0
Confirm=1
Lang=1
Debug=0
ScaleRatio=5
OutputDirName=output
[Converter]
waifu2x-caffe=C:\Users\XXXXX\Desktop\Waifu2x\waifu2x-caffe\waifu2x-caffe-cui.exe
waifu2x-converter-cpp=C:\Users\XXXXX\Desktop\Waifu2x\waifu2x-converter\waifu2x-converter-cpp.exe
waifu2x-ncnn-vulkan=C:\Users\XXXXX\Desktop\Waifu2x\waifu2x-ncnn-vulkan\waifu2x-ncnn-vulkan.exe
[Model]
waifu2x-caffe= models\\cunet
waifu2x-converter-cpp=
waifu2x-ncnn-vulkan=
[CustomOption]
waifu2x-caffe=
waifu2x-converter-cpp=
waifu2x-ncnn-vulkan=

Drag'n'drop doesn't work

Good evening!

I'm sorry but the snowshell is working only when I manually open files one by one. When I just drag a folder or a couple of files, nothing happens...

Also sometimes manual opening of a file doesn't work too (in random cases, and only restart of the app can help)...

What can I do to fix this problem? I have some folders with a few hundred images to resize, and that's too hard to open them one by one...

Thank you!

Results are different compared to waifu2x.udp.jp with same image and settings?

I can't help but notice that the results I'm getting from snowshell are different than the results I'm getting with waifu2x.udp.jp.

One thing in particular I've also noticed is that snowshell v1.9 and v2.1 give identical results with the same settings (that is when using GPU for both), but waifu2x.udp.jp updated their algorithm in late 2018, and update that doesn't seem to be present in snowshell.

Does this mean that snowshell uses a different implementation of the waifu2x algorithm than waifu2x.udp.jp does, or has snowshell simply not had its waifu2x algorithm updated to a more recent version?

TTA setting is reset when launching the program

When closing the program with TTA set to enabled, config.ini will have TTA set to 1. However the TTA setting will be reverted to disabled upon restarting the program, and TTA will also be set to 0 after closing the program the second time.

Add auto-update feature

If possible, could you add an auto-update feature?

Because I didn't know github much, I don't know that a new update was released, so I often keep using the old version for a long time when a new version is released. If you add auto-update, it will solve the problem for people like me.

It would be nice if it started automatically when the program started, checked for updates, and if a newer version was available, notified the user and asked want to update.

I would appreciate it if you would consider this.

Implement Video Input Support

Is your feature request related to a problem? Please describe.
Implementing a way to upscale an entire video through the Interface, instead of a picture.

Describe the solution you'd like
Drag and Drop Support for Videos.

Describe alternatives you've considered
I currently use a waifu2x implementation called "dandere2x", which is fast, but can result into blocky artifacting if the source material isn't on par with the block matching system of dandere2x. i would love to have a quick way to use the "real" waifu2x implementation for videos without CLI.

Additional context
Just wanted to say thanks for the software, its working pretty good for images :)

Ukraine version in future?

Hello! Maybe you can Ukraine version in future? I want and can help from this, and thanks for your great job!

Proper handling of directly opening images in Snowshell (such as via right-click -> "Open with...")

Snowshell doesn't know how to really work at all if you try to right-click an image file and then selecting Snowshell from "Open with..."

Initially it'll want to create a config.ini file, and then when trying to convert it'll fail saying to "check your Windows version".

As a reference, waifu2x-cpp GUI from v5.2 of that program works perfectly via the process of right-clicking an image and selecting waifu2x-cpp GUI from "Open with...".

Image progress bar not showing when converting images

Describe the bug
It is not showing the progress table as it should. it started happening today when I used GPU (with TTA). Now it still happens without TTA
It was utilizing a 1.8GB Vram when it first happened, later on when I tried to just denoise them it was using 200 MB Vram and this is how I found that it was doing something in background, but it wasn't consuming power at all, I mean it told it is using very low power.

Desktop (please complete the following information):

  • CPU: [AMD Ryzen 3500]
  • RAM: [8GB]
  • GPU: [ Vega 8]
  • OS: [ Windows 10 64]
  • Converter: [ waifu2x-converter-cpp]

[Edit: Added proof that it was working on background]

Batch image conversion

Now waifu2x-converter-cpp with GUI, I'm very happy! Because I use AMD graphics card.
But now it can only handle one picture, I hope you can add batch processing later.
Although I want to help you, but I am a designer, not a programmer.
And... I have translated it into Chinese, for myself.

In the last: forget my bad English.

Enable Native 4x Upscaling

I see the option in a number of implementations of Waifu2x, including Caffee and Metal. It would be nice to include 4x as a native upscale without needing to enter a custom value.

Rename "Use CPU" on "GPU" menu to "Disable GPU"

The two options under the "GPU" menu are "Use GPU" and "Use CPU".

...but a CPU is not at all a GPU.

But both a GPU and CPU are processors as that's what the 'P' means in both acronyms.

Therefore would it not be more accurate to use the label "Processor" rather than "GPU"?

This would also farther sense if/when the "Use both GPU and CPU" function gets added since that could then be a third option labeled something like, well, "Use both GPU and CPU". EDIT: ...or I guess not since you've now stated that this is not something that Snowshell will implement, so I guess we can scratch that off the list.

Failed to convert some files

Describe the bug
When I try to convert,

Failed to convert some files. Check "error.log"

and there is no information in error.log.

To Reproduce
Steps to reproduce the behavior:

  1. Use 'waifu2x-converter-cpp' or 'waifu2x-caffe'
  2. Click on 'Prefer GPU' (I don't think any other parameters have any effect)
  3. Try to convert
  4. See error

Expected behavior
Regular run of the application.

Screenshots
https://imgur.com/NFaOAsT
https://imgur.com/gFYJS1u

Hardware Info (please complete the following information):

  • CPU: Intel i5-6500
  • RAM: 8GB
  • GPU: NVIDIA GTX 750 Ti
  • OS: Windows 10
  • Converter: waifu2x-converter-cpp, waifu2x-caffe

Additional context
If I use 'Vulkan' or use 'Force CPU only', no error occurs. However, it is inconvenient because the 'Force CPU only' settings are not saved, and I want to know why this is happening.
As a result of checking, the GPU memory is not insufficient at all.

does the snowshell gui offer the option to choose between photo and artwork?

the original waifu2x website has a setting that changes the mode between "photo" and "artwork", im guessing each is optimised for the respective type of image.
however, snowshell does not seem to have this setting, unless i missed it.
so does it exist in snowshell? and if not, is there a way to enable it by editing some config files or using the CLI instead?

thanks in advance.
image

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.