TL;DR
This paper introduces a segmentation-based parametric painting framework that mimics human artistic strategies by rendering images layer-by-layer and region-by-region. By combining semantic segmentation with patch-based optimization and dynamic attention maps, it achieves unprecedented detail, scalability to large canvases, and fine-grained stylistic control ranging from photorealism to pure abstraction.
What Problem Does This Paper Address?
Stroke-Based Rendering (SBR) transforms photographs into paintings composed of discrete, parameterized brush strokes. However, current state-of-the-art SBR methods face a major bottleneck: scalability and control. Jointly optimizing thousands of strokes across an entire high-resolution image is computationally intractable, often leading to blurry results, visible seams, or rigid, blocky stroke patterns.
Furthermore, existing automated painters apply strokes uniformly across the canvas. They lack the ability to mimic human artists, who naturally vary their style, stroke density, and level of detail across different semantic elements of a scene (e.g., painting a highly detailed subject against a loosely brushed, abstracted background).
Methods
The authors propose a framework that breaks down the painting process into sequential passes and semantic layers:
- Semantic Layering: A pre-trained DETR model segments the input image into distinct semantic regions (e.g., sky, buildings, foliage), creating $K$ independent layers.
- Patch-Based Batch Optimization: To handle large resolutions efficiently, the canvas is divided into $128 \times 128$ patches. Stroke parameters within these patches are optimized in parallel batches.
- Coarse-to-Fine Passes: The optimization occurs over a series of passes ($P$). Early passes lay down broad, foundational strokes, while subsequent passes use progressively smaller, thinner strokes to capture fine details.
- Dynamic Attention Maps: To determine where to focus brushwork, the system uses two strategies: Uniform (a standard grid for foundational layers) and Selective (targeting patches with the highest $L_1$ reconstruction error to add organic, human-like detail).
- Loss Function: The optimization minimizes a joint loss function combining $L_1$ pixel loss and a VGG16-based perceptual loss using cosine similarity.
Datasets
The semantic segmentation component utilizes a DETR model pre-trained on the COCO Panoptic Segmentation task. For quantitative evaluation and benchmarking against baseline methods, the authors curated a dataset of images across four distinct domains: Objects, Buildings, Streets, and Animals (10 images per domain, evaluated at a $512 \times 512$ resolution).
Key Insights and Ideas
- Human-Centric Heuristics Scale Better: Instead of treating painting as a massive, simultaneous joint optimization problem over the entire canvas, breaking it down into semantic regions and sequential passes makes high-resolution stroke optimization computationally feasible and visually superior.
- Simple Guidance is Sufficient: For the selective attention maps, a straightforward $L_1$ error map between the current canvas and the target image provides excellent guidance for stroke placement. This eliminates the need for expensive perceptual loss calculations during the attention-mapping phase.
- Decoupled Control Enables True Style Variation: By isolating semantic layers, users can independently adjust optimization parameters (such as stroke budget and attention maps) for different parts of the image. This allows for intentional artistic bias, such as rendering a focal point in sharp detail while leaving the background abstract.
Key Results
- Stylistic Versatility: The method successfully generates three distinct style presets: Realism (high-fidelity edge and texture retention), Painterly (loose, impressionistic strokes), and Semantic Abstraction (heavy expressionism focusing purely on the object of interest).
- Quantitative Performance: In reconstruction tests using 4,000 strokes, the proposed method consistently outperformed Paint Transformer (PT), Stylized Neural Painting (SNP), and Learning to Paint (L2P) across all four image domains, achieving lower $L_1$ pixel loss and higher perceptual similarity.
- User Preference: A user study with 30 participants showed an overwhelming preference for this method. For realistic rendering, it was preferred over L2P by 95.45% of users and over SNP by 100%. In visual appeal, it outperformed its closest competitor (L2P) by a margin of 56.82% to 43.18%.
- Computational Efficiency: At a $1024 \times 1024$ resolution, the framework is 4x faster than the leading optimization-based baseline (SNP), completing a 1,600-stroke painting in 99.6 seconds compared to SNP's 447.1 seconds.
Limitations and Future Work
- Lack of Global Canvas Loss: Because the optimization is executed strictly at the patch level ($128 \times 128$), the system currently lacks a holistic, canvas-level loss function during the active optimization phase.
- Future Directions: The authors aim to develop a differentiable pasting module. This would enable a general-canvas level loss to operate alongside the patch-loss strategy, potentially improving global stylistic coherence and seamless blending across patch boundaries.
Summary updated