Quote

#############################Installation:



First you need to install python, cuda, and dependencies:



1)Install python-3.6.2-amd64.exe (from "runtime" folder - default options + add python to path).



2)Open an admin command prompt and do the following commands (may take some time to process all):

pip install scipy

pip install pillow

pip install numpy opencv-python

If you use a GTX card : pip3 install http://download.pytorch.org/whl/cu90/torch-0.4.1-cp36-cp36m-win_amd64.whl

If you use a RXT card : pip3 install pytorch torchvision cuda100 -c pytorch

pip3 install torchvision



then you can close the command prompt.



3)Install the others runtimes (default options)

ImageMagick-6.9.10-14-Q8-x86-static.exe

vcredist_x64.exe

vcredist_x86.exe

vbrun60sp6.exe

Git-2.21.0-64-bit.exe



You can add your own models (just put them in the \esrgan\models folder).

Some great model are here too : https://github.com/alsa64/AI-wiki/wiki/Model-Database

#############################



#############################Use:



#########Debug options:

-Use CPU instead of GPU (slow !): Use your cpu for processing, very very slow, only if your gpu doesn't support cuda 9+.

-Advanced log : log the errors in addition of standard output in the real time log and the log.txt file.



#########Waifu prefilter auto setup:

In this menu you can set up the waifu prefilter as you witch, DON'T forget to "set waifu prefilter command" to apply your waifu settings.

-Double step : use waifu for noise reduction + upscale 4x + downscale 4x instead of only do a noise reduction, it's more powerfull for cleaning but you'll loose some details.

-Waifu type : set up the IA model used for waifu processing.

-Noise reduction level : set up the power of noise reduction, big value clean a lot but eat a lot of details.

-Downscale type : when using "Double step" you need to choose a downscale type, some are more blury but clean more.



#########EsrGanResize:

Here you can choose the IA models for ESRgan processing, une only one model or interpolate 2 of them.



#########Split source

If the source file is too big for processing with your gpu ram, you can auto split the source (it will be re-assembled after esrgan)



#########EsrGan model type

Most of the models you can found are 4x type (for a 4x upscale) but you can found some 1x models (cleaning only) or from 2x to 8x upscale.

Be sure to choose the right type or the esrgan processing will crash!





#########Postfilter chroma noise reduction

Some of esrgan model produice a chroma noise with some source picture, with this option you can filter the chroma noise after esrgan processing.



#########Prefilter command

Here you can see and edit the command used for prefilter(s).

If you only use waifu, you don't have to edit anything.

If you want to use your own filters here's the syntax to use:

##input## is your source file.

##output## is you final file ready for esrgan processing.

##1## to ##1000## are some temporary files if you need to use multi step processing.

the 'cmd.exe /c start /B /wait /low " " ' part you cans ee in front of all waifu prefilter command tell to the systeme to laucnh a command with low priority and to wait it's ending before do the next command.



exemple of a multi step prefilter:

cmd.exe /c start /B /wait /low " " "somenoisecleaner.exe" -someparams -input ##input## -output ##1##

cmd.exe /c start /B /wait /low " " "somedebandingfilter.exe" -someparams -input ##1## -output ##2##

cmd.exe /c start /B /wait /low " " "somebumpmappingfx.exe" -someparams -input ##2## -output ##output##



#########Save / load prefilter command:

Here you can save, load or delete a command(s) setup.

You can also disable prefilter to use only raw EsrGan.



#########Drag an drop ...:

Don't need to explain that part ^^



#########Add filters information to final file's name

Add informations in the esrgan file name (prefilter, witch model used...), it's usefull to test several settings



#########Output to video...

To process a video with esrgan, it's converted to png files.

If you wan't to convert it back to video, you can use this option to convert the esrgan png to a mkv x264 file (il will also get the source audio's track).

The crf if the quality of the video, smaller value means better quality but bigger file, value from 16 to 24 are good choises.



When you launch the upscale, you'll have a monitoring of the processing, please wait it's finishing, can be long.

If you got some processing error you can found them in the cmd log file.



The processed files output will be in a "ESRgan" subfolder in the original file folder.

Hello, as i have cleaned the tool i use for esrgan + waifu prefilter (to share it with someone who needed it), I share it here too... may be helpfull for some of you ^^You need to extract the archive then follow the howto before using it (need to install cuda, python...)You need a cuda9/10 capable gpu (nvidia gt9xx at least)64bit windows.The processing can take a lot of time (about 3/5s for a 640*480 picture on my gtx1060)As ESRgan is realy gpu/ram dependant, you're going to be limited in source picture size (if too big the esrgan won't process depending en your gpu/ram)I included a 'cpu' processing so you can use it without cuda but it will be realy slow (about 7min for a 640*480 on my core i7 8700k but on small picture it remain resonably fast)here's the "how to" (also included in the archive)download link : http://wowsatsuki.free.fr/ESRganResizer.1.1.5.7z