Practical overview
When it fits
Use RePaint when you need a code-based inference workflow for reconstructing masked image regions and can work with Python, PyTorch, configuration files and downloaded model data.
Who it is for
- Researchers exploring diffusion-based image inpainting and restoration.
- Developers prototyping image-repair workflows with Python and PyTorch.
- Users preparing image and mask inputs for the included inference code.
Documented uses
- Fill a missing or masked region using surrounding known image content.
- Run the included face inpainting example with its provided configuration.
- Adapt a dataset-matched configuration to specify an image and mask.
Requirements & limits
The code is available in a public GitHub repository and can be cloned. The documented setup uses Python packages and downloads models and data.
- The documented ready-to-use configurations cover ImageNet, CelebA-HQ and Places2, with several included mask patterns.
- Masks use 255 for known regions and 0 for regions to generate.
- RePaint is an inference scheme and does not train or fine-tune diffusion models.
- The project notes that experiments were not reevaluated after a code refactor.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run the face inpainting example
Set up RePaint and generate the documented face example.
Before you start
- Python with pip
- Git
- The listed packages: numpy, torch, blobfile, tqdm, pyYaml and pillow
Steps
Clone the RePaint repository.
Install the listed Python packages.
Install or upgrade gdown and run ./download.sh to download models and data.
Run python test.py --conf_path confs/face_example.yml.
Expected outcome
The example output is placed in ./log/face_example/inpainted.
Guide limitations
- The project says experiments were not reevaluated after a code refactor.
Prepare a configuration for another image
Adapt a dataset-matched configuration to an image and its mask.
Before you start
- A RePaint configuration matching the image type: the documentation suggests _c256 for aligned faces and _inet256 for diverse images.
- An input image and a mask, with known regions marked 255 and regions to generate marked 0.
Steps
Copy the configuration file that best matches the image data.
Set gt_path to the input image location and mask_path to the mask location.
Expected outcome
The configuration identifies the input and the known and masked regions for RePaint.
Guide limitations
- This guide covers configuration only; running inference requires the separate documented example workflow.
- For data beyond faces, places or general images, the project directs users to train a model using guided-diffusion; RePaint itself does not train or fine-tune the diffusion model.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 3 November 2026
- Original website title
- andreas128/RePaint · Official homepage title · retained in its source language

