Downloading Real Esrgan Upscalers

This page will tell you how you can download realesrgan models to use with our RealEsrgran pipeline

You can use any of the 6 compatible RealEsrgran models/weights with our RealEsrgran pipeline for upscaling images. Here are the model ids:

  • R-ESRGAN General 4xV3

  • R-ESRGAN General WDN 4xV3

  • R-ESRGAN AnimeVideo

  • R-ESRGAN 4x+ Anime 6B

  • R-ESRGAN 4x+

  • R-ESRGAN 2x+

To download the .pth weights files corresponding to each model id, you can use our downloader like such:

from auto1111sdk import download_realesrgan

download_realesrgan("<MODEL ID>", "<LOCAL PATH TO FILE HERE>")

For example:

download_realesrgan("R-ESRGAN 4x+", "upscaler.pth")

The local file you save it to must be a .pth file. After this, you can simply input this path ("upscaler.pth") into our upscaler pipelines and use it for inference.

Last updated