Stable Diffusion使用ControlNet:IP-Adapter实现图片风格迁移

IP-Adapter 全称是 Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models(文本到图像扩散模型的文本兼容图像提示适配器),是腾讯研究院出品的一个新的ControlNet模型,旨在使预训练的文本到图像扩散模型能够生成具有图像提示的图像。

IP-Adapter是一种有效的轻量级适配器,用于实现预训练文本到图像扩散模型的图像提示能力。

IP-Adapter实现图片风格迁移示例

1、选择文生图

2、设置ControlNet unit 0的参数

添加一张图片作为参考风格。

  • Control Type:选择IP-Adapter
  • Preprocessor:选择ip-adapter_clip_sd15
  • Model:选择ip-adapter_sd15_plus
  • Control Weight:设置为1。

3、设置ControlNet unit 1的参数

这里选择Depth控制图片的结构,也可以使用lineart、canny、softedge等线条类模型。

  • Control Type:选择Depth
  • Preprocessor:选择depth_midas
  • Model:选择control_v11f1p_sd15_depth
  • Control Weight:设置为1。

4、文生图参数设置

  • 采样方式:选择DPM++ 2M Karras
  • 迭代步数:设置为20
  • 高度和宽度与ControlNet unit 1上传的图片保持一致

效果展示

Depth Lineart Canny SoftEdge

相关推荐
weiwei228445 天前
文生图模型Stable Diffusion使用详解
stable diffusion·文生图
Hello123网站5 天前
DreamStudio-Stable Diffusion官方绘画工具
stable diffusion·ai工具
如若1235 天前
CompVis Stable Diffusion 正确安装与运行指南
stable diffusion
全息数据10 天前
DDPM代码讲解【详细!!!】
深度学习·stable diffusion·多模态·ddpm
老鱼说AI19 天前
当自回归模型遇上扩散模型:下一代序列预测模型详解与Pytorch实现
人工智能·pytorch·深度学习·神经网络·语言模型·自然语言处理·stable diffusion
我希望的一路生花25 天前
Nik Collection 6.2全新版Nik降噪锐化调色PS/LR插件
人工智能·计算机视觉·设计模式·stable diffusion·aigc
GetcharZp25 天前
玩转AI绘画,你只差一个节点式“魔法”工具——ComfyUI 保姆级入门指南
人工智能·stable diffusion
Seeklike1 个月前
diffuxers学习--AutoPipeline
人工智能·python·stable diffusion·diffusers
游戏AI研究所1 个月前
ComfyUI 里的 Prompt 插值器(prompt interpolation / text encoder 插值方式)的含义和作用!
人工智能·游戏·机器学习·stable diffusion·prompt·aigc
迈火1 个月前
ComfyUI-3D-Pack:3D创作的AI神器
人工智能·gpt·3d·ai·stable diffusion·aigc·midjourney