Paint2Pix: Interactive Painting based Progressive Image Synthesis and Editing

Jaskirat Singh, Liang Zheng, Cameron Smith, Jose Echevarria · DOI

Introduction

Bridging the gap between a novice's imagination and a photorealistic image has long been a goal of computer vision. While generative models like StyleGAN can produce stunning visuals, controlling them remains a significant challenge for non-artists. Traditional methods often require precise semantic maps or detailed sketches, which can be as demanding as the art itself. Paint2Pix introduces a framework for progressive synthesis, allowing users to guide the creation of high-fidelity images through simple, real-time brushstrokes.

The Limitations of Current Modalities

Existing AI-driven synthesis tools generally rely on three primary modalities, each with its own drawbacks:

  1. Semantic Segmentation: Users must paint label maps (e.g., "grass" or "sky"). This process is often tedious and offers limited control over specific textures or fine-grained features.
  2. Sketches: While effective for defining edges, sketches struggle to convey color, shading, and complex non-edge details.
  3. GAN Inversion: This technique maps edits back into a generative model’s latent space. However, most inversion methods are optimized for complete images and fail when faced with the evolving, "messy" states of a painting in progress.

Paint2Pix addresses these gaps by treating user input not as a noisy final product, but as a partial state in a creative trajectory.

Methodology: A Dual-Encoder Approach

The core of Paint2Pix is a decoupled encoder-decoder architecture built upon StyleGAN, designed to handle the nuances of interactive editing.

1. Canvas Encoding ($E_1$)

The first stage involves a Canvas Encoder that learns to map the "manifold of incomplete paintings" to StyleGAN’s latent space ($W$). This allows the model to predict the user’s intent from rudimentary, unfinished strokes, effectively "filling in the blanks" of the visualization.

2. Identity Embedding ($E_2$)

A recurring issue in interactive synthesis is "identity drift"—where a small change, like adding a smile, inadvertently alters the subject's fundamental features (e.g., eye color or face shape). The Identity Encoder ($E_2$) predicts a correctional term ($\Delta_t$) that ensures new edits are integrated while strictly preserving the underlying identity established in previous steps.

3. Training via Autonomous Painting Agents

To train the model without requiring massive amounts of human-labeled painting sequences, the authors utilized an autonomous painting agent called Intelli-paint. This agent "re-paints" existing images from datasets like FFHQ (faces) and Stanford-Cars stroke-by-stroke. This process generates a vast dataset of intermediate canvas states paired with their final photorealistic targets, teaching the model how to interpret incomplete work.

Key Insights

  • Multi-modal Synthesis: By decoupling the canvas and identity encoders, the system can suggest multiple different "identities" (e.g., different car models or facial features) that fit a single crude sketch.
  • Global Edit Directions: The framework can extract latent directions from a user's specific brushstrokes. For instance, a unique way of drawing a smile can be turned into a "global" edit and applied to other images, functioning as a custom, semantically-aware filter.

Performance and Results

Paint2Pix demonstrates significant improvements over state-of-the-art GAN inversion methods such as ReStyle, e4e, and pSp.

  • Quantitative Success: In synthesis-from-scratch tasks, Paint2Pix achieved a Fréchet Inception Distance (FID) of 40.96, nearly doubling the performance of the next best baseline (~79.69).
  • User Preference: In qualitative studies, over 93% of participants preferred Paint2Pix. Users noted the model's superior ability to interpret semantic intent—correctly identifying that white strokes near a mouth meant "add teeth/smile" rather than simply "paint the lips white."

Conclusion and Limitations

Paint2Pix represents a major step toward democratizing digital art. However, it is not without constraints. The model is bound by the "manifold" of its training data; it naturally steers inputs toward realistic outputs, making it difficult to create non-realistic or "out-of-distribution" imagery (e.g., blue skin on a human face). Additionally, the quality of real-image editing remains dependent on the initial inversion accuracy. Future work may focus on expanding the model's flexibility and abstract semantic controls.

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