Stable Diffusion 使用详解(8)--- layer diffsuion

背景

layer diffusion 重点在 layer,顾名思义,就是分图层的概念,用过ps 的朋友再熟悉不过了。没使用过的,也没关系,其实很简单,本质就是各图层自身的编辑不会影响其他图层,这好比OS中运行了很多process,一个process 宕机或者修改,不会影响其他process 是一个道理。他的好处很多,可以帮我们生成一个背景透明的任何图片,你可以借助 ps 等工具进行融合。当然高阶一点的玩法,可能是借助背景生成前景,或者借助前景生成背景。

一个小技巧

之前有朋友问我,如果想绘制一个女孩头发是黑里带分红的怎么处理。其实这里涉及一个st 的高阶用法,就是 [A | B | C] 对同一物体使用他,将使得 A B C 等几种特质交替出现。看一个效果,我用 take me to your heart 那首歌的一句话生成一幅画:

standing on a mountain high,

Looking at the moon through a clear blue sky,

来吧,其他的不说了,直接上提示词:

One girl,[pink | black] hair,wearing a blue t-shirt,turn back,side face,smile,

standing on a mountain high,

Looking at the moon through a dark blue sky,

ultra-detailed,photorealistic,masterpiece,

注意中间那个 **[pink | black]**用来描述 hair的 提示词,意味着 粉红与黑色交替出现,并呈现一定的过渡效果。

负面提示词很简单,我直接用 embedding的那几个避免人物出问题的几个key:

easynegative,badhandv4,Bybadartist,ng_deepnegative_v1_75t,negative_hand,

效果:

当然你可以适当调整提示词,让他有白天的效果:

layer diffusion 基本用法

透明机甲女战士

A mecha warrior,front,girl,a pair of wings,holding a long gun,beautiful,

ultra-detailed,photorealistic,masterpiece,

easynegative,badhandv4,Bybadartist,ng_deepnegative_v1_75t,negative_hand,

生成背景

背景提示词

The earthquake, the ground began to collapse, the tall buildings collapsed, bricks fell from the air

融合提示词

A mecha warrior, standing where the ground began to collapse and the house began to collapse, has the feeling of a science fiction blockbuster

生成背景

注意这里生成的背景是充分考虑了前景后生成的,与直接文生图或者图生图的逻辑还不一样。

融合

目前吧,layer diffusion 感觉还是不够成熟,我就手动用 ps 融合吧。

当然你可以在旁边再高点艺术字之类的。

我就示意下,你可以生成一个艺术字,再用PS合成,或者直接局部涂鸦完成也行。

修饰下,可以做成这样:

相关推荐
北上ing21 小时前
从FP32到BF16,再到混合精度的全景解析
人工智能·pytorch·深度学习·计算机视觉·stable diffusion
源客z2 天前
搭建Stable Diffusion图像生成系统实现通过网址访问(Ngrok+Flask实现项目系统公网测试,轻量易部署)
stable diffusion
源客z3 天前
搭建 Stable Diffusion 图像生成系统并通过 Ngrok 暴露到公网(实现本地系统网络访问)——项目记录
stable diffusion
朴拙数科5 天前
Stable Diffusion秋叶整合包V4独立版Python本地API连接指南
开发语言·python·stable diffusion
璇转的鱼6 天前
爆肝整理!Stable Diffusion的完全使用手册(二)
人工智能·ai作画·stable diffusion·aigc
曲幽6 天前
Stable Diffusion LoRA模型加载实现风格自由
python·ai·stable diffusion·lora·文生图·diffusers
nan_black9 天前
在Pycharm配置stable diffusion环境(使用conda虚拟环境)
stable diffusion·pycharm·conda
AI绘画咪酱9 天前
Stable Diffusion【进阶篇】:如何实现人脸一致
人工智能·深度学习·学习·机器学习·ai作画·stable diffusion
AIGC-Lison10 天前
AI绘画SD中,如何保持生成人物角色脸部一致?Stable Diffusion精准控制AI人像一致性两种实用方法教程!
人工智能·ai作画·stable diffusion·midjourney·sd
AI绘画咪酱11 天前
SD教程|巧用Stable Diffusion,实现不同风格的LOGO设计|实战篇幅,建议收藏!
人工智能·学习·ai作画·stable diffusion·sd