> For the complete documentation index, see [llms.txt](https://cranford-tech.gitbook.io/replicate-ai-and-ml-models-plugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cranford-tech.gitbook.io/replicate-ai-and-ml-models-plugin/creating-predictions/gfpgan.md).

# GFPGAN

GFPGAN is a practical face restoration algorithm for "old photos" or "AI-generated faces". You can learn more about the model [here](https://replicate.com/tencentarc/gfpgan/versions/9283608cc6b7be6b65a8e44983db012355fde4132009bf99d976b2f0896856a3).

&#x20;A full video tutorial on how to use this model can be found below:

{% embed url="<https://www.youtube.com/watch?v=-VlztwBGzns>" %}

You can generate restored images using GFPGAN by using the "Create Prediction - GFPGAN" workflow action.

<figure><img src="/files/0JkdOclor2XTiZ2NdlhS" alt=""><figcaption></figcaption></figure>

It requires the following inputs:

<table><thead><tr><th width="154">Input</th><th width="145.99999999999997">Type of Field</th><th>Description</th></tr></thead><tbody><tr><td>Image URL</td><td>Text</td><td>The URL of the image you're restoring*</td></tr><tr><td>Scale</td><td>Number (integer)</td><td>Rescaling factor. EG if you pick "2", the returned image will be 2x as large.</td></tr></tbody></table>

*\* If you are using an image uploaded via the picture uploader/file uploader element as the value, it's important to set this field to "FileUploader A's value's **URL**" - see below for an example:*

<div align="left"><figure><img src="/files/U5Ipz74KduP7nrpXXVPV" alt="" width="266"><figcaption></figcaption></figure></div>
