【SD零基础教程】 Stable Diffusion模子讲解:Lora利用方法精讲
今天,我们将进入更深入的学习,包括怎样利用触发词、参考作者参数进行生成,以及根据生成结果进行调解。一、利用Lora的详细步骤
第一步:利用触发词
触发词是调用Lora时的关键。有时间,仅仅调用Lora可能不会产生预期效果,必要加入正面提示词来正确触发。例如,在生成图片时,除了利用权重和大模子外,还必要加入特定的提示词,如“full body”和“chibi”,以触发特定的风格。
https://i-blog.csdnimg.cn/img_convert/978b23695ac5c42944631b4c244ffdc2.png
有必要stable diffusion整合包以及提示词插件,可以扫描下方,免费获取
https://i-blog.csdnimg.cn/direct/c299e4022f284f32a2ae062c1421cbe4.jpeg#pic_center
第二步:参考作者参数进行生成
在模仿作者生成的过程中,我们必要相识大模子、触发词,并参考作者利用的正面和负面提示词、CFG、种子和采样方法等参数。通过这些参数的同等性,我们可以复刻出险些一样的图片。
https://i-blog.csdnimg.cn/img_convert/addf13423ec4b23005787dfd20334a25.png
第三步:根据生成结果进行调解
最后一步是根据生成的结果进行多方面的调解,包括模子、权重和各种参数,以到达我们想要的效果。
https://i-blog.csdnimg.cn/img_convert/3dd17d1c3e08dcd0dd0dbb8a9175a1a6.png
https://i-blog.csdnimg.cn/img_convert/91225361ba5f8b83564ceb130a9842c0.png
二、利用Lora的注意事项
在利用Lora的过程中,有几点必要注意:
[*]\1. 模子名称同等性:确保利用的Lora名称与本地生存的名称同等,否则可能无法正确调用。
[*]\2. 新手慎用多个Lora:利用多个Lora必要对Lora的底层原理有一定相识,新手发起先从一个Lora开始。
[*]\3. 生成图片作为提示图:可以将生成的图片设置为Lora的预览图,帮助更好地理解Lora的作用。
https://i-blog.csdnimg.cn/img_convert/336986a95e43de7543624fccdab31e0b.png
https://i-blog.csdnimg.cn/img_convert/21fa117282bb5682f46b0cd92f88a69e.png
三、实际案例分享
接下来,我们将通过几个实际案例来展示Lora的实用性。
1、图片细节高清化
通过利用特定的Lora,我们可以增加图片的细节,提升质感。例如,在生成商品静物图时,加入细节加强的Lora可以使图片看起来更真实。
https://i-blog.csdnimg.cn/img_convert/20b3a40ed51b643b0df2bc7f6a3ec61d.png
https://i-blog.csdnimg.cn/img_convert/e2ac33460d8a8096cbe840f41f7cdcb4.png
https://i-blog.csdnimg.cn/img_convert/1ce1a953027a404d31bd3c6b9473fcd6.png
https://i-blog.csdnimg.cn/img_convert/bf60044fb5861a866a1666e371a3312a.png
https://i-blog.csdnimg.cn/img_convert/4889ad8be0f1c9120f4f77a4bf146936.png
https://i-blog.csdnimg.cn/img_convert/eb598feb7876f49d8a2f456039bbd052.png
https://i-blog.csdnimg.cn/img_convert/5489907ef490ced7c2031f7da6600249.png
2、人物特征固定
在必要人物特征保持同等的场景中,可以利用特定的Lora来固定人物的脸型或衣着特征。
https://i-blog.csdnimg.cn/img_convert/fa85a718dfc5346c33a40f2b8ccb0a96.png
https://i-blog.csdnimg.cn/img_convert/37f0f1e2abdbbdc988009c564755afd3.png
https://i-blog.csdnimg.cn/img_convert/1d82e175c5656080bb90677129a99078.png
https://i-blog.csdnimg.cn/img_convert/d531dc65a33bf7849633fee983787d3f.png
https://i-blog.csdnimg.cn/img_convert/37d0a2167df9ed2426ded6075e86920e.png
3、人物去AI化
通过利用特定的Lora,我们可以淘汰AI生成的人物的不真实感,使图片更接近真实照片。
https://i-blog.csdnimg.cn/img_convert/86c72f86d66c02f6c108ef4d2bf11a28.png
https://i-blog.csdnimg.cn/img_convert/5265eedcd20c12800cd799201f666832.png
https://i-blog.csdnimg.cn/img_convert/24f0284230428b2d5c312618fdf4e89f.png
https://i-blog.csdnimg.cn/img_convert/9a934ffe705beda9d4a3e52079670b4c.png
4、线稿生成
对于设计师和美工来说,可以利用Lora生成线稿效果的图片,这对于创作插画和设计元素非常有用。
https://i-blog.csdnimg.cn/img_convert/b417d62760bd9c8a11b3d7d005f2b242.png
https://i-blog.csdnimg.cn/img_convert/e7e833ca538b63dbae4111d62cd33873.png
https://i-blog.csdnimg.cn/img_convert/df0c67776d9b8b1530b6cbe58c5233e8.png
https://i-blog.csdnimg.cn/img_convert/e8f6e17181933c227c0ba50cce34bd16.png
https://i-blog.csdnimg.cn/img_convert/9ffb85721516def28b28bd473ad7ef67.png
https://i-blog.csdnimg.cn/img_convert/6257f27d2111118cc2b878e4f4713d66.png
5、图片风格化
Lora也可以用来给图片添加特定的风格,如新海诚风格,通过学习特定的动画风格,可以让生成的图片具有特定的艺术效果。
https://i-blog.csdnimg.cn/img_convert/34ef86607b2ae310a95b8dedb1a3a8db.png
https://i-blog.csdnimg.cn/img_convert/2ebfff8453f7d617c6f0ef6b74819180.png
https://i-blog.csdnimg.cn/img_convert/b2059ff59aa38a263567a4ef18eb229c.png
https://i-blog.csdnimg.cn/img_convert/be131f106e54362f4b5175d963bab8a7.png
https://i-blog.csdnimg.cn/img_convert/e89baf2c842d3b2032b946e7b73558c3.png
四、总结
希望这篇文章能帮助大家更好地理解和利用Lora。
关于AI绘画技术储备
学好 AI绘画 不论是就业还是做副业赢利都不错,但要学会 AI绘画 还是要有一个学习规划。最后大家分享一份全套的 AI绘画 学习资料,给那些想学习 AI绘画 的小同伴们一点帮助!
对于0基础小白入门:
如果你是零基础小白,想快速入门AI绘画是可以思量的。
一方面是学习时间相对较短,学习内容更全面更集中。
二方面是可以找到得当本身的学习方案
包括:stable diffusion安装包、stable diffusion0基础入门全套PDF,视频学习教程。带你从零基础体系性的学好AI绘画!
零基础AI绘画学习资源介绍
页:
[1]