Промты для Stable Diffusion, синтаксис и готовые

Для генерации изображений в Stable Diffusion промты имеют определяющее значение. Промты – это текстовые наборы инструкций, которые указывают модели ИИ, что именно она должна сгенерировать. Stable Diffusion – это мощная модель глубокого обучения, которая преобразует текст (промт) в изображение. Она может генерировать изображения по любому тексту, но если вам нужны фотореалистичные, качественные изображения, то текст должен быть не любой, а понятный нейросети и детально описывающий что вы от нее хотите.
Больше инструкций, реальных кейсов и примеров из практики по AI для бизнеса, работы и жизни в Telegram-канале, подпишитесь!
Как используются промты в Stable Diffusion?
Промты для Стейбл Дифьюжен могут быть простыми или сложными, от «кот в сапогах» до детальных, с описанием стиля художника, цветовой палитры, композиции и других параметров. Чем подробнее, тем выше вероятность получить желаемый результат. Например, промт «фотореалистичный портрет женщины с голубыми глазами и рыжими волосами в стиле Рембрандта с кинематографическим освещением» даст модели больше информации для работы, чем просто «портрет женщины». Добавление таких деталей, как «кинематографическое освещение», «стиль ар-деко» или «8k фото», может существенно повлиять на сгенерированное изображение. Stable Diffusion также использует негативные промты. Они позволяют указать, что не должно быть в изображении, дополнительно уточняя результат. Например, если вы хотите сгенерировать изображение кота, но не хотите, чтобы у него были зеленые глаза, вы можете добавить «зеленые глаза» в негативный промт.
Синтаксис промтов Stable Diffusion
Stable Diffusion позволяет пользователям регулировать внимание модели указывая значение важности каждой части промта. Вес промта играет решающую роль в управлении влиянием конкретных инструкций на итоговое изображение. Вы можете использовать круглые скобки () для увеличения внимания модели к заключенным в них словам и квадратные скобки « для его уменьшения.
Stable Diffusion читает и выполняет промт от первого ЛЕВОГО слова к последнему ПРАВОМУ. Каждое следующее правое слово будет оказывать влияние на все левые слова. Первые ЛЕВЫЕ слова имеют наибольшее влияние. Последние ПРАВЫЕ — наименьшее.
Шпаргалка по синтаксису промтов:
- a (word) — Увеличить внимание к «word» в 1.1 раза.
- a ((word)) — Увеличить внимание к «word» в 1.21 раза (= 1.1 * 1.1).
- a (word:1.5) — Увеличить внимание к «word» в 1.5 раза.
- a (word:0.25) — Уменьшить внимание к «word» в 4 раза (= 1 / 0.25).
- a — Уменьшить внимание к «word» в 1.1 раза.
- [word | word] — Смешать несколько промтов; добавьте :число для уменьшения веса.
- (word | word) — Смешать несколько промтов; добавьте :число для увеличения веса.
- word AND word — Смешать несколько промтов с помощью AND; можно использовать веса.
- [word:to:word] — Смешать «word» и «word» поровну.
- [word:word:step] — Переключиться на вторую часть промта («word») после указанного количества шагов (например, dog:mecha:20 означает, что после 20 шагов перестать рисовать собаку и начать рисовать «mecha»).
- [word:word:percentage] — Переключиться на вторую часть промта после указанного процента шагов (например, dog:mecha:0.2 означает переключиться на «mecha» после 20% шагов).
- (.) — точка жесткий разделитель. Не позволяет диффузии накладывать новые слои на предыдущие слова.
- (,) — запятая мягкий разделитель. Разделяет лексемы, но сохраняет более связную связь между ними. Это самый часто используемый разделитель.
- (∙) — буллетин мягкий разделитель, в отличие от “,” позволяет сохранить целостность токена.
Советы по составлению эффективных промтов:
- Будьте конкретны: чем больше деталей вы укажете, тем лучше.
- Используйте ключевые слова: указывайте стиль, цвет, освещение, эмоции и другие важные аспекты.
- Экспериментируйте: Меняйте формулировки, добавляйте и удаляйте детали, чтобы найти оптимальный промт.
- Используйте модификаторы: Стейбл Дифьюжен поддерживает модификаторы, которые позволяют управлять различными аспектами изображения (например, «—ar 3:2» для соотношения сторон 3:2).
Важно отметить, что создание высококачественных изображений с помощью Stable Diffusion часто предполагает итеративный подход. Это означает, что вам может потребоваться несколько раз уточнить промт, проанализировать результаты и внести корректировки, чтобы добиться желаемого результата. Экспериментирование и анализ – ключевые факторы успеха в prompt engineering.
База промтов для Stable Diffusion
Генерация портрета
Промты
- Портрет, теплые тона: portrait of a pretty blonde woman, a flower crown, earthy makeup, flowing maxi dress with colorful patterns and fringe, a sunset or nature scene, green and gold color scheme
- Портрет пожилого мужчины: photorealistic, visionary portrait of a dignified older man with weather-worn features, digitally enhanced, high contrast, chiaroscuro lighting technique, intimate, close-up, detailed, steady gaze, rendered in sepia tones, evoking rembrandt, timeless, expressive, highly detailed, sharp focus, high resolution
- Портрет, ближний план: closeup portrait photo of beautiful goth woman, makeup, 8k uhd, high quality, dramatic, cinematic
- Kodak портрет: happy indian girl, portrait photography, beautiful, morning sunlight, smooth light, shot on kodak portra 200, film grain, nostalgic mood
- Noir стиль: johnny depp photo portrait, film noir style, monochrome, high contrast, dramatic shadows, 1940s style, mysterious, cinematic
- Фотосессия в стиле киберпанка: a glamorous digital magazine photoshoot, a fashionable model wearing avant-garde clothing, set in a futuristic cyberpunk roof-top environment, with a neon-lit city background, intricate high fashion details, backlit by vibrant city glow, Vogue fashion photography
- Портрет девушки: masterpiece, best quality, girl, collarbone, wavy hair, looking at viewer, blurry foreground, upper body, necklace, contemporary, plain pants, intricate, print, pattern, ponytail, freckles, red hair, dappled sunlight, smile, happy
- Эффект двойной экпозиции: double exposure portrait of a beautiful woman with brown hair and a snowy tree under the bright moonlight by Dave White, Conrad Roset, Brandon Kidwell, Andreas Lie, Dan Mountford, Agnes Cecile, splash art, winter colours, gouache, triadic colours, thick opaque strokes, brocade, depth of field, hyperdetailed, whimsimcal, amazing depth, dynamic, dreamy masterwork
- Vaporwave: girl with pink hair, vaporwave style, retro aesthetic, cyberpunk, vibrant, neon colors, vintage 80s and 90s style, highly detailed
- Пианист: pianist playing somber music, abstract style, non-representational, colors and shapes, expression of feelings, imaginative, highly detailed
- Photorealistic portrait of a young woman with brown hair and green eyes, in the style of Pre-Raphaelites, soft lighting
- Portrait of an elderly man with a long beard, intense gaze
- Artistic portrait of a child with a whimsical background, playful
- Portrait of a young girl with freckles, natural look
- Expressive portrait of a woman with bright makeup and bold colors
Генерация ландшафта
Промты
- Mountain landscape with a waterfall and a rainbow, impressionist style, bright colors
- Serene beach landscape with golden sand and gentle waves
- Mountain landscape with snow-capped peaks and clear blue sky
- Lush forest landscape with towering trees and dappled sunlight
- Desert landscape with sand dunes and a clear horizon
Генерация абстрактных изображений
Промты
- Abstract composition using geometric shapes and gradients, Bauhaus style, cool colors
- Abstract art in watercolor style with swirling patterns and bright colors
- Geometric abstract art in minimalist style with clean lines and muted tones
- Abstract art in surrealist style, combining dreamlike elements and unexpected juxtapositions
- Abstract art in cubist style with fragmented forms and multiple perspectives
Генерация фантастических объектов
Промты
- Elf warrior in armor, with a sword and bow, fantasy art style, dynamic pose
- Heroic fantasy character with a sword and armor, determined look
- Mysterious character with a hooded cloak, hidden face
- Playful character with bright colors and exaggerated features
- Villainous character with sharp features and a dark aura
- Милый персонаж RPG: full body, cat dressed as a Viking, with weapon in his paws, battle coloring, glow hyper-detail, hyper-realism, cinematic
- Грифон: a highly detailed, full body depiction of a griffin, showcasing a mix of lion’s body, eagle’s head and wings in a dramatic forest setting under a warm evening sky, smooth, vibrant, digital painting, matte, sharp focus, by artgerm, greg rutkowski and zdislav beksinski, with a hint of magical realism, exquisite detailing, including feathers, fur, and talons, where the griffin is poised to leap into flight, trending on Artstation, saving the image in 4K UHD quality
- Спокойствие: uplifting wellness-inspired illustration showing a serene yoga session at sunrise on a misty mountain peak, warm color palette, tranquil, soft focus, smooth gradients, digital painting, highly detailed, calming, positive energy flow, nature elements, mindfulness theme, art by Leonid Afremov, DeviantArt
- Кот Джедай: a master jedi cat in star wars holding a lightsaber, wearing a jedi cloak hood, dramatic, cinematic lighting
- Постапокалипсис: abandoned city with ruined buildings, long deserted streets, cars aged by time, trees, flowers, scattered leaves, empty street, vibrant colors, lineart
- Эльф из мира фэнтези: ethereal fantasy concept art of an elf, detailed skin texture, magnificent, celestial, ethereal, painterly, epic, majestic, magical, fantasy art, cover art, dreamy
- Дракон: a fantasy illustration of a majestic, ancient dragon with an opalescent scales, amidst glowing enchanted forest, illuminated by magical moonlight, intricate, highly detailed, rich textures, mystical ambiance, digital painting, vivid colors, ethereal, artstation trending, detailed matte background, sharp focus, smooth, majestic, by Todd Lockwood, Donato Giancola, Frank Frazetta, and Brom
- Психоделика: autumn forest landscape, psychedelic style, vibrant colors, swirling patterns, abstract forms, surreal, trippy, colorful
- Аниме астронавт: a girl astronaut exploring the cosmos, floating among planets and stars, high quality detail, , anime screencap, studio ghibli style, illustration, high contrast, masterpiece, best quality
- Неон: symbol of a stylized pink cat head with sunglasses, glowing, neon, logo for a game, cyberpunk, vector, dark background with black and blue abstract shadows, cartoon, simple
- Стиль студии Pixar: batman, cute modern disney style, Pixar 3d portrait, ultra detailed, gorgeous, 3d zbrush, trending on dribbble, 8k render
- Spaceship against a starry sky, cyberpunk style, neon lights
- Futuristic cityscape in cyberpunk style, neon lights, towering skyscrapers, bustling streets, and flying cars
- Alien planet landscape in retro sci-fi style, with strange flora and fauna, and a distant, mysterious horizon
- Space station interior in a sleek, modern sci-fi style, with advanced technology and clean, minimalist design
- Battle between spaceships in a classic sci-fi style, with laser beams, explosions, and starry background
Генерация разных объектов
Промты
- Замерзшая роза: a frozen cosmic rose, the petals glitter with a crystalline shimmer, swirling nebulas, 8k unreal engine photorealism, ethereal lighting, red, nighttime, darkness, surreal art
- Прототип продукта: a sleek, ultra-thin, high resolution bezel-less monitor mockup, realistic, modern, detailed, vibrant colors, glossy finish, floating design, lowlight, art by peter mohrbacher and donato giancola, digital illustration, trending on Artstation, high-tech, smooth, minimalist workstation background, crisp reflection on screen, soft lighting
- Стикер: vibrant and dynamic die cut sticker design, portraying a wolfs head interlaced with cosmic galaxies, AI, stickers, high contrast, bright neon colors, top-view, high resolution, vector art, detailed stylization, modern graphic art, unique, opaque, weather resistant, UV laminated, white background
- Мягкая игрушка: adorable concept illustration of a plush animal peacefully sitting on a child’s bed, soft lighting, gentle texture, dreamy atmosphere, pastel tones, matte finish, wide shot, by Yuko Shimizu, by Marc Brunet, by Joshua Middleton, children illustration, highly detailed, trending on artstation, fluffy, smooth, digital art, sharp focus
- Flat иллюстрация: flat vector illustration of a house, clear off background, minimalistic, clean lines, adobe illustrator
- Комикс: a girl sitting in the cafe, comic, graphic illustration, comic art, graphic novel art, vibrant, highly detailed, colored, 2d minimalistic
- Фото брендового товара: breathtaking shot of a bag, luxury product style, elegant, sophisticated, high-end, luxurious, professional, highly detailed
- Пиксельный арт: haunted house, pixel-art, low-res, blocky, pixel art style, 8-bit graphics, colorful
- Акварель: cinnamon bun on the plate, watercolor painting, detailed, brush strokes, light palette, light, cozy
- Стиль клипарт: clipart style, cute, playful scene, playful dog chasing a frisbee, with a bright, happy color palette, simple shapes, and thick, bold lines, hand-drawn digital illustration, highly detailed, perfect for children’s book, colorful, whimsical, Artstation HQ, digital art
- Дизайн fashion образа: extravagant high fashion show concept featuring elaborate costumes with feathered details and sparkling jewels, runway, fashion designer inspiration, style of gaultier and gianni versace, deep vibrant colors, strong directional light sources, catwalk, heavy diffusion of light, highly detailed, top trend in vogue, art by lois van baarle and loish and ross tran and rossdraws, Artstation, front row view, full scene, elegant, glamorous, intricate, sharp focus, haute couture
- Градиент: gradient background, pastel colors, background reference, empty, smooth transition, horizontal layout, visually pleasing, calming, relaxing
- Vintage car against the backdrop of an abandoned factory, retro-futurism style, muted colors
- Art Deco style table with a vase of flowers and a cup of coffee
- Bauhaus style chair with minimalist design and geometric shapes
- Rustic style bookcase made of aged wood with vintage charm
- Industrial style lamp made of metal and wood, rough and unfinished look
Генерация животных
Промты
- Стиль Lowpoly: a lion, colorful, low-poly, cyan and orange eyes, poly-hd, 3d, low-poly game art, polygon mesh, jagged, blocky, wireframe edges, centered composition
- Фото кота: a cat under the snow with blue eyes, covered by snow, cinematic style, medium shot, professional photo, animal
- Фото кролика: close up photo of a rabbit, forest in spring, haze, halation, bloom, dramatic atmosphere, centred, rule of thirds, 200mm 1.4f macro shot
- Photo of a cat sitting on a windowsill, looking out at the city, realistic style
- Illustration of a dog playing fetch in a park, cartoon style
- 3D render of a bird flying in the sky, realistic style
- Watercolor painting of a fish swimming in the ocean, artistic style
- Fantasy art of a dragon flying over a medieval castle, mythical style
Генерация еды
Промты
- Фото напитка: freshly made hot floral tea in glass kettle on the table, angled shot, midday warm, Nikon D850 105mm, close-up
- Photorealistic image of a delicious pizza with melted cheese and various toppings
- Illustration of a colorful ice cream sundae with whipped cream and cherries
- 3D render of a realistic-looking cake with intricate decorations
- Watercolor painting of a bowl of fruit with vibrant colors
- Vintage-style illustration of a coffee cup with steam and a croissant
Генерация логотипов
Промты
- Логотип: logo of mountain, hike, modern, colorful, rounded, 2d concept, white off background
- Minimalist logo with clean lines, modern and sleek
- Vintage-inspired logo with a retro feel, nostalgic
- Abstract logo with geometric shapes, dynamic and unique
- Hand-drawn logo with a personal touch, artistic
- Bold logo with vibrant colors, eye-catching
Генерация карт
Промты
- Fantasy map in a hand-drawn style, featuring mystical lands, ancient forests, and enchanted castles
- Pirate treasure map in a vintage style, with weathered parchment, X marks the spot, and nautical symbols
- Sci-fi galaxy map in a futuristic style, showcasing star systems, space stations, and alien planets
- Medieval kingdom map in a parchment style, with detailed castles, villages, and battlefields
- Modern city map in a minimalist style, highlighting major landmarks, streets, and public transport routes
Заключение
Промты – это не просто текст, это язык общения с искусственным интеллектом в сфере генерации изображений. Умение составлять эффективные промты — важный навык, позволяющий раскрыть весь потенциал Stable Diffusionи создавать уникальный визуальный контент. Понимание принципов prompt engineering, использование ключевых слов, модификаторов и негативных промтов, а также итеративный подход к уточнению запросов – ключевые факторы успеха. В будущем можно ожидать дальнейшего развития инструментов и техник prompt engineering, что откроет еще больше возможностей для решения прикладных задач с помощью Stable Diffusion.
FAQ
Что такое негативные промты?
Как улучшить результаты генерации?
Как использовать веса в промтах?
Какая максимальная длина промта?
Какие распространенные проблемы при генерации изображений?
Как исправить искажения лиц и рук?
Как сгенерировать изображение в высоком разрешении?
Как управлять стилем изображения?
Больше инструкций, реальных кейсов и примеров из практики по AI для бизнеса, работы и жизни в Telegram-канале, подпишитесь!