Author Topic: ESRganResizer 1.1.5 (a simple GUI for ERSgan + prefilter) (11/09/2019)  (Read 49570 times)

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
1.07 ready (mostly changed things to easy errors detection):



-Added error detection in prefilter or esrgan processing
-Added error log to esrgan so you can easily see the file witch bugs
-Modded esrgan script so if a file bugs, the processing continue with other files instead of stopping
-Changed the temporary file name to a source file name + numbers so you can easily bug hunting ^^
-If error detected in processing, the temp files aren't auto removed (as long as you don't launch another processing) so you can check the files.

Swallagoon

  • *
  • Posts: 1
    • View Profile
I'm getting an error message that keeps saying the program can't find Python, even though I literally installed Python. Any ideas?





satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
have you added python to system path ?

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
1.08 ready:
-Corrected an overflow bug with big batch files
-Added an option to split the source file in 16 smaller pictures before esrgan processing, with this you can process big file you can't process because of gpu ram limits, but it can generate clipping ... for tests ^^

HybOj

  • *
  • Posts: 6
    • View Profile
have you added python to system path ?

Seems like he did not. I had a same problem.

In the "how to" its stated to install the Python with default settings.
But by default, the "set as system path" option is DISABLED.
That can be confusing for Python newbies like me, also, that setting is easily missed, its not very visible.

It might be worth it, to change the description in HowTo to explicitly state to "enable system path" option.

Just a idea, hope it helps, thanks for a great prog!!!

navjack27

  • *
  • Posts: 2
    • View Profile
i'm noticing an issue with certain image dimensions causing the tiler to create more than 16 tiles and then when the combiner goes to create the final image it fails. cropping the source image down a pixel or two in either height or width usually fixes it but its an annoying thing to do.
i've also had large batches along with image splitting causing overflows.

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
to use the split in 16 feature you need of course to have a width and height as a multiple of 16 or it won't works for exemple 800*608 will be ok but 800*600 won't
i'll do a more flexible version asap
« Last Edit: 2019-05-30 20:25:56 by satsuki »

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
Version 1.09 released :

Changelog
-Corrected a bug if there's special character in folders path
-Added a way better split option for use with esrgan with overlap to avoid bad assembly in final file (and you don't need to have a specific input size to get it works, only a peer number)
-Updated the howto

If you're updatding from older version please install the \runtime\Git-2.21.0-64-bit.exe file

pfakanator

  • *
  • Posts: 2
    • View Profile
I hope to use this tool for easing the use of ESRGAN to sharpen images for the purpose of deepfaking.  I know this is a FF related site but I found no other resource to try and resolve my issue.  I keep getting a "The system cannot find the file specified" error.  Any help would be appreciated.  See debug below:
#############################################################
:#0#: Prefilter of 00068.png
#############################################################

C:\ctp\ESRganResizer>cmd.exe /c start /B /wait /low " " "C:\ctp\ESRganResizer\waifuC\waifu2x-caffe-cui.exe" -i "C:\Temp\DeepFaceLabJesus\workspace\data_src\00068.png" -p cudnn -m noise -n 1 -c 128 -t 0 -o "C:\ctp\ESRganResizer\provo\provo.1.00068.png" --model_dir "C:\ctp\ESRganResizer\waifuC\models\photo"

C:\ctp\ESRganResizer>copy "C:\ctp\ESRganResizer\provo\provo.1.00068.png" "C:\ctp\ESRganResizer\esrgan\LR\00068.png"
The system cannot find the file specified.

#############################################################
#############################################################
#############################################################
:# Splitting sources files, can be long, please wait and don't close the commands files #:
#############################################################
#############################################################
#############################################################

C:\ctp\ESRganResizer>C:

C:\ctp\ESRganResizer>cd "C:\ctp\ESRganResizer\"

C:\ctp\ESRganResizer>move "C:\ctp\ESRganResizer\esrgan\LR\*.*" "C:\ctp\ESRganResizer\input\"
The filename, directory name, or volume label syntax is incorrect.

C:\ctp\ESRganResizer>cmd.exe /c start /B /wait /low " " "C:\ctp\ESRganResizer\step1_create_tiles.sh" --output-dir="C:\ctp\ESRganResizer\esrgan\LR"

#############################################################
:##: Starting ESRgan upscale
#############################################################

C:\ctp\ESRganResizer>C:

C:\ctp\ESRganResizer>cd "C:\ctp\ESRganResizer\esrgan\"

C:\ctp\ESRganResizer\esrgan>cmd.exe /c start /B /wait /low " " python test.py models/1xBC1_take2_260850.pth
Model path models/1xBC1_take2_260850.pth.
Testing...

#############################################################
:##: ESRgan upscale end
#############################################################

#############################################################
#############################################################
#############################################################
:# Merging result files, can be long, please wait and don't close the commands files #:
#############################################################
#############################################################
#############################################################

C:\ctp\ESRganResizer\esrgan>C:

C:\ctp\ESRganResizer\esrgan>cd "C:\ctp\ESRganResizer\"

C:\ctp\ESRganResizer>cmd.exe /c start /B /wait /low " " "C:\ctp\ESRganResizer\step3_assemble_tiles.sh" --input-dir="C:\ctp\ESRganResizer\esrgan\results" --input-postfix="_rlt"

C:\ctp\ESRganResizer>del /Q "C:\ctp\ESRganResizer\esrgan\results\*.*"

C:\ctp\ESRganResizer>move "C:\ctp\ESRganResizer\output\*.*" "C:\ctp\ESRganResizer\esrgan\results\"
The filename, directory name, or volume label syntax is incorrect.

#############################################################
:#0#: Postfilter of 00068.png
#############################################################

C:\ctp\ESRganResizer>copy "C:\ctp\ESRganResizer\esrgan\results\00068.png" "C:\Temp\DeepFaceLabJesus\workspace\data_src\00068.final.png"
The system cannot find the file specified.

C:\ctp\ESRganResizer>del /Q "C:\ctp\ESRganResizer\provo\*.*"

C:\ctp\ESRganResizer>del /Q "C:\ctp\ESRganResizer\esrgan\LR\*.*"

C:\ctp\ESRganResizer>del /Q "C:\ctp\ESRganResizer\esrgan\results\*.*"

C:\ctp\ESRganResizer>del /Q "C:\ctp\ESRganResizer\input\*.*"

C:\ctp\ESRganResizer>del /Q "C:\ctp\ESRganResizer\output\*.*"

#############################################################
:##: Finished
#############################################################

pfakanator

  • *
  • Posts: 2
    • View Profile
*resolved*

dropped cudnn64_7.dll in waifuc folder.

HybOj

  • *
  • Posts: 6
    • View Profile
Satsuki, thanks a lot for this program, it works quite ok even on my problematic PC setup now.

Is there a way to setup the program so it doesnt add the "_Final" suffix to the new files?
Because I have to manually rename them afterwards to the original names...

Thank you :)

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
Not ATM but you can use ant renamer for exemple for batch rename in seconds

