前言
===
第六部分:提示词(Prompt)根本概念
在使用 AI 生成图像或举行自然语言处理使命时,提示词(prompts)是关键的工具。通过正确使用提示词,用户可以引导模子生成所需的内容。本部分将介绍提示词的根本概念、语法以及不同类型提示词的标准化方法。
6.1 提示词的概念和根本逻辑
什么是提示词?
提示词是指引导 AI 模子生成特定内容的输入文本。它可以是一句话、一段话,乃至是一系列关键词,提供给模子用以明白用户的意图,从而生成相应的输出。
提示词的根本逻辑
提示词的根本逻辑在于为模子提供上下文和方向,使其可以或许明白用户的需求并生成相关内容。通过提供详细且明白的提示词,用户可以更好地控制生成结果的质量和正确性。
示例(图):

正向提示词:
- masterpiece, best quality, ultra-detailed, illustration, 1girl, solo, outdoors, camping, night, mountains, nature, stars, moon, tent, twin ponytails, green eyes, cheerful, happy, backpack, sleeping bag, camping stove, water bottle, mountain boots, gloves, sweater, hat, flashlight, forest, rocks, river, wood, smoke, shadows, contrast, clear sky, constellations, Milky Way, peaceful, serene, quiet, tranquil, remote, secluded, adventurous, exploration, escape, independence, survival, resourcefulness, challenge, perseverance, stamina, endurance, observation, intuition, adaptability, creativity, imagination, artistry, inspiration, beauty, awe, wonder, gratitude, appreciation, relaxation, enjoyment, rejuvenation, mindfulness, awareness, connection, harmony, balance, texture, detail, realism, depth, perspective, composition, color, light, shadow, reflection, refraction, tone, contrast, foreground, middle ground, background, naturalistic, figurative, representational, impressionistic, expressionistic, abstract, innovative, experimental, unique
复制代码 反向提示词:
- (worst quality, low quality:1.4), (realistic, lip, nose, tooth, rouge, lipstick, eyeshadow:1.0), (dusty sunbeams:1.0),, (abs, muscular, rib:1.0), (depth of field, bokeh, blurry:1.4), (greyscale, monochrome:1.0), text, title, logo, signature,watermark,
复制代码 不同的提示词分别向AI描述了画面的风格、人物的外貌、服饰的特征、场景的内容以及一些额外的修饰元素。
第七部分:提示词的分类和输入
7.1 提示词语法
提示词的语法涉及如何输入提示词以及如何构造提示词之间的关系。公道的语法可以明显进步生成结果。
输入正向提示词
- An ancient castle by the lake at sunset
复制代码
- 分段输入: 使用标点符号或关键词分段输入,夸大重点部分。
- 例如:“夕阳下的湖边;一座古老的城堡;配景有山脉。”
- sunset,lakeside,(old castle:1.1),Mountains in the background
复制代码
整理和输出教程属实不易,觉得这篇教程对你有所资助的话,可以点击 |