Original size 652x870

Training a generative neural network on the style of Claude Monet.

PROTECT STATUS: not protected
Longread translated automatically

The project’s concept is to train a generative neural network to create drawings based on paintings by the renowned artist Claude Monet.

The neural network training material consisted of 35 paintings by the artist.

0

Examples of Learning

Final Series

prompt for both images: «cat fight»

big
Original size 767x765

barbie

Original size 760x762

Lion King cartoon portrait

Original size 764x769

A couple sitting on a bench in a garden

Original size 759x763

chickens are having a dinner with humans

Original size 761x763

anthropomorphic Fantastic Mr. Fox

Original size 758x761

The Grinch is taking Christmas gifts

Final Project Analysis

It is notable that the neural network excels at replicating an artist’s individual style. It is capable of recreating work with brushstrokes characteristic of Claude Monet and selecting a similar color palette—one that is not overly bright, yet expressive.

The work of the neural network versus the work of the artist

Like any modern neural network, this model has some minor flaws in its images. However, these flaws are not conspicuous and do not form the focal point of the composition.

Despite the stylistic unity across all works, one can observe that the color palette is extremely diverse. Much like an artist, the neural network uses color to evoke different moods for various tasks.

A dark and vibrant work by a neural network

Similar dark and bright palettes in the artist’s paintings

Code Analysis

To train a neural network to generate images based on a written prompt in the style of a specific artist, the first step was to compile a dataset of that artist’s work—in my case, Claude Monet—and then process those images. The neural network was implemented on Kaggle. Training the network required employing methods such as Fine-tuning Stable Diffusion XL—to enhance the generative SDXL model using the collected image dataset and achieve the stylistic quality of Claude Monet’s work—DreamBooth—which generates images based on textual descriptions, and LoRA—which allowed for more productive training with less computational overhead and without the need to update the neural network’s parameters, thus easing resource consumption.

First, the environment was prepared in the code.

Original size 991x408

The next part of the code is to create the directory and copy the dataset into it.

Original size 456x129
Original size 635x450

Preview

The next step was creating an auto-caption for each image so the neural network could recognize specific objects within the image and generally understand what it was seeing.

Original size 1845x752

Next, the Stable Diffusion XL model training began. Training utilized 1,000 steps; intermediate steps were not required, and checkpoints were saved every 500 steps.

Original size 602x435
Training a generative neural network on the style of Claude Monet.
Project created at 10.04.2025