{
  "format": "ai-knowledge-map/tutorial-v1",
  "canonical": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/",
  "language": "zh-Hans",
  "title": "第三章 寻找与复用现成工作流",
  "summary": "按人物一致性、商品重新布光、局部修改和图片放大，查阅 IP-Adapter FaceID、ComfyUI Inpainting 与 ESRGAN 案例，核对复用前的准备和结果记录。",
  "questions": [
    {
      "question": "有哪些现成工作流可用于人物一致性和商品图？",
      "answer": "本章提供 FaceID 人物一致性与产品重新布光案例，复用时需要核对输入素材、模型配套和使用条件；本站尚未做本机生成验收。",
      "sections": [
        {
          "id": "course-image-workflow-reuse-section-1",
          "title": "人物一致性案例 IP-Adapter FaceID Plus v2",
          "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-1"
        },
        {
          "id": "course-image-workflow-reuse-section-2",
          "title": "商品图案例 产品重新布光与背景协调",
          "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-2"
        }
      ]
    },
    {
      "question": "怎样查找并复用 ComfyUI 局部重绘和图片放大案例？",
      "answer": "局部重绘和放大部分链接到 ComfyUI 官方教程及原始工作流图片，可按文中要求载入并补齐模型。",
      "sections": [
        {
          "id": "course-image-workflow-reuse-section-3",
          "title": "局部修改案例 ComfyUI 官方 Inpainting",
          "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-3"
        },
        {
          "id": "course-image-workflow-reuse-section-4",
          "title": "图片放大案例 ESRGAN 与 Real-ESRGAN 模型放大",
          "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-4"
        }
      ]
    },
    {
      "question": "复用别人的图像工作流前，需要准备和记录什么？",
      "answer": "核对节点、模型、输入素材和运行条件，保留原工作流与结果记录，再逐项替换材料或设置，方便定位差异。",
      "sections": [
        {
          "id": "course-image-workflow-reuse-section-5",
          "title": "复用前的共同准备与结果记录",
          "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-5"
        }
      ]
    }
  ],
  "scope": "摘要与短答依据正式课程整理。以下完整章节保留原始来源名称、配置细节、适用版本与实测限制。此文件为公开阅读格式，不代表独立审核或实测结果。",
  "sources": [
    {
      "url": "https://docs.comfy.org/interface/features/template",
      "title": "ComfyUI 官方模板",
      "section": "course-image-workflow-reuse-introduction",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-introduction"
    },
    {
      "url": "https://comfy.org/hub/workflows/",
      "title": "Comfy 官方工作流目录",
      "section": "course-image-workflow-reuse-introduction",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-introduction"
    },
    {
      "url": "https://comfyanonymous.github.io/ComfyUI_examples/",
      "title": "ComfyUI 维护者示例库",
      "section": "course-image-workflow-reuse-introduction",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-introduction"
    },
    {
      "url": "https://www.runcomfy.com/comfyui-workflows",
      "title": "RunComfy 工作流库",
      "section": "course-image-workflow-reuse-introduction",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-introduction"
    },
    {
      "url": "https://huggingface.co/h94/IP-Adapter-FaceID",
      "title": "用途与能力说明",
      "section": "course-image-workflow-reuse-section-1",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-1"
    },
    {
      "url": "https://github.com/cubiq/ComfyUI_IPAdapter_plus",
      "title": "插件安装与维护说明",
      "section": "course-image-workflow-reuse-section-1",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-1"
    },
    {
      "url": "https://raw.githubusercontent.com/cubiq/ComfyUI_IPAdapter_plus/main/examples/ipadapter_faceid.json",
      "title": "作者的 FaceID 工作流 JSON",
      "section": "course-image-workflow-reuse-section-1",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-1"
    },
    {
      "url": "https://huggingface.co/h94/IP-Adapter-FaceID/tree/main",
      "title": "模型文件与使用说明",
      "section": "course-image-workflow-reuse-section-1",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-1"
    },
    {
      "url": "https://www.runcomfy.com/comfyui-workflows/create-consistent-characters-in-comfyui-with-ipadapter-faceid-plus",
      "title": "RunComfy 人物一致性教程",
      "section": "course-image-workflow-reuse-section-1",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-1"
    },
    {
      "url": "https://www.runcomfy.com/comfyui-workflows/comfyui-product-relighting-workflow",
      "title": "案例操作说明",
      "section": "course-image-workflow-reuse-section-2",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-2"
    },
    {
      "url": "https://www.youtube.com/watch?v=GsJaqesboTo",
      "title": "作者配套视频",
      "section": "course-image-workflow-reuse-section-2",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-2"
    },
    {
      "url": "https://github.com/lllyasviel/IC-Light",
      "title": "IC-Light 原作者说明",
      "section": "course-image-workflow-reuse-section-2",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-2"
    },
    {
      "url": "https://github.com/kijai/ComfyUI-IC-Light",
      "title": "IC-Light 的 ComfyUI 节点说明",
      "section": "course-image-workflow-reuse-section-2",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-2"
    },
    {
      "url": "https://raw.githubusercontent.com/kijai/ComfyUI-IC-Light/main/example_workflows/ic_light_example_02.png",
      "title": "本地基础工作流原始 PNG",
      "section": "course-image-workflow-reuse-section-2",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-2"
    },
    {
      "url": "https://docs.comfy.org/zh/tutorials/basic/inpaint",
      "title": "官方中文局部重绘教程",
      "section": "course-image-workflow-reuse-section-3",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-3"
    },
    {
      "url": "https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/image/basic/sd1.5_inpaint.png",
      "title": "可拖入 ComfyUI 的原始工作流 PNG",
      "section": "course-image-workflow-reuse-section-3",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-3"
    },
    {
      "url": "https://huggingface.co/Comfy-Org/stable-diffusion-2.1/blob/main/512-inpainting-ema.safetensors",
      "title": "官方教程链接的模型文件页",
      "section": "course-image-workflow-reuse-section-3",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-3"
    },
    {
      "url": "https://comfyanonymous.github.io/ComfyUI_examples/inpaint/",
      "title": "维护者的局部重绘与扩图示例",
      "section": "course-image-workflow-reuse-section-3",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-3"
    },
    {
      "url": "https://docs.comfy.org/zh/tutorials/basic/upscale",
      "title": "官方中文放大教程",
      "section": "course-image-workflow-reuse-section-4",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-4"
    },
    {
      "url": "https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/image/basic/upscale_workflow.png",
      "title": "基础工作流原始 PNG",
      "section": "course-image-workflow-reuse-section-4",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-4"
    },
    {
      "url": "https://comfyanonymous.github.io/ComfyUI_examples/upscale_models/",
      "title": "维护者的模型放大示例",
      "section": "course-image-workflow-reuse-section-4",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-4"
    },
    {
      "url": "https://github.com/xinntao/Real-ESRGAN/blob/master/docs/model_zoo.md",
      "title": "Real-ESRGAN 原作者的模型列表",
      "section": "course-image-workflow-reuse-section-4",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-4"
    },
    {
      "url": "https://support.comfy.org/articles/1536450065-missing-nodes-workflow-won-t-load",
      "title": "缺失节点和模型排查",
      "section": "course-image-workflow-reuse-section-5",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-5"
    },
    {
      "url": "https://huggingface.co/docs/diffusers/using-diffusers/reusing_seeds",
      "title": "Diffusers 指南",
      "section": "course-image-workflow-reuse-section-5",
      "context": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-5"
    }
  ],
  "sections": [
    {
      "id": "course-image-workflow-reuse-introduction",
      "title": "阅读说明",
      "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-introduction",
      "html": "<p>本章围绕人物一致性、商品图、局部修改和图片放大，选取已有完整流程、配套说明与公开示例的方案。它们可作为复用起点，具体效果仍取决于输入素材与运行条件。本次于 2026 年 10 月 31 日核对资料和原始工作流配置，尚未进行本机图像生成验收。</p>\n<p><strong>工作流资源入口</strong></p>\n<table class=\"d-table\"><thead><tr><th>来源</th><th>提供什么</th><th>适合怎样使用</th></tr></thead><tbody><tr><td><a href=\"https://docs.comfy.org/interface/features/template\" target=\"_blank\" rel=\"noopener noreferrer\">ComfyUI 官方模板</a></td><td>可加载的工作流、模型链接和运行说明</td><td>从模板开始，补齐模型后运行</td></tr><tr><td><a href=\"https://comfy.org/hub/workflows/\" target=\"_blank\" rel=\"noopener noreferrer\">Comfy 官方工作流目录</a></td><td>按商品图、光线、人物多角度、局部修改和放大等任务整理的流程</td><td>按目标任务查找候选</td></tr><tr><td><a href=\"https://comfyanonymous.github.io/ComfyUI_examples/\" target=\"_blank\" rel=\"noopener noreferrer\">ComfyUI 维护者示例库</a></td><td>SDXL、图生图、局部重绘、LoRA、ControlNet 和放大等示例</td><td>下载含工作流信息的原始图片并载入</td></tr><tr><td><a href=\"https://www.runcomfy.com/comfyui-workflows\" target=\"_blank\" rel=\"noopener noreferrer\">RunComfy 工作流库</a></td><td>案例说明、工作流 JSON 和平台预配置环境</td><td>在云端跟做，或按依赖说明在本地复用</td></tr></tbody></table>\n<p><strong>四类任务的选择对照</strong></p>\n<table class=\"d-table\"><thead><tr><th>任务</th><th>选用的现成流程</th><th>主要输入与条件</th></tr></thead><tbody><tr><td>人物一致性</td><td>IP-Adapter FaceID Plus v2 作者示例</td><td>清楚的人脸参考图；匹配的 SD 基础模型、FaceID、LoRA、视觉编码器与 InsightFace；研究用途</td></tr><tr><td>商品图</td><td>RunComfy Product Relighting；另附 IC-Light 本地基础示例</td><td>清晰产品图；可选背景和光照蒙版；完整流程与基础示例各用自己的配套组件</td></tr><tr><td>局部修改</td><td>ComfyUI 官方 Inpainting 示例</td><td>原图与修改蒙版；示例指定的专用重绘模型；原生节点</td></tr><tr><td>图片放大</td><td>ComfyUI 官方模型放大流程，配合 ESRGAN 或 Real-ESRGAN</td><td>原图与放大模型；基础流程无需 SD checkpoint、提示词或种子</td></tr></tbody></table>"
    },
    {
      "id": "course-image-workflow-reuse-section-1",
      "title": "人物一致性案例 IP-Adapter FaceID Plus v2",
      "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-1",
      "html": "<p><strong>适用条件与边界</strong></p>\n<p>适合用一张人脸参考图练习同一人物在不同场景中的面部特征保持。输入先选清楚、无遮挡、脸部居中的单人图；这套流程主要约束脸部身份，不同时保证服装、体型、动作和场景一致。模型作者也说明身份一致性并不完美。</p>\n<p>FaceID 模型卡明确限定研究用途，不应把这一案例作为可直接商用的人像方案。配套插件作者已将项目置于维护模式，复用时应记录能跑通的 ComfyUI 与插件版本，保留对应文件。<a href=\"https://huggingface.co/h94/IP-Adapter-FaceID\" target=\"_blank\" rel=\"noopener noreferrer\">用途与能力说明</a>、<a href=\"https://github.com/cubiq/ComfyUI_IPAdapter_plus\" target=\"_blank\" rel=\"noopener noreferrer\">插件安装与维护说明</a></p>\n<p><strong>资料与流程文件</strong></p>\n<ul><li><a href=\"https://raw.githubusercontent.com/cubiq/ComfyUI_IPAdapter_plus/main/examples/ipadapter_faceid.json\" target=\"_blank\" rel=\"noopener noreferrer\">作者的 FaceID 工作流 JSON</a>：保存为 JSON 后载入 ComfyUI。核对时该文件使用 SD 1.5 系列的 Realistic Vision V5.1 checkpoint，加载器选择 FACEID PLUS V2，输出起始尺寸为 512 × 512。</li><li><a href=\"https://huggingface.co/h94/IP-Adapter-FaceID/tree/main\" target=\"_blank\" rel=\"noopener noreferrer\">模型文件与使用说明</a>：SD 1.5 版与 SDXL 版分开，需选择同一模型家族的配套文件。</li><li><a href=\"https://www.runcomfy.com/comfyui-workflows/create-consistent-characters-in-comfyui-with-ipadapter-faceid-plus\" target=\"_blank\" rel=\"noopener noreferrer\">RunComfy 人物一致性教程</a>：补充参考图准备、使用界面与效果示例；平台流程与作者 JSON 分别按各自说明使用。</li></ul>\n<p><strong>复用步骤</strong></p>\n<ol><li>下载作者 JSON 并载入。按插件 README 安装 ComfyUI_IPAdapter_plus，并在同一 ComfyUI 的 Python 环境安装 InsightFace。</li><li>准备 JSON 所用的 checkpoint。SD 1.5 分支使用 <code>ip-adapter-faceid-plusv2_sd15.bin</code>、配对的 <code>ip-adapter-faceid-plusv2_sd15_lora.safetensors</code> 与 README 指定的 ViT-H 视觉编码器。分别放入 <code>models/ipadapter</code>、<code>models/loras</code>、<code>models/clip_vision</code>；checkpoint 放入 <code>models/checkpoints</code>。InsightFace 的配套人脸模型按插件说明准备。</li><li>在 Load Image 选择自己的参考图，替换作者文件中的示例图片名；在 Checkpoint Loader 重新选择本机模型。统一加载器依赖文件命名，按 README 保留所需名称。</li><li>保留 FACEID PLUS V2 与其余起始配置，输入一个简单的新场景描述，先生成单张图片。确认参考图中的人脸被正常识别。</li><li>固定参考图、模型和其他设置，再改变场景或表现形式。面貌偏离时逐项比较参考图裁切、FaceID 影响强度与提示词，保存每次对比。</li><li>逐张检查五官、脸型、年龄感及侧面表现。服装或姿态有额外要求时，另行增加相应控制；不要把仅保持面部特征写成整个人物完全一致。</li></ol>"
    },
    {
      "id": "course-image-workflow-reuse-section-2",
      "title": "商品图案例 产品重新布光与背景协调",
      "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-2",
      "html": "<p><strong>适用条件与边界</strong></p>\n<p>适合已有产品照片，希望更换展示环境或调整照明的任务。完整案例选用 Andrea Baioni 的 Product Relighting，RunComfy 页面提供 JSON 下载入口、图示和作者视频。必需输入为清晰主体图，背景和光照蒙版可以选填；这些条件及下述开关来自<a href=\"https://www.runcomfy.com/comfyui-workflows/comfyui-product-relighting-workflow\" target=\"_blank\" rel=\"noopener noreferrer\">案例操作说明</a>。</p>\n<p>这类流程会重新生成或协调图像，输出应与原产品逐项比较外形、颜色、包装文字、标识和小零件。需要保持准确的标识或文字，可在后续精修时使用原素材恢复。</p>\n<p><strong>资料与流程文件</strong></p>\n<ul><li><a href=\"https://www.runcomfy.com/comfyui-workflows/comfyui-product-relighting-workflow\" target=\"_blank\" rel=\"noopener noreferrer\">Product Relighting 完整案例与工作流 JSON 下载入口</a>。</li><li><a href=\"https://www.youtube.com/watch?v=GsJaqesboTo\" target=\"_blank\" rel=\"noopener noreferrer\">作者配套视频</a>：从案例页链接进入的操作演示。</li><li><a href=\"https://github.com/lllyasviel/IC-Light\" target=\"_blank\" rel=\"noopener noreferrer\">IC-Light 原作者说明</a>：核对重新布光模型、输入条件与相关组件要求。</li><li><a href=\"https://github.com/kijai/ComfyUI-IC-Light\" target=\"_blank\" rel=\"noopener noreferrer\">IC-Light 的 ComfyUI 节点说明</a>及<a href=\"https://raw.githubusercontent.com/kijai/ComfyUI-IC-Light/main/example_workflows/ic_light_example_02.png\" target=\"_blank\" rel=\"noopener noreferrer\">本地基础工作流原始 PNG</a>：供单独练习基础重新布光。它是另一套流程，不替代完整商品图流程。</li></ul>\n<p><strong>完整商品图流程的复用步骤</strong></p>\n<ol><li>在案例页下载 Workflow.json，或打开平台预配置环境。本地导入时，按该 JSON 的节点与模型清单补齐依赖；平台预配置环境不等于本机已经具备同样组件。</li><li>在 Input Images 组上传 Subject Image。需要指定背景时上传 Background，并打开 Background Switch；需要光照蒙版时上传 Light Mask，并打开 Light Mask Switch。没有上传时保留相应关闭状态。</li><li>在 Input Prompts 填写简洁的产品描述与光线描述，例如产品材质、颜色，以及柔和侧光或冷色轮廓光。先保留其余设置，生成一版。</li><li>对照原产品检查两种输出：Color Matched Result 与 Relit Result。它们分别便于观察颜色协调和重新布光后的表现。</li><li>需要调整背景变化幅度时，比较 Denoise 设置；需要调整明暗时，再按案例的结果组说明修改。每次只改变少量设置。</li><li>保存所选结果、输入素材和流程配置，再进入 Photoshop 检查或修复产品细节。</li></ol>\n<p><strong>本地基础示例的运行条件</strong></p>\n<p>Kijai 的原始 PNG 内保存了 SD 1.5 分支的 <code>photon_v1.safetensors</code>、<code>iclight_sd15_fc.safetensors</code> 及 ImageResizeKJ 等节点配置。载入后需准备相应 checkpoint、ComfyUI-IC-Light 和所需 KJNodes；IC-Light 模型依节点说明放入 <code>models/unet</code> 下相应目录，再在加载节点中选择。替换示例输入图，在文本输入中描述主体和照明，先按原有约 512 像素配置练习；改用其他 checkpoint 应另作效果比较。</p>\n<p>IC-Light 原作者还特别指出，原始演示中的 BRIA RMBG 1.4 限非商业使用；如工作流使用了抠图模型，商品用途应检查该组件的条件，不能仅凭 IC-Light 主项目的代码许可判断整条流程。</p>"
    },
    {
      "id": "course-image-workflow-reuse-section-3",
      "title": "局部修改案例 ComfyUI 官方 Inpainting",
      "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-3",
      "html": "<p><strong>适用条件与边界</strong></p>\n<p>适合整体画面已满意，只修改帽子、衣服纹理或背景杂物等局部区域。需要原图和标明修改区域的蒙版。基础练习采用官方指定的 <code>512-inpainting-ema.safetensors</code>，先使用约 512 像素输入跑通，暂不加入第三方节点。</p>\n<p>原始流程文件名虽然包含 sd1.5，加载节点实际指定上述专用重绘文件；应以节点与模型要求为准，不能仅凭示例图片文件名判断模型版本。</p>\n<p><strong>资料与流程文件</strong></p>\n<ul><li><a href=\"https://docs.comfy.org/zh/tutorials/basic/inpaint\" target=\"_blank\" rel=\"noopener noreferrer\">官方中文局部重绘教程</a>：包含模型、输入图片、蒙版编辑与运行说明。</li><li><a href=\"https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/image/basic/sd1.5_inpaint.png\" target=\"_blank\" rel=\"noopener noreferrer\">可拖入 ComfyUI 的原始工作流 PNG</a>。</li><li><a href=\"https://huggingface.co/Comfy-Org/stable-diffusion-2.1/blob/main/512-inpainting-ema.safetensors\" target=\"_blank\" rel=\"noopener noreferrer\">官方教程链接的模型文件页</a>。</li><li><a href=\"https://comfyanonymous.github.io/ComfyUI_examples/inpaint/\" target=\"_blank\" rel=\"noopener noreferrer\">维护者的局部重绘与扩图示例</a>。</li></ul>\n<p><strong>复用步骤</strong></p>\n<ol><li>下载原始 PNG，拖入 ComfyUI 或用 Workflow → Open 载入。使用原文件，避免截图或图片压缩后丢失流程信息。</li><li>下载指定模型，放入 <code>ComfyUI/models/checkpoints</code>，在 Load Checkpoint 中选择它。先保留模板的采样设置。</li><li>在 Load Image 上传官方配套输入图，先运行一次带已有透明蒙版的示例。</li><li>换成自己的原图，右击 Load Image 中的图片，打开 Open in MaskEditor，覆盖需要修改的对象及衔接边缘，并保存蒙版。</li><li>输入对目标内容的描述，例如把帽子换成红色针织帽。检查图像和蒙版均连接到 VAE Encode (for Inpainting)，再执行生成。</li><li>比较修改区域、边缘与周围画面。出现接缝时先调整蒙版范围；要求不变的区域也应与原图比较，必要时在 Photoshop 用蒙版将修改结果合回原图。</li><li>保存原图、蒙版、提示词及工作流。更换为 SDXL 或其他重绘模型时，使用相应配套流程重新确认参数。</li></ol>"
    },
    {
      "id": "course-image-workflow-reuse-section-4",
      "title": "图片放大案例 ESRGAN 与 Real-ESRGAN 模型放大",
      "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-4",
      "html": "<p><strong>适用条件与边界</strong></p>\n<p>适合构图已确定、需要增加像素尺寸的照片或插画。采用 ComfyUI 原生的模型放大流程，无需额外 SD checkpoint、提示词、LoRA 或随机种子。放大结果仍需检查文字、轮廓、五官和纹理；增加像素不能保证恢复原图中不存在的真实细节。</p>\n<p><strong>资料与流程文件</strong></p>\n<ul><li><a href=\"https://docs.comfy.org/zh/tutorials/basic/upscale\" target=\"_blank\" rel=\"noopener noreferrer\">官方中文放大教程</a>及<a href=\"https://raw.githubusercontent.com/Comfy-Org/example_workflows/refs/heads/main/image/basic/upscale_workflow.png\" target=\"_blank\" rel=\"noopener noreferrer\">基础工作流原始 PNG</a>。</li><li><a href=\"https://comfyanonymous.github.io/ComfyUI_examples/upscale_models/\" target=\"_blank\" rel=\"noopener noreferrer\">维护者的模型放大示例</a>。</li><li><a href=\"https://github.com/xinntao/Real-ESRGAN/blob/master/docs/model_zoo.md\" target=\"_blank\" rel=\"noopener noreferrer\">Real-ESRGAN 原作者的模型列表</a>：提供照片与插画等用途的权重链接。它是可替换的放大模型来源，与官方示例默认使用的 4x-ESRGAN 分别识别。</li></ul>\n<p><strong>模型选择参考</strong></p>\n<table class=\"d-table\"><thead><tr><th>图片与目标</th><th>可比较的模型</th></tr></thead><tbody><tr><td>常规图像放大</td><td>RealESRGAN_x4plus 或 RealESRGAN_x2plus</td></tr><tr><td>动漫与插画</td><td>RealESRGAN_x4plus_anime_6B</td></tr><tr><td>优先降低耗时和显存占用</td><td>realesr-general-x4v3；原作者说明其去模糊、去噪能力较有限</td></tr></tbody></table>\n<p><strong>复用步骤</strong></p>\n<ol><li>下载官方工作流原始 PNG 并载入。首次练习可按官方教程使用 4x-ESRGAN；也可从 Real-ESRGAN 原作者列表下载对应的推理权重，避免下载用于训练的 netD 文件。</li><li>将模型放入 <code>ComfyUI/models/upscale_models</code>，在 UpscaleModelLoader 中选择。原工作流保存的 <code>RealESR/4x-ESRGAN.pth</code> 是作者目录记录，需按本机实际文件重新选择。</li><li>在 Load Image 上传待处理图。确认图像与放大模型连接到 ImageUpscaleWithModel，再运行流程并保存输出。</li><li>以实际像素尺寸检查输出。4 倍模型会将宽和高分别扩大约 4 倍；例如 512 × 512 变成约 2048 × 2048。</li><li>放大后在 100% 显示下比较纹理、边缘、文字和面部特征。普通图片与动漫图片可分别比较模型，选择符合用途的结果。</li><li>若运行时显存不足，先用小图测试或降低输入尺寸；需要大图时再选择提供分块处理的配套实现，并检查块间衔接。原作者命令行工具提供 tile 设置，它不是上述基础节点图中的同名参数。</li><li>在继续制作中可把生成流程的图像输出接入这一放大流程，并记录放大模型名称、倍率和输出尺寸。</li></ol>"
    },
    {
      "id": "course-image-workflow-reuse-section-5",
      "title": "复用前的共同准备与结果记录",
      "url": "https://ai-knowledge-map.com/software/image-creation/image-workflow-reuse/#course-image-workflow-reuse-section-5",
      "html": "<p>上述流程均先按各自原始配置运行，再替换输入。模型、LoRA、节点和输入素材通常不会随一个 JSON 文件全部打包。没有明确来源依据时，不给出统一的最低显存承诺；本地需求受模型、输入尺寸、精度、同时加载的组件与软件版本影响。RunComfy 等云端环境按平台当前运行配置和费用说明使用。</p>\n<p>从官方模板开始时，可使用 Workflow → Browse Workflow Templates，按缺失提示补齐模型；作者分享的流程按 JSON 或原始 PNG 载入，再核对自定义节点。参考<a href=\"https://docs.comfy.org/interface/features/template\" target=\"_blank\" rel=\"noopener noreferrer\">模板操作说明</a>与<a href=\"https://support.comfy.org/articles/1536450065-missing-nodes-workflow-won-t-load\" target=\"_blank\" rel=\"noopener noreferrer\">缺失节点和模型排查</a>。</p>\n<p>建议每次保留以下记录，便于继续修改或比较候选：</p>\n<table class=\"d-table\"><thead><tr><th>记录项</th><th>内容</th></tr></thead><tbody><tr><td>流程来源</td><td>页面、文件名、下载日期，以及能够确认的版本或提交</td></tr><tr><td>运行配置</td><td>ComfyUI 与自定义节点版本、模型与配套文件、关键参数</td></tr><tr><td>输入与目标</td><td>参考图、蒙版、提示词、需要保留和修改的内容</td></tr><tr><td>检查结果</td><td>人物特征、产品细节、修改范围或放大纹理是否符合要求</td></tr><tr><td>实际投入</td><td>耗时、运行错误和人工修正量</td></tr></tbody></table>\n<p>随机种子与参数相同也不保证跨环境完全一致，复现条件见 <a href=\"https://huggingface.co/docs/diffusers/using-diffusers/reusing_seeds\" target=\"_blank\" rel=\"noopener noreferrer\">Diffusers 指南</a>。用同一批素材比较多个候选，才能判断哪条流程更适合当前任务。</p>"
    }
  ]
}
