问小白 wenxiaobai
资讯
历史
科技
环境与自然
成长
游戏
财经
文学与艺术
美食
健康
家居
文化
情感
汽车
三农
军事
旅行
运动
教育
生活
星座命理

ComfyUI+krita AI实时绘画安装部署方法

创作时间:
作者:
@小白创作中心

ComfyUI+krita AI实时绘画安装部署方法

引用
1
来源
1.
https://www.cainiaoxueyuan.com/jianji/60529.html

ComfyUI+krita AI实时绘画是一套强大的AI绘画工具组合,通过整合Krita和ComfyUI,用户可以实现更高效、更便捷的AI绘画创作。本文将详细介绍如何安装和配置这套工具,包括环境搭建、插件安装、模型配置等关键步骤。

概要

  • 整合了Krita+ComfyUI
  • 提供了相关压缩包下载链接
  • 绘画简要教程
  • 官方ComfyUI介绍参考:ComfyUI介绍(官方直译)详细部署教程和使用

下载Krita+ComfyUI使用教程

下载压缩包

下载地址:链接:

krita绘画软件
官网
地址

krita-ai-diffusion 插件:

  • 解压,最好不要有中文路径,解压后,文件如下图所示
  1. 第一个压缩包为ComfyUI整合包,再解压此文件夹

修改配置,实现与Stable Diffusion 中的模型库文件共享(避免重复下载资源)

stable-diffusion-webui 如何跟ComfyUI之间共享模型,以下说明配置方法:将
extra_model_paths.yaml.example
文件复制一份,然后通过文本编辑器打开副本文件。
其中ComfyUI-master中,修改extra_model_paths.yaml:
该文件中的更改和保存项为(最好将原本Windows路径里的\ ,改为/ ):
a111:
base_path: F:\qiuye_V4.5\Stable Diffusion #path/to/stable-diffusion-webui/
checkpoints: models/Stable-diffusion
configs: models/Stable-diffusion
vae: models/VAE
loras: | models/Lora
models/LyCORIS
upscale_models: | models/ESRGAN
models/RealESRGAN
models/SwinIR
embeddings: embeddings
hypernetworks: models/hypernetworks
controlnet:extensions\sd-webui-controlnet\models #models/ControlNet

安装其中的ComfyUI-Manager插件工具

ComfyUI-Manager插件的工具下载地址:
1)下载解压文件,复制粘贴到custom_nodes中。
2)方法2:提前装好git工具;用git命令下载到对应环境下。(在custom_nodes目录下,输入cmd,然后输入 git clone http://地址。

启动ComfyUI

  1. 双击
    run_nvidia _gpu.bat
    启动ComfyUI

git 命令安装
前往*\ComfyUI\custom_nodes目录在文件路径处输入cmd 按下回车会打开cmd命令行。
通过该命令安装:
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
下图表示安装成功,重启ComfyUI。

配置使用Stable Diffusion的模型库路径:
2.第2个安装包,双击安装
krita-x64-5.2.1-setup.exe
,一直点击下一步即可。

  • 桌面打开安装好的krita软件,从工具->脚本->从文件导入 Python 插件...,选择解压后的
    krita_ai_diffusion-1.7.1.zip
    文件
  • 然后重启krita软件即可。
  • 到目前为止,所有环境具体就准备好了。
  • 点击新建文件,像素设置为500*500:

Krita连接配置出现缺模型

提示缺少CLIPVision model pytorch_model.bin

pytorch_model.bin官方下载地址:

提示

ip-adapter_sd15.safetensors, ip-adapter_sdxl_vit-h.safetensors. Make sure to download the model and place it in the ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus/models folder.
下载地址:ip-adapter_sd15.safetensors 链接: 提取码: 6666 ;
ip-adapter_sdxl_vit-h.safetensors

ComfyUI汉化插件

AIGODLIKE-ComfyUI-Translation 用于 ComfyUI 多语言翻译的插件,该插件实现了常驻菜单栏/搜索栏/右键上下文菜单/节点等的翻译。

通过Manager安装AIGODLIKE-ComfyUI-Translation,没用git或者访问github下载缓慢请往下看找到手动安装。

Krita 5.2.1 下载地址:

IP-Adapter下载地址:

【模型介绍】这个可以让你玩出花儿来的模型-IP-Adapter

视频krita和ComfyUI联动:

https://xueshu.fun/3244/

当提示“connected”时,则表示,Krita与ComfyUI连接匹配成功可以实现实时动态绘画。

Krita与ComfyUI的演示示意可以查看:

ComfyUI介绍(官方直译)详细部署教程和使用

Krita连接ComfyUI时需要安装的自定义节点(需要访问github):

Install custom nodes according to the instructions of the respective projects, or use ComfyUI Manager.

  • ControlNet preprocessors
  • IP-Adapter
  • Ultimate SD Upscale
  • External tooling nodes
    需要的模型
    Download models to the paths indicated below. If you are using extra_model_paths.yml, those will also work. Shared models are always required, and at least one of SD1.5 and SDXL is needed.

Shared

  • Clip-Vision to models/clip_vision/SD1.5
  • NMKD Superscale SP_178000_G to models/upscale_models

SD 1.5

  • ControlNet inpaint to models/controlnet
  • ControlNet tile to models/controlnet
  • IP-Adapter (SD1.5) to custom_nodes/ComfyUI_IPAdapter_plus/models
  • LCM-LoRA (SD1.5) to models/loras/lcm-lora-sdv1-5.safetensors _ !*一定记住改名!

SD XL

  • IP-Adapter (SDXL) to custom_nodes/ComfyUI_IPAdapter_plus/models
  • LCM-LoRA (SDXL) to models/loras/lcm-lora-sdxl.safetensors rename!
  • Checkpoints The following checkpoints are used by the default styles:
  • Realistic Vision
  • DreamShaper
  • JuggernautXL
© 2023 北京元石科技有限公司 ◎ 京公网安备 11010802042949号