Longread translated automatically
Original size 1140x1601

Training for a generational neurostudent ♪ New life for a childhood friend ♪

PROTECT STATUS: not protected

Project idea

When I was eight years old, I was given a large blue snake, a soft toy. I named him Kudav. Since then, it’s my favorite childhood toy, and I’ve decided that it needs to be permanent in digital space so that it can always be around. To implement this idea, I have decided to use the technology of learning the generic neuronet of Stable Diffusion so that it can accurately create different images with Kudav.

Why Kovad is a unique and unique subject for neuronet education

Original size 3056x3056

Photo by Kudawa

Although Kudav looks like an ordinary blue toy snake, he has several features. First of all, he has dark blue spots on his back, second of all, once after washing, his tongue suddenly split, and now he lives with two languages. Third, once again, after the laundry, Dad hung his non-wedding ropes to dry, but the filler inside Kodava was knocked down by dividing the snake’s body into pieces. Now it can be unnatural to pull it off.

Model learning process

To learn neuronets, you need a dataset with images of Kudad. I did a little photo shoot for him, and then I scrubbed all the images to 1:1 and manually reduced them to 1024×1024 pixels. When I created the photo, I tried to show Kudava in different positions, but I kept the focus on his unique face. As a result, 76 photos of the snake were collected on the dataset.

Original size 1920x820

Examples of Kudawa photos on the dataset

Original size 1920x930

part of the dataset collected

[  Shag 1 ] Next, I moved to the Kaggle programming environment, and I imported a source laptop with a code for the «Stable Diffusion XL» in LoRA technology. Then she connected the GPU P100 accelerator and connected the laptop to the Internet. Next step, I installed all the necessary libraries — bitsandbytes and diffusers, as well as a special script for model learning.

0
1/3

Preparation for model training

[  Shag 2 ] At this stage, I’m, first, downloading the collected dataset with Kudav to Kaggle and checking if it’s properly loaded. Second of all, I’m building a directory, and I’m copying all the dataset files there, and I’m rechecking again that everything works right.

Original size 1920x942

Establishment of a directory

Original size 1920x942

It’s working!! Hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey, hey.

[  Shag 3 ] Then I generate prompts to the pictures so I can neuralize what’s in the photo. To that end, I download the BLIP model and launch the Caption_images function, which describes and describes every picture of Kudawa from the dataset. Everything is recorded in the variable imgs_and_paths, where this list of images with signatures is created. The list is then collected in a file, where every signature is now accompanied by a photo of KUDAV snake, which is responsible for ensuring that the model then refers specifically to Kudava when producing its images. At the end, I remove this model from memory to make room.

0
1/2

BLIP image creation process

Original size 1920x942

Example of outcome 3 steps

[  Shag 4 ] At this stage, the script accelerate needs to be initialized so that the model can eventually be saved on the Hugging Face portal. Next on this portal, I created a recording and reading current that entered into the code box on the laptop, and you can start learning.

Original size 1920x942

Hugging Face connection

[  Shag 5 ] Before launching the training, it is necessary to install a dataset library and then set the parameters on the accelerate command: the name of the dateset is kudav, the directory with the model is kudav_snake_LoRA, and the code mark is a photo of KUDAV snake. In the first version of the training, I put 1024 as my photo, with the maximum number of steps, 1,000 and 512 with a checkpoint. The whole learning process was supposed to take about seven hours, but, unfortunately, after five hours of model operation, I had to start again. For the second time, I started training already in resolution 512, the total number of steps also in 1,000 and in cuppets after every 125 steps so that you could see how the model is being taught at different stages. But my laptop was full-on, so I’ve made a lot of efforts to teach neurosmart. As a result, I had a 512 resolution with 500 steps, and it took about an hour to learn the model.

Original size 1920x471

Installation of datasets library

Original size 1920x942

Model learning parameters

0
1/2

First attempt (disrupted)

Original size 1920x942

Learning process during second — first attempts

Original size 1920x942

Outcome parameters

Original size 1920x471

Checking the directory with a trained model.

0
1/3

upload the model on Hugging Face

Original size 1920x942

upload our model to generate images.

Result

Training for a generational neurostudent ♪ New life for a childhood friend ♪
Юлия Новикова обучила генеративную нейросеть Stable Diffusion, чтобы создавать изображения с её любимой игрушкой Кудавом. Проект включает в себя уникальный датасет с 76 фотографиями змеи, у которой есть необычные физические особенности, такие как раздвоенный язык и неестественно выкрученное тело.
Project description created with AI
Project created at 10.04.2025
More projects in artificial intelligence
Алёна Сегимова создала серию натюрмортов, сгенерированных нейросетью на основе любительских работ начинающих художников. Проект демонстрирует, как модель воспроизводит наивный визуальный язык натюрмортов с характерными для них ошибками и стилистическими особенностями.
Анна Кузнецова обучила генеративную нейросеть стилю фотографа Альфреда Штиглица, создавая изображения, напоминающие его работы по настроению и композиции. Проект включает в себя обучение модели на 200 фотографиях Штиглица и генерацию изображений, соответствующих эстетике пикториализма.
Дарья Плетнева обучила генеративную нейросеть в стиле художника Robotpencil, чтобы создавать изображения в его художественном направлении. Проект включает сравнение сгенерированных изображений с оригинальными работами художника и анализ стилистических особенностей.
Абай Жабоев создал проект GIGER AI, в котором обучил нейросеть генерировать изображения в стиле художника Ханса Гигера. Проект включает в себя подготовку датасета из 13 картин и демонстрацию результатов обучения модели Stable Diffusion.
start.hsedesign
The HSE Art and Design School spans 4 campuses, offering 9 bachelor's programs and approximately 40 specialized tracks. To apply, you must not only submit your documents on time but also upload your creative project—if required by your chosen program.
applicants’ projects
faculty of pre-university training
lyceum
online school
children's school
We use cookies to improve the operation of the HSE website and to enhance its usability. More detailed information on the use of cookies can be fou...
Show more