Original size 1140x1600

Self-Portrait Generation

PROTECT STATUS: not protected
Longread translated automatically
The project is taking part in the competition

Concept

For this project, I created a series of self-portraits based on my photographs. All the self-portraits are united by a single style: black-and-white graphic work, a sense of nonchalance, simple line drawing, and realism. Yet, each portrait is unique in its pose, angle, emotion, clothing, and hairstyle.

big
Original size 1920x1080

Self-portraits that were used to train the model.

Self-portraits used to train the model.

I was curious whether I could generate similar self-portraits in a painted style using a trained model, where I and my facial features would still be recognizable, and whether the neural network could recognize my emotions and generate similar ones.

Working with Code

The code work was performed based on the source code provided in the assignment.

Installing External Libraries

big
Original size 1920x1080

Importing the dataset. In my case, this is 20 self-portraits, 1000×1000 pixels in PNG format.

Original size 1920x1080

Creating image captions and grouping pairs of images with their captions.

Original size 1920x1080

Creating a unique prefix.

Original size 1920x1080

Model characterization and model training.

Original size 1920x1080

Stable Diffusion Setup

Original size 1920x1080

Image Generation.

Original size 1920x1080

My Generations

When generating images, I aimed to understand the model’s capabilities—specifically, what emotions it could render on my face. As a result, I ended up with several variations for each emotion.

Joy

0
1/2

«painting of a DORA person in DORAS style, pure white background, smiling face»

Relaxed face

0
1/2

«painting of a DORA person in DORAS style, pure white background, resting face»

Sadness

Original size 1920x1080

painting of a DORA person in DORAS style, pure white background, sad face

Shock/Surprise

Self-Portrait Generation
Project created at 25.10.2026