图生图基础工作流
![![[Pasted image 20250624145030.png]]](https://i-blog.csdnimg.cn/direct/6c09ed63137f4e49a3f117e485b5ee5c.png)
需要一个加载图像节点来导入图像,但是这个图像在像素层,需要通过VAE编码到潜空间中
中间需要控制批次的话,需要将空Latent换成复制Latent批次
![![[Pasted image 20250624145215.png]]](https://i-blog.csdnimg.cn/direct/e41038218cd04b43b7eef401a7fcb7a0.png)
此时生成的图像和原图没有什么关系
需要控制降噪参数,也就是重绘幅度,调成0.5之后
![![[Pasted image 20250624145558.png]]](https://i-blog.csdnimg.cn/direct/7abd6b01c59a4b2daf6154409834bb3b.png)
调节尺寸
在加载图像和VAE编码之间添加一个图像缩放节点
裁剪方式选择中心
![![[Pasted image 20250624150115.png]]](https://i-blog.csdnimg.cn/direct/91c5741ce8284d50ad58a5ab1e6cc28f.png)
图像对比
安装rgthree节点,然后重启
![![[Pasted image 20250624151234.png]]](https://i-blog.csdnimg.cn/direct/0eaadb8ec729474ca17d080a1b7711d4.png)
![![[Pasted image 20250624151327.png]]](https://i-blog.csdnimg.cn/direct/83f038e046ec483cbdd7fb07001fcec1.png)
将原图和生成的图都连上去
![![[Pasted image 20250624151538.png]]](https://i-blog.csdnimg.cn/direct/759e41edde6a4891aa85c1e187b94e3b.png)
可以通过滑动鼠标来进行对比
Controlnet
大幅改变图像内容,但是整体图像动作,人物架构不变
添加controlnet加载器选择lineart
再添加lineart预处理器,将图像,加载器和正负条件连接到controlnet应用中
![![[Pasted image 20250624152121.png]]](https://i-blog.csdnimg.cn/direct/254bcaf0f2014dea88e0b18e611fefcb.png)
粗糙化默认关闭
强度代表管控controlnet模型强度
![![[Pasted image 20250624155528.png]]](https://i-blog.csdnimg.cn/direct/1c5dec9760044abf9d9773d6151d8481.png)
![![[Pasted image 20250624155514.png]]](https://i-blog.csdnimg.cn/direct/81e79ddacc044cb3879c9b64a3f59f87.png)
动漫风格转绘
![![[Pasted image 20250624162322.png]]](https://i-blog.csdnimg.cn/direct/93abccf9d70040399c738998f40b14c1.png)
![![[Pasted image 20250624162306.png]]](https://i-blog.csdnimg.cn/direct/12ebee273e9d412ebb4ce2a7f8f2a5a6.png)
![![[Pasted image 20250624162300.png]]](https://i-blog.csdnimg.cn/direct/87bbc9a09de94470a1f6ec8472d703ac.png)
提示词自动化
图生文反推提示词
搜索WD14
![![[Pasted image 20250624164528.png]]](https://i-blog.csdnimg.cn/direct/43e37685ef204ec196eebca264d02db6.png)
置信度
数值越高,反推出的关键词就越少
数值越低,反推出的关键词就越多
![![[Pasted image 20250624171159.png]]](https://i-blog.csdnimg.cn/direct/1db57c2b56304681a122bc7cccb43243.png)
自动负面提示词
![![[Pasted image 20250624171426.png]]](https://i-blog.csdnimg.cn/direct/14f8de9e9868480f83681f5eabd6287c.png)
增强负面设置为1,开启效果
随机强度
数值越低,生成的关键词越多
数值越高,生成的关键词越少
![![[Pasted image 20250624172254.png]]](https://i-blog.csdnimg.cn/direct/046a451ea7fa43c4bd153be405e73eb8.png)
存储节点为预设
![![[Pasted image 20250624180914.png]]](https://i-blog.csdnimg.cn/direct/0fd93f6f60f64629998c6261649f5388.png)
![![[Pasted image 20250624181058.png]]](https://i-blog.csdnimg.cn/direct/8d25f439dbf1441e830f199ecc4ea405.png)
风格化
下载SDXLpromptstyler
![![[Pasted image 20250626125958.png]]](https://i-blog.csdnimg.cn/direct/c6d88991ceef421395eda5453c3333dc.png)
如图设置节点
宽高一定是1024左右
可以更换风格
5650



被折叠的 条评论
为什么被折叠?



