上一篇我们学会了图片高清放大,这一篇我们掌握下一个重要的节点,就是Lora,我们知道大模型是通过非常多的图片训练出来的,而Lora就是通过一部分特定样式的图片训练出来的,LORA节点是为了补充大模型的,也可以说Lora就是大模型的一个外挂,想象一下,假如某10个G大小的大模型文件,里面包含了各种风格的训练数据,比如二次元,写实,水墨等等通通包含,这个大模型,后面再接入一个汉服风格的Lora,那么这样出来的图片就会是偏汉服的。废话不多说,下面就一步步看看Comfyui中怎么使用Lora。
一、起手式基础文生图先搭建起来
二、修改大模型加载器为带说明的大模型加载器
今天使用的大模型为ForRealXl系列0.5版本,出的图非常的真实惊艳
模型地址是:https://civitai.com/models/432244/forrealxl?modelVersionId=518881
三、输入正面提示词,和负面提示词
今天创造一个火车从山水之间穿梭的图片
正面:futuristic and cinematic scene, an advanced train with a sleek transparent glass exterior, traveling through a breathtaking landscape, with mountains on distant, the train's interior is filled with vibrant green plants, creating a miniature greenhouse effect, The surrounding environment is bathed in soft ethereal light filtering through gaps in the dense f