一、前言
本章是《Stable Diffusion 从入门到企业级实战》系列的第六部分Prompt专题篇《Stable Diffusion Prompt 专题》第01节 《Stable Diffusion Prompt 通用画风操作实战》。本部分内容,位于整个Stable Diffusion生态体系的位置如下图黄色部分所示:

二、定义
Stable Diffusion Prompt提示词包括正向提示词和负向提示词两部分,其中正向提示词,是作者想要生成的部分;负向提示词,是作者不想要包括的内容。一个通用的提示词范式如下图所示:

提示词画风包括很多中,不通的画风,输出的内容具有不通的风格,其中通用风格提示词如下所示:
Prompt 正向提示词
breathtaking {prompt} . award-winning, professional, highly detailed
Negative Prompt 负向提示词
anime, cartoon, graphic, text, painting, crayon, graphite, abstract glitch, blurry
三、创作成果
基于通用提示词画风的创作成果如下图所示:




四、创作过程
4.1 环境和参数
环境说明:Stable Diffusion XL 1.0版本
预训练模型:sd_xl_base_1.0.safetensors
4.2 提示词
正向提示词:
breathtaking **night street of Beijing, neon lights.**award-winning, professional, highly detailed
负向提示词:
anime, cartoon, graphic, text, painting, crayon, graphite, abstract glitch, blurry
上述红色标注部分,为我们在提示词模板基础上,变量实例化的部分。
4.3 界面设置
具体参数如下图所示:

运行演示:


五、小结
本章是《Stable Diffusion 从入门到企业级实战》系列的第六部分Prompt专题篇《Stable Diffusion Prompt 专题》第01节 《Stable Diffusion Prompt 通用画风操作实战》,下一节,我们将给大家带来第六部分Prompt专题篇《Stable Diffusion Prompt 专题》第02节 《Stable Diffusion Prompt 动画风格操作实战》。