Joey's ESRGAN Tutorial
This is the latest revision of this page; it has no approved revision.
Jump to navigation
Jump to search
How to use it
- Put the pictures or textures you want to upscale into the
input(found inside theesrganfolder) - Open a terminal window and navigate to the
esrganfolder (the folder you cloned the fork into in the install guide)- For Windows Shift right click in your
esrganfolder and selectGit Bash Here. - For Linux / MacOS users use either the equivalent feature in your file manager or the cd command.
- For Windows Shift right click in your
- Enter:
- For Nvidia GPUs
python upscale.py models/${theModelYouWantToUse}
- For other GPUs / integrated Graphic
python upscale.py --cpu models/${theModelYouWantToUse}
- For Nvidia GPUs
- Replace
${theModelYouWantToUse}with the name of a model in the models folder. - That was it, the results will be in the
resultsfolder
Other useful Command line switches are:
--input ./input- Your Input folder--seamless- For seamless textures (Textures that repeat without seams)--output ./output- Your Output folder--skip_existing- Skipps already upscaled images that are in your output and input folder--tile_size 512- The tile size, if you run out of VRAM, decrease that value--binary_alpha- If the alpha / transparency channel should be only black or white--alpha_threshold 0.5Sets tha point at which alpha will be white instead of black if using binary alpha--alpha_mode 1Different implementation for how Alpha works, if you use binary alpha, it must be 1 otherwise you can try 2.