Stroke-based Neural Painting and Stylization with Dynamically Predicted Painting Region

Teng Hu, Ran Yi, Haokun Zhu, Liang Liu, Jinlong Peng +3 more
9/7/2023
38 citations
cs.CV

Official code: sjtuplayer/Compositional_Neural_Painter (55 stars, Python, last commit 2023-10-16).

Abstract

Stroke-based rendering aims to recreate an image with a set of strokes. Most existing methods render complex images using an uniform-block-dividing strategy, which leads to boundary inconsistency artifacts.

Show full abstract

To solve the problem, we propose Compositional Neural Painter, a novel stroke-based rendering framework which dynamically predicts the next painting region based on the current canvas, instead of dividing the image plane uniformly into painting regions. We start from an empty canvas and divide the painting process into several steps. At each step, a compositor network trained with a phasic RL strategy first predicts the next painting region, then a painter network trained with a WGAN discriminator predicts stroke parameters, and a stroke renderer paints the strokes onto the painting region of the current canvas. Moreover, we extend our method to stroke-based style transfer with a novel differentiable distance transform loss, which helps preserve the structure of the input image during stroke-based stylization. Extensive experiments show our model outperforms the existing models in both stroke-based neural painting and stroke-based stylization. Code is available at https://github.com/sjtuplayer/Compositional_Neural_Painter

View on arXivView PDF

Code Implementations(1)

[MM 2023] Stroke-based Neural Painting and Stylization with Dynamically Predicted Painting Region

5511PythonAug 3, 20233 years ago
ai-artai-paintingddpgoil-paintingstroke-based-rendering

Similar Papers

Cite this paper

@article{hu2023strokebased,
  title  = {Stroke-based Neural Painting and Stylization with Dynamically Predicted Painting Region},
  author = {Teng Hu and Ran Yi and Haokun Zhu and Liang Liu and Jinlong Peng and Yabiao Wang and Chengjie Wang and Lizhuang Ma},
  year   = {2023},
  eprint = {2309.03504},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.03504v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.03504.svg)](https://codeofpaper.com/paper/2309.03504)

Discussion