S:你安装stable diffusion就是为了看小姐姐么?
I :当然不是,当然是为了公司的发展谋出路~~
预先学习:
- 安装webui《Windows安装Stable Diffusion WebUI及问题解决记录》。
- 运行使用时问题《Windows使用Stable Diffusion时遇到的各种问题整理》;
- 模型运用及参数《Stable Diffusion 个人推荐的各种模型及设置参数、扩展应用等合集》;
- 提示词生图咒语《Stable Diffusion 提示词词缀使用指南(Prompt)》;
- 不同类的模型Models说明《解析不同种类的StableDiffusion模型Models》;
- 绘制人物动作及手脚细节《Stable Diffusion 准确绘制人物动作及手脚细节(需ControlNet扩展)》
stable diffusion就只能小姐姐么?不,今天我们用stable diffusion制作一页自己规划的沙滩、男孩与狗的绘本画试试。
画面情况:沙滩
、海洋
、狗
、男孩
、遮阳伞
初始提示词:
storybook style, 8k, realistic, strong sharp, highlights, obvious refraction, icons, Crystal style, A boy and his dog are on the beach by the ocean, with colorful umbrella dotting the sandy shore, beach chair under the umberella
本文基本操作不再赘述,参数自调,起步用默认,好了,废话不多说,直接上流程:
找个顺手的绘图软件,画一个男孩、狗、遮阳伞、沙滩和海洋,利用stable diffusion的图生图功能出图。
如果你是画师,画好线稿基本就能出好图了,而我们这种技术人员,只能想尽办法来出图了~~
出图后感觉sd好像没理解什么是海洋,给了滩涂或者退潮后的状态。
((storybook style)),8k, realistic, strong sharp, highlights, obvious refraction, boy running on beach, one brown dog running on beach, beach on the left, ocean on the right, a umbrella on the beach, a beach chair under the umbrella, yellow beach, blue ocean, colorful,
((storybook style)),8k, realistic, strong sharp, highlights, obvious refraction, ((boy running on beach)), ((one brown dog running on beach)), beach on the left, ocean on the right, ((a umbrella on the beach)), a beach chair under the umbrella, yellow beach, blue ocean, colorful,
用stable diffusion的局部重绘功能进行部分元素的微调。
dog
出图
boy with black hair and blue shirt and red pants and sports shoes running
出图后选一张
doll
从儿童画角度来说,剩下用个绘图软件把沙滩填个色就完成任务了~~
我们现在要提高一下这个绘本的绘画质量~~,成人感强一点
((photo style)),8k, realistic, strong sharp, highlights, obvious refraction, ((boy running on beach)), ((one brown dog running on beach)), beach on the left, ocean on the right, ((a umbrella on the beach)), a beach chair under the umbrella, yellow beach, blue ocean, colorful,
注意:
- 如果希望修改的元素与其他元素关系不大,则
重绘区域
尽量使用仅蒙版
,比如人物、狗、伞,这样能更精细的绘画,否则显卡算力不行的话,很可能导致最后出图扭曲。- 如果修改的元素与其他元素有关,比如海洋(有倒影),那么
重绘区域
就需要选择为全图
;边缘预留像素
根据蒙蒙板大小自我调整,比如狗腿在海洋里,那么这个边缘的值就要大一些,免得把狗腿删了;- 为了防止sd想象力超界,记得用controlnet的边缘功能进行约束;
- 很多参数,例如重绘幅度(Denoising)等根据实际需要单独调整。
Tony
,特意改为腊肠犬。((photo style)),8k, realistic, strong sharp, highlights, obvious refraction, ((1dachshund running on beach))
((photo style)),8k, realistic, strong sharp, highlights, obvious refraction, ((boy with black hair and blue shirt and red pants and sports shoes running on beach)),
((photo style)),8k, realistic, strong sharp, highlights, obvious refraction,((a beach umbrella on the beach)) is colorful, shadow, yellow beach, colorful,
((photo style)),8k, realistic, strong sharp, highlights, obvious refraction, boy's reflection on sea, dachshund's reflection on sea, ((beach on the left)), ((ocean on the right)),yellow beach, blue ocean, ((calm sea)),
这一步修改了多次都没有满意的,直到这次直出30张~~终于有那么几张入眼的了。
挑一张勉强可以的,但狗的倒影并不好(谢幕后有终图彩蛋),或许是提示我的 Tony
已不在这个世界了吧~~
photoshop等绘图软件的基本能力还是需要有一点的,比如这张图,AI出的几十张图中终于有一张带点感觉的了,但你不会修,也是不能用的。
最后,大家学习过这篇内容了么?stable diffusion成为生产力工具(一):制作购物车图标icon