TL;DR
This paper introduces a novel stroke-based rendering (SBR) framework that mimics human artistic painting techniques by decomposing images into hierarchical semantic regions. This allows for a coarse-to-fine stroke generation process, resulting in more realistic and artist-like paintings with fewer strokes compared to existing methods.
What Problem Does This Paper Address?
Current automatic painting agents, particularly those using stroke-based rendering (SBR), struggle to produce results that are indistinguishable from human artwork. A key limitation is the lack of a direct, differentiable mapping between the visual appearance of an image and the parameters of painting strokes. This often leads to stroke decompositions that are "non-realistic" or "artist-incompatible," hindering their application in high-quality art generation. Existing methods often fail to capture the hierarchical and progressive nature of human painting, where artists start with broad strokes for structure and then refine details. This results in either overly complex stroke sequences or a failure to represent fine textures accurately.
Methods
The core of this work is a novel SBR framework designed to align with artistic oil painting behaviors. It consists of three main components:
- Semantic Content Stratification Module: This module decomposes input images into hierarchical painting regions that are semantically meaningful. It leverages off-the-shelf models like Depth Anything and Segment Anything to first separate background and foreground, and then further subdivides foreground regions into instance-level semantic masks. Crucially, it uses image gradients to guide the segmentation of finer-grained regions, mimicking how artists focus on areas with rich detail. This results in a tree-like structure of painting regions, ordered from coarse to fine.
- Two-Stage Artist-Like Stroke Generation:
- Coarse-Grained: Rough Structure Fill-in: This stage uses a small number of coarse brushstrokes to fill in the abstract structure and layout of the image. It employs a differentiable stroke renderer and optimizes stroke parameters (position, size, color, rotation) using gradient descent. A CLIP-based loss function is used to ensure semantic alignment between the generated strokes and the input image.
- Fine-Grained: Region Depiction via Multi-Scale Stroke Planning: This stage focuses on depicting detailed textures within each semantic region. It uses a progressive, layer-by-layer approach, starting with coarser strokes and gradually moving to finer ones. This multi-scale stroke search is performed in parallel for different regions, significantly improving efficiency.
- Edge Compensation Module: To address potential boundary inconsistencies between regions and artifacts from stroke rendering, this module refines the edges by performing an additional stroke search weighted by image gradients.
Datasets
The authors used a dataset compiled from the gallery of the Im2Oil [20] paper and supplemented it with five categories: scenery, portrait, animal, building, and still life, totaling one hundred images.
Key Insights and Ideas
- Mimicking Artistic Process is Key: The fundamental insight is that to achieve artist-like paintings, the generation process must mirror how human artists paint – starting with broad strokes and progressively adding detail based on semantic understanding.
- Hierarchical Semantic Regions: Decomposing an image into semantically meaningful, hierarchical regions is crucial for guiding stroke generation. This allows for tailored stroke planning at different levels of detail.
- Gradient-Guided Segmentation: Using image gradients to guide the segmentation of fine-grained regions is an effective way to identify areas with rich textures and details that require specific artistic attention.
- Multi-Scale Stroke Search: Employing a multi-scale approach for stroke generation, from coarse to fine, is more efficient and produces better results than single-scale methods.
- Simulation for Quality Assessment: Integrating SBR into a physical simulation-based painting system provides a more realistic and meaningful way to assess stroke quality beyond simple pixel loss metrics.
Key Results
- High Fidelity and Artist-Like Rendering: The proposed method achieves significantly better painting rendering effects compared to state-of-the-art methods.
- Reduced Stroke Count: The method generates comparable or better visual quality with substantially fewer strokes (e.g., a 20% reduction on average compared to Tong et al. [20]).
- Improved Stroke Quality: Qualitative comparisons and user studies indicate that the generated strokes are more realistic, artist-like, and exhibit better alignment with image semantics and textures.
- Faster Convergence: The method achieves similar painting quality to DPPR [8] with significantly fewer strokes, indicating a faster convergence speed.
- Practicality Demonstrated: The integration with a simulation-based painting system shows that the generated strokes are suitable for driving physical brushes, demonstrating their practical utility for automated painting agents.
Limitations and Future Work
- Computational Cost: While parallel processing is used, the semantic stratification and multi-stage stroke generation can still be computationally intensive.
- Hyperparameter Tuning: The method involves several hyperparameters (e.g., thresholds for segmentation, stroke counts) that might require careful tuning for optimal performance across diverse images.
- Future Work: The authors suggest further exploration of more sophisticated semantic understanding for stroke generation and potentially incorporating more advanced artistic styles beyond oil painting. The simulation-based painting system also opens avenues for further research in interactive art generation and robotic painting.
Summary updated