【2027最新】ComfyUI 0.4.55+ 版本共享 Stable Diffusion WebUI 模型配置指南(解决 extra - 随着 ComfyUI 桌面版的不断更新,其内部架构也在发生变化

📅 2026-12-01 👤 拼多多助力营销技巧 📂 手赚APP 👁️ 541 次阅读

✅ 标题:

【2025最新】ComfyUI 0.4.55+ 版本共享 Stable Diffusion WebUI 模型配置指南(解决 extra_model_paths.yaml 失效问题)

 前言

在使用 ComfyUI 的过程中,许多用户希望与 Stable Diffusion WebUI 共享模型文件夹,以避免重复下载和存储大量模型(如 Checkpoint、LoRA、ControlNet 等)。

然而,在升级到 ComfyUI Setup 0.4.55 - x64.exe 及以上版本后,很多老用户发现之前有效的 extra_model_paths.yaml 配置突然“失效”——模型无法加载、路径不生效、甚至找不到配置文件!

本文将详细说明:

新版 ComfyUI 中 extra_model_paths.yaml 的变化如何正确配置模型共享路径完整的 YAML 示例 + 排错建议

让你轻松实现双 UI 模型互通,节省磁盘空间,提升工作效率 

 前提条件

条件 说明 已安装 Stable Diffusion WebUI 并已部署好模型(位于F:\...\stable-diffusion-webui\) 已安装 ComfyUI for Windows 推荐使用官方桌面版ComfyUI Setup 0.4.55 - x64.exe 模型目录存在 如models/Stable-diffusion,models/Lora等 使用管理员权限运行 避免因权限问题导致读取失败

 项目地址 :

ComfyUI 官网:https://www.comfy.org

SD WebUI GitHub:https://github.com/AUTOMATIC1111/stable-diffusion-webui

⚠️ 为什么旧方法失效了?

❌ 老版本行为(≤0.4.50)

extra_model_paths.yaml 文件位于 ComfyUI 安装目录下(如 Win_ComfyUI/)支持相对路径或自定义多路径映射

✅ 新版本变化(≥0.4.55)

ComfyUI 桌面版采用 独立运行时环境配置文件被重定向至系统目录: C:\Users\<用户名>\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\extra_model_paths.yaml 即使你在原安装目录修改 extra_model_paths.yaml,也不会生效!新版 extra_model_paths.yaml文件备份:

# ComfyUI extra_model_paths.yaml for win32

comfyui_migration:

checkpoints: models\checkpoints\

classifiers: models\classifiers\

clip: models\clip\

clip_vision: models\clip_vision\

configs: models\configs\

controlnet: models\controlnet\

diffusers: models\diffusers\

diffusion_models: models\diffusion_models\

embeddings: models\embeddings\

gligen: models\gligen\

hypernetworks: models\hypernetworks\

loras: models\loras\

photomaker: models\photomaker\

style_models: models\style_models\

text_encoders: models\text_encoders\

unet: models\unet\

upscale_models: models\upscale_models\

vae: models\vae\

vae_approx: models\vae_approx\

animatediff_models: models\animatediff_models\

animatediff_motion_lora: models\animatediff_motion_lora\

animatediff_video_formats: models\animatediff_video_formats\

ipadapter: models\ipadapter\

liveportrait: models\liveportrait\

insightface: models\insightface\

layerstyle: models\layerstyle\

LLM: models\LLM\

Joy_caption: models\Joy_caption\

sams: models\sams\

blip: models\blip\

CogVideo: models\CogVideo\

xlabs: models\xlabs\

instantid: models\instantid\

base_path: F:\PythonProjects\Win_ComfyUI

comfyui_desktop:

is_default: "true"

custom_nodes: custom_nodes/

download_model_base: models

base_path: F:\PythonProjects\Win_ComfyUI

desktop_extensions:

custom_nodes: C:\Users\love\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes

 结论 : 你必须通过 ComfyUI 内置菜单打开并编辑正确的 extra_model_paths.yaml 文件,否则一切修改都无效!

✅ 正确操作步骤

步骤 1:启动 ComfyUI

运行 ComfyUI Setup 0.4.55 - x64.exe,等待主界面加载完成。

 提示:首次启动可能会自动创建默认配置文件。

步骤 2:打开帮助菜单 → 编辑配置文件

点击顶部菜单栏的 Help (帮助) → Open Folder → 选择 "Open extra_model_paths.yaml"

这会用系统默认文本编辑器(如记事本)打开真正的配置文件。

步骤 3:修改 extra_model_paths.yaml

将内容替换为以下推荐配置(请根据你的实际路径调整):

# extra_model_paths.yaml

comfyui_migration:

# 设置 base_path 为 stable-diffusion-webui 根目录

base_path: F:/PythonProjects/stable-diffusion-webui

# 映射各模型路径(基于 base_path)

checkpoints: models/Stable-diffusion

controlnet: models/controlnet

loras: models/Lora

embeddings: models/embeddings

hypernetworks: models/hypernetworks

vae: models/VAE

clip: models/Clip # 注意大小写:WebUI 是 "Clip"

clip_vision: models/clip_vision # 如有需要

upscale_models: models/GFPGAN # 或 ESRGAN / RealESRGAN

vae_approx: models/VAE-approx

# 可选模块(按需启用)

# animatediff_models: models/animatediff

# ipadapter: models/ipadapter

# insightface: models/insightface

# liveportrait: models/liveportrait

# 不使用的路径可以直接注释掉或删除,避免警告

# configs: models/configs 拼多多帮助力入口

# diffusers: models/diffusers

# ComfyUI Desktop 主配置

comfyui_desktop:

is_default: "true"

custom_nodes: custom_nodes/

download_model_base: models

base_path: F:/PythonProjects/Win_ComfyUI

# 桌面版扩展节点路径(保持不变)

desktop_extensions:

custom_nodes: C:/Users/替换为你的用户名/AppData/Local/Programs/@comfyorgcomfyui-electron/resources/ComfyUI/custom_nodes

✅ 关键点:

使用正斜杠 / 而非反斜杠 \base_path 必须是 绝对路径子路径基于 base_path 计算,例如最终路径 = F:/.../stable-diffusion-webui/models/Stable-diffusion

步骤 4:保存并重启 ComfyUI

保存文件后,完全关闭 ComfyUI 进程 (包括后台进程),然后重新启动程序。

⚠️ 不重启 = 不生效!

步骤 5:验证模型是否加载成功

进入 ComfyUI 工作流,尝试加载一个模型节点(如 CheckpointLoaderSimple),查看下拉框中是否出现你在 WebUI 中已有的模型。

✅ 成功标志:

下拉列表显示 .ckpt 或 .safetensors 模型名加载时不报错 Path not found

模型及微调模型加载正常:

️ 常见问题与解决方案

问题 原因 解决方案 模型未显示 extra_model_paths.yaml路径错误 通过 Help → Open Folder 打开正确文件 报错No such file or directory 子目录名称不匹配 检查 WebUI 实际文件夹名(注意大小写) 启动失败,Python 退出码 1 YAML 语法错误 检查缩进、冒号、空格是否规范 路径中有中文或空格 Python 解析异常 尽量避免,或用引号包裹路径(不推荐) 权限不足 系统阻止访问 以管理员身份运行 ComfyUI

 高级技巧:双向模型共享

你还可以让 Stable Diffusion WebUI 也读取 ComfyUI 的模型!

编辑 WebUI 的 webui-user.bat,添加参数:

set COMMANDLINE_ARGS= ^

--ckpt-dir "F:/PythonProjects/Win_ComfyUI/models/checkpoints" ^

--lora-dir "F:/PythonProjects/Win_ComfyUI/models/loras" ^

--controlnet-dir "F:/PythonProjects/Win_ComfyUI/models/controlnet"

这样就实现了 真正意义上的模型双向共享 ,再也不用担心重复下载!

✅ 总结

重点 内容  核心要点 新版 ComfyUI 的配置文件位置变了!必须通过菜单打开 ️ 推荐做法 使用base_path + 子路径映射 WebUI 模型目录 ✅ 成功关键 绝对路径 + 正确大小写 + 重启生效  节省空间 一套模型,两个 UI 共用,省下几十 GB

 结语

随着 ComfyUI 桌面版的不断更新,其内部架构也在发生变化。过去的经验可能不再适用,我们需要及时跟进官方变动。

本文适用于:

ComfyUI Setup 0.4.55 - x64.exe 及更高版本Windows 平台用户希望与 SD WebUI 共享模型的用户

如果你觉得有帮助,欢迎点赞、收藏、转发!也欢迎在评论区分享你的配置经验 

 上一版配置参考链接 : ComfyUI for Windwos与 Stable Diffusion WebUI 模型共享修复

标签: 拼多多助力网站平台 赚钱项目 拼多多助力网 首码项目 手赚APP
拼多多助力营销技巧