Table of contents
Real-ESRGAN is an upscaler model that is cheap and fast. The Replicate model also incorporates GFPGAN for fixing faces. It improves the quality of images by using a form of AI called a Generative Adversarial Network (GAN).
It is very good at:
It does not:
In this example a damaged Victorian photo is upscaled 8x in 5.5 seconds. All the compression artefacts are removed, and the face is improved using GFPGAN. Edges are sharper, the hair especially looks good. But the scratches and other damage are not fixed. There are no new details added.
In another example, we can see how well it deals with a low quality JPEG image of text:
Because of its speed and quality in handling low resolution internet images, it is an excellent choice for incorporating into web development pipelines.
With Replicate you can run Real-ESRGAN in the cloud with one line of code.
Try our official JavaScript client to run Real-ESRGAN with Node.js:
Set the REPLICATE_API_TOKEN
environment variable:
Note that Real-ESRGAN takes an image as input. You can provide URLs or base 64 strings here as values for the image.
To learn more, take a look at the guide on getting started with Node.js.
You can also use our official Python client. Read our getting started with Python docs.
You can also run Real-ESRGAN using other Replicate client libraries for Golang, Swift, Elixir, and others.