Fantasy-Studio/Paint-by-Example
A research implementation of exemplar-based image editing using diffusion models and self-supervised training.

Paint by Example enables users to edit images using a reference exemplar image rather than text prompts. The system leverages diffusion models with an information bottleneck and strong augmentations to disentangle source and exemplar images while avoiding trivial copy-paste solutions. It supports arbitrary shape masks for the exemplar and uses classifier-free guidance to maintain controllability, all within a single forward pass of the diffusion model without iterative optimization.
Frequently asked
- What is Fantasy-Studio/Paint-by-Example?
- A research implementation of exemplar-based image editing using diffusion models and self-supervised training.
- Is Paint-by-Example open source?
- Yes — Fantasy-Studio/Paint-by-Example is an open-source project tracked on heatdrop.
- What language is Paint-by-Example written in?
- Fantasy-Studio/Paint-by-Example is primarily written in Python.
- How popular is Paint-by-Example?
- Fantasy-Studio/Paint-by-Example has 1.3k stars on GitHub.
- Where can I find Paint-by-Example?
- Fantasy-Studio/Paint-by-Example is on GitHub at https://github.com/Fantasy-Studio/Paint-by-Example.