Paint2Pix: Interactive Painting Based Progressive Image Synthesis and Editing

Jaskirat Singh, Liang Zheng, Cameron Smith, Jose Echevarria

Introduction

Paint2Pix is a novel framework that bridges the gap between crude human scribbles and photorealistic image generation. By learning a mapping from the manifold of "incomplete" paintings to realistic renderings, it allows novice users to progressively synthesize or edit high-quality images (like faces or cars) using just a few well-placed, rudimentary brushstrokes.

The Challenge of User Control

While AI-driven image synthesis has reached incredible heights, controlling that synthesis remains difficult for non-experts. Existing methods usually fall into two categories:

  1. Segmentation-based: These require dense, pixel-perfect semantic maps, which are tedious to create and require massive annotated datasets.
  2. GAN Inversion: These attempt to map user edits back into a pre-trained model's latent space. However, they often struggle with "from-scratch" synthesis and require very detailed strokes; otherwise, they produce "color-smeared" versions of the input.

The authors identify a "missing modality": the primitive, incomplete human painting. Paint2Pix aims to understand user intent from a few messy lines, effectively predicting the final masterpiece the user has in mind.

The Paint2Pix Framework

The core of Paint2Pix is a two-step decoupled encoder-decoder architecture built on top of a pre-trained StyleGAN.

The Paint2Pix architecture featuring decoupled encoders $E_1$ and $E_2$.
  • Canvas Encoding Stage ($E_1$): This encoder takes the current canvas state and a new user stroke to predict a latent vector ($w$) representing the intended final image. It learns the mapping between messy, incomplete paintings and their clean counterparts.
  • Identity Embedding Stage ($E_2$): To prevent "identity drift"—where adding a smile might change eye color or face shape—$E_2$ acts as a correctional layer. It ensures the new prediction preserves the identity of the previous step while incorporating the user's new edit.
  • The Progressive Loop: The system works with an autonomous painting agent (Intelli-paint). The user makes a stroke, Paint2Pix predicts the goal, and the agent fills in details. The user can steer the trajectory at any time with a new stroke.

Training on Incomplete Manifolds

To train a model to understand "incomplete" paintings without a massive human dataset, the authors used the Intelli-paint agent to "reconstruct" images from the FFHQ (Faces) and Stanford-Cars datasets. By saving intermediate, messy frames of the agent's progress, they created a self-supervised dataset of "incomplete painting vs. final target image" pairs.

A key insight was that decoupling intent and identity allows the model to be flexible early in the process (deciding "who") and strict later on (adding specific details like makeup).

Performance and Evaluation

Paint2Pix was evaluated against state-of-the-art GAN inversion methods like ReStyle, e4e, and pSp.

Progressive synthesis results for cars and faces.
  • Quantitative Results: In "from-scratch" synthesis, Paint2Pix achieved a Fréchet Inception Distance (FID) of 40.96, significantly outperforming the next best baseline (e4e at 79.69). Lower FID indicates higher image quality and realism.
  • Qualitative Results: Visual results show that while baselines often produce blurry looks from coarse inputs, Paint2Pix produces sharp, photorealistic features (e.g., realistic teeth appearing from a simple white smudge).
  • User Preference: In a human study, users preferred Paint2Pix outputs over competing methods over 93% of the time across synthesis, semantic, and color edit tasks.

Future Directions

Because the model is tied to the manifold of the training data, it struggles with out-of-distribution requests (e.g., drawing a blue-skinned alien). Additionally, for real-image editing, quality depends on the initial inversion into the GAN's latent space. Future work may involve expanding semantic control for abstract concepts like age or gender through more direct interfaces.

Summary updated

BibTeX
@inproceedings{singh2022paint,
  author = {Jaskirat Singh and Liang Zheng and Cameron Smith and Jose Echevarria},
  title = {{Paint2Pix: Interactive Painting Based Progressive Image Synthesis and Editing}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19781-9\_39},
}
Figure