Papers › Neural Painters: A learned differentiable constraint for generating brushstroke paintings

Neural Painters: A learned differentiable constraint for generating brushstroke paintings

17 Apr 2019arXiv:1904.08410archive 2025-07-28

Reiichiro Nakano

We explore neural painters, a generative model for brushstrokes learned from a real non-differentiable and non-deterministic painting program. We show that when training an agent to "paint" images using brushstrokes, using a differentiable neural painter leads to much faster convergence. We propose a method for encouraging this agent to follow human-like strokes when reconstructing digits. We also explore the use of a neural painter as a differentiable image parameterization. By directly optimizing brushstrokes to activate neurons in a pre-trained convolutional network, we can directly visualize ImageNet categories and generate "ideal" paintings of each class. Finally, we present a new concept called intrinsic style transfer. By minimizing only the content loss from neural style transfer, we allow the artistic medium, in this case, brushstrokes, to naturally dictate the resulting style.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1904.08410")

Code

Syntology Ran 1 of 12 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: official repository: 9 samples from 1 repository, 0 ran; community (archive-listed): 3 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

reiinakano/neural-painters-pytorch officialmentioned on GitHubpytorchMIT report
libreai/neural-painters-x mentioned on GitHubtfMIT report
shauray8/Neural-Painter mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 1 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
11unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calc_gradient_penalty reiinakano/neural-painters-pytorch/neural_painters/gan_painter.py official repository unverified MIT (permissive) · fd23c3d880c3e469 · report
kl_loss_function reiinakano/neural-painters-pytorch/neural_painters/vae_painter.py official repository unverified MIT (permissive) · cd6fdf76fd433706 · report
load_from_latest_checkpoint reiinakano/neural-painters-pytorch/neural_painters/gan_painter.py official repository unverified MIT (permissive) · 80a2288104dbb177 · report
load_from_latest_checkpoint reiinakano/neural-painters-pytorch/neural_painters/vae_painter.py official repository unverified MIT (permissive) · 480c317886270e1d · report
paint_over_canvas reiinakano/neural-painters-pytorch/neural_painters/canvas.py official repository unverified MIT (permissive) · d30ffba968994297 · report
point_on_curve_1 reiinakano/neural-painters-pytorch/neural_painters/mypaint_env.py official repository unverified MIT (permissive) · 1b08e1e68fe24bfe · report
point_on_curve_2 reiinakano/neural-painters-pytorch/neural_painters/mypaint_env.py official repository unverified MIT (permissive) · 943d47ec94e2ef34 · report
reconstruction_loss_function reiinakano/neural-painters-pytorch/neural_painters/common.py official repository unverified MIT (permissive) · 3ce4d1fe2505363f · report
starting_point_for_ellipse reiinakano/neural-painters-pytorch/neural_painters/mypaint_env.py official repository unverified MIT (permissive) · fd1539c7b1eb5b85 · report
gram_matrix shauray8/Neural-Painter/stylized_NP/utils.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 1090950b58e9358b · report
get_style_model_and_losses shauray8/Neural-Painter/stylized_NP/utils.py community (archive-listed) unverified MIT (permissive) · 55ada60f4f779fd9 · report
img_loader shauray8/Neural-Painter/stylized_NP/utils.py community (archive-listed) unverified MIT (permissive) · 2de30093c7a77a03 · report

Tasks

Style Transfer

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections