Исходный размер 1140x1600

NeurоГойя

ИДЕЯ ПРОЕКТА

Меня поразили картины Франсиско де Гойи, особенно его поздний, мрачный период. В этих работах внимание привлекают искажённые лица, напряжённые фигуры и тёмная, почти гнетущая атмосфера. Образы Гойи кажутся лишёнными внешней красоты, но при этом обладают сильным эмоциональным воздействием. В них ощущается страх, тревога и внутренняя деформация человека, что делает эти произведения актуальными и сегодня.

ИИ-проект исследует, как алгоритм может унаследовать и переосмыслить мрачный период творчества Франсиско де Гойи — прежде всего «Чёрные картины» и позднюю графику — не как стиль, а как состояние сознания.

ИСХОДНЫЕ ИЗОБРАЖЕНИЯ

Исходный размер 2665x512

Пример изображений из датасета

Я генерировал изображения с помощью модели Stable Diffusion. Для обучения было выбрано 16 картин из серии «Черной живописи» Франсиско де Гойя в формате 1:1.

ГЕНЕРАЦИЯ ИЗОБРАЖЕНИЙ

Я подробно описал сюжеты для первых четырех изображений в духе Франсиско де Гойя: мрачные, тревожные сцены с искажёнными лицами и бледной, характерной для его стилистики палитрой.

Исходный размер 1521x1521

Промпт: «A close-up composition focused on several overlapping faces emerging from darkness. The faces appear human but exaggerated: stretched skin, uneven features, eyes staring in different directions. Emotions range from terror to apathy. The background is almost entirely black, with only vague textures suggesting space. Brush-like textures are rough and raw. The lighting isolates parts of faces, leaving others in shadow, creating a fragmented and unsettling visual rhythm. The image conveys psychological horror rather than physical violence, pinturas negras».

Исходный размер 1521x1521

Промпт: «Several figures engaged in an unclear, almost ritualistic act in an open but undefined space. Their movements are frozen mid-action, tense and uncomfortable. Faces are grotesquely expressive: wide eyes, grimacing mouths, distorted anatomy. No clear hero or victim is visible. The ground is dark and muddy, blending into the figures’ feet. The sky is heavy and oppressive, painted in deep browns and blackened yellows. Light is dim and uneven, creating a sense of moral ambiguity and unease. The scene feels timeless, brutal, and irrational, pinturas negras».

Исходный размер 1521x1521

Промпт: «A haunting nocturnal scene in a desolate 18th-century Spanish village: shadowy figures gather around a dying bonfire under a blood-red moon. Their faces are obscured by tattered hoods, and twisted trees claw at the sky like skeletal hands. In the distance, a crumbling church looms, its bell tower cracked and silent. The atmosphere is thick with dread and mystery, rendered in dramatic chiaroscuro lighting, earthy tones, and expressive brushwork reminiscent of Goya—but depicting an original, unseen allegory of collective guilt and silence».

Исходный размер 1521x1521

Промпт: «A group of human figures gathered in a dark, undefined interior space, their bodies slightly hunched and asymmetrical. Faces are distorted, with exaggerated eyes, crooked mouths, and expressions frozen between fear and madness. Skin tones are pale, sickly, with greenish and gray undertones. Clothing is simple, worn, almost merging with the background. The environment feels claustrophobic, with rough, shadowy walls barely visible. Lighting is low and uneven, coming from an unseen source, creating deep shadows and highlighting facial deformities. The mood is oppressive, unsettling, and psychologically tense, as if capturing collective anxiety rather than a specific event, pinturas negras».

Я выяснил, что короткие промпты с сюжетами, не характерными для Гойи, получаются удачнее при сжатом, лаконичном описании.

Исходный размер 1521x1521

Промпт: «Apple painting in the style of Francisco Goya like Pinturas negras».

Исходный размер 1521x1521

Промпт: «Alone butterfly in magic forest painting in the style of Francisco Goya like Pinturas negras».

Исходный размер 1521x1521

Промпт: «Frog painting in the style of Francisco Goya like Pinturas negras».

ВЫВОДЫ

В ходе проекта я выяснил, что нейросеть успешно передаёт стиль Франсиско де Гойи: даже размытые и искажённые лица и формы органично вписываются в его визуальный язык, передавая характерную атмосферу и эстетику художника. Короткие лаконичные промпты позволяют создавать сюжеты, не характерные для Гойи, при этом сохраняя его стиль.

ПРИНЦИП РАБОТЫ КОДА

Шаг 1. Устанавливаем все требуемые библиотеки и формируем набор фотографий для датасета.

Исходный размер 2476x860

Шаг 2. Перемещаем файлы в папку и проверяем, что они присутствуют.

Исходный размер 2480x900

Шаг 3. Создаём файл metadata.jsonl, добавляя префикс, соответствующий стилю.

Исходный размер 2480x1169

Шаг 4. Используем заранее полученный токен и запускаем тренировку с заданными параметрами.

Исходный размер 2480x1062

Шаг 5. Сохраняем модель в Hub, чтобы её можно было использовать не только с локальными файлами.

Исходный размер 2480x1372

Шаг 6. На заключительном этапе создаём изображение — и готово!

Исходный размер 2480x1193

Для исправления ошибок в коде я использовал QWEN coder. Он помогал доработать неточности.

NeurоГойя
Проект создан 11.02.2026
Мы используем файлы cookies для улучшения работы сайта НИУ ВШЭ и большего удобства его использования. Более подробную...
Показать больше