ComfyUI 启动 按钮启动项目bash init.sh 初始化模型,根据实际需要输入对应的数字选择要初始化的模型,等待模型初始化完成即可。bash start.sh 启动 ComfyUI 项目,访问 PORTS 页面中出现的地址即可畅快体验了。python model.py 根据实际需要输入对应的数字选择要下载的模型。如果要安装其他模型参考"自定义安装"部分的说明。lora 的命令。终端中执行 python lora.py 根据实际需要输入对应的数字选择要下载的 lora。如果要安装其他 lora 参考"自定义安装"部分的说明。bash node.sh 根据实际需要输入对应的数字选择要下载的自定义节点。列表中提供的节点为作者推荐节点并经过测试和当前项目兼容,可放心安装。如果需要下载其他节点,参考"自定义安装"部分的说明。bash update.sh 根据实际需要输入对应的数字更新相应的组件。模型下载的配置文件在 models_config.json中,格式示例如下:
"Flux-Dev": [
{
"filename": "flux1-dev.safetensors",
"url": "https://cnb.cool/ai-models/camenduru/FLUX.1-dev/-/lfs/4610115bb0c89560703c892c59ac2742fa821e60ef5871b33493ba544683abd7?name=flux1-dev.safetensors",
"dir": "/ComfyUI/models/diffusion_models"
},
{
"filename": "clip_l.safetensors",
"url": "https://cnb.cool/ai-models/comfyanonymous/flux_text_encoders/-/lfs/660c6f5b1abae9dc498ac2d21e1347d2abdb0cf6c0c0c8576cd796491d9a6cdd?name=clip_l.safetensors",
"dir": "/ComfyUI/models/text_encoders"
},
{
"filename": "t5xxl_fp16.safetensors",
"url": "https://cnb.cool/ai-models/comfyanonymous/flux_text_encoders/-/lfs/6e480b09fae049a72d2a8c5fbccb8d3e92febeb233bbe9dfe7256958a9167635?name=t5xxl_fp16.safetensors",
"dir": "/ComfyUI/models/text_encoders"
},
{
"filename": "ae.safetensors",
"url": "https://cnb.cool/ai-models/black-forest-labs/FLUX.1-Kontext-dev/-/lfs/afc8e28272cd15db3919bacdb6918ce9c1ed22e96cb12c4d5ed0fba823529e38?name=ae.safetensors",
"dir": "/ComfyUI/models/vae"
}
]
主要参数说明如下
| 参数名称 | 参数说明 | 备注 |
|---|---|---|
| filename | 下载后的文件名称 | 不要与已有的重复 |
| url | 下载链接 | 支持从cnb、huggingface、魔搭等平台下载模型,优先选择cnb平台内网速度更快 |
| dir | 模型文件放置路径 | 前缀一般是 /ComfyUI/models 后面的路径根据实际情况填写 |
模型下载的配置文件在 loras_config.json中,格式示例如下:
"wan2.1_lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16":[
{
"filename": "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
"url": "https://cnb.cool/ai-models/Kijai/WanVideo_comfy/-/lfs/85c4a61c30e0497aa44b91d93a893b624708461a56fe5485183b28fa07e2dfb3?name=lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
"dir": "/ComfyUI/models/loras/wan2.1"
}
]
主要参数说明如下
| 参数名称 | 参数说明 | 备注 |
|---|---|---|
| filename | 下载后的文件名称 | 不要与已有的重复 |
| url | 下载链接 | 支持从cnb、huggingface、魔搭等平台下载,优先选择cnb平台内网速度更快 |
| dir | 模型文件放置路径 | 前缀一般是 /ComfyUI/models/loras 后面的路径根据实际需要填写 |