The general workflow of ESRGAN is of two parts:
To run python scripts, you will need to have Python installed and have the system path variables set (see installation instructions).
Open up a terminal session ("command prompt" in Windows) and navigate to your system directory that has your ESRGAN installation folder by using the "cd" command (change directory).
Once there, simply type: "python test.py" to execute the python script called "test." This will take any properly formatted image in the "LR" (low resolution) folder, upscale it using the default model, then output the upscaled image into the results folder. The new file will have a "_rlt" suffix to denote that it is the result.
Other models can be used to get differing results. Be open to experimentation as some models handle different input images better than others. See a list of alternate models at the bottom of the installation instructions section. Place them in your "models" folder inside the parent ESRGAN folder.
If you like the results of different models, you can interpolate (blend) the effects of two models at a particular proportional value called "alpha."
An alpha value of 0 would result in 100% model A's result.
An alpha value of 1 would result in 100% of model B's result.
An alpha value of 0.5 would result in 50% model A's and 50% model B's results blended.
Try swapping out different models and changing the alpha value to get better results.
Loading the models:
Running the Interpolation:
Now that you have Model A and Model B set in the "net_interp.py" script, run this python script:
Chances are, you don't want to repeat this process over and over and over again while you're experimenting. In Windows, we can create a simple batch file that will do all this tedious command entry for us and run the sequence of python scripts to get the results.