HybOj

  • *
  • Posts: 6
    • View Profile
Thanks for suggestion
I found this utility for batch renaming, its VERY detailed and easy to use, so I will share it, its very handy for tasks like this
https://www.bulkrenameutility.co.uk/Download.php

t0b118

  • *
  • Posts: 3
    • View Profile
hello, i'm using this tool but when it finishes it gets a badly fitted

Here's how it looks https://imgur.com/00Yyxz1

can you fix this?
sorry for my bad english.

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
hello, i'm using this tool but when it finishes it gets a badly fitted

Here's how it looks https://imgur.com/00Yyxz1

can you fix this?
sorry for my bad english.
Seems like a split issue, what are the settings you use ?

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
Version 1.1.0 released :

Changelog:
-Corrected the split source function.
-Now the processed files keep theirs original name in and are put in an "esrgan" subfolder of the original file folder's.
-You can include the processing steps in the final filename (for exemple a file "test1" will be named "file1.(doublestep).(upresnet10-2-box).(modelSatsuki.v1.pth).(postfilter-0.5)"
-Added a link to the alsa64 esrgan model github to download more esrgan models.

t0b118

  • *
  • Posts: 3
    • View Profile
Version 1.1.0 released :

Changelog:
-Corrected the split source function.
-Now the processed files keep theirs original name in and are put in an "esrgan" subfolder of the original file folder's.
-You can include the processing steps in the final filename (for exemple a file "test1" will be named "file1.(doublestep).(upresnet10-2-box).(modelSatsuki.v1.pth).(postfilter-0.5)"
-Added a link to the alsa64 esrgan model github to download more esrgan models.

sorry for the delay, I saw now that you released a new version, I will test it and if it gives the same error back  ;)

t0b118

  • *
  • Posts: 3
    • View Profile
I'm getting an error message that keeps saying the program can't find Python, even though I literally installed Python. Any ideas?





[/q

so I tested this new version and now gives this error: https://i.imgur.com/MwEFJwR.png

first type goes, but if I just change the model or put another image then this erro.

already if I try to make 1080p images of this error: https://i.imgur.com/gsThUqB.png

this is the setting I put: https://i.imgur.com/L9JPJiD.png

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
-The runtime error i'll check it
-Your computer can't process the prefilter of your 1080p source, try to disable prefilter and you'll see it's work

ATM prefilter don't split source so if you'r low on gpu ram, big pictures won't be processed, i need to found a way to split source file before prefiltering.
May take me some time to do it

navjack27

  • *
  • Posts: 2
    • View Profile
It seems like splitting works but it's a gamble on if the joining actually aligns.
also there is an issue where if you run consecutive batches it gives an error and you need to reboot the program. annoying.

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
I'll check that asap

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
Version 1.1.3 released :

Changelog:
-Corrected the split source function again (must be ok now).
-Corrected a file accès bug if you change settings between 2 batchs
-Removed the finish popup at the end of processing, you can browse the log before closing it

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
Version 1.1.5 released :

Changelog:
-Corrected issue with esrgan script and unicode characters.
-Reducted the real time log to 500 lines to optimise speed.
-Added video processing (beta but no bug so far with my tests)

Sebanisu

  • *
  • Posts: 171
    • View Profile
If esrganresizer doesn't support changing the output codec and output file extension for video. I would like to request that.

We think that FF8 remaster requires a specific codec for video. So would like to make the output video generated by this tool the correct format to save from converting it afterwards.

I figure you have ffmpeg for that. So if we can alter the commands passed to ffmpeg. Then all done. :)

Thank you.

satsuki

  • *
  • Posts: 782
    • View Profile
    • My softs (french only)
Not planned ATM.
I use x264 as output as it's a standard (and aali driver can play it with the ffmpeg plugin it provides).
If you want to use specific codec just don't use "output to video" option and convert the png back to the video format you want, with ffmpeg or vdub2 ... or use x264 crf 0 (losseless) then transcode it to your favorite codec after