FireRed 圖像編輯 1.1:圖像編輯 - After
FireRed 圖像編輯 1.1:圖像編輯 - Before

FireRed Image Edit 1.1 工作流程結合先進 AI 技術,針對身份一致性、多元素融合與專業照片修復進行圖像增強與修改。用戶可上傳圖像並輸入文字提示,引導編輯過程。主要節點包括 LoadImage(匯入圖像)與 SaveImage(匯出結果)。ID 為 4e4e025b-dcef-4cf9-a96b-cc11a46c1ab2 的專用節點負責以指定模型處理圖像,確保輸出高品質且貼合輸入提示。

技術上,流程結合 VAE(變分自編碼器)與進階文字編碼器,有效解讀並應用文字提示。qwen_image_vae.safetensors 檔案為 VAE 元件關鍵,支援細緻圖像轉換;qwen_2.5_vl_7b_fp8_scaled.safetensors 文字編碼器則解讀文字輸入,引導圖像編輯。此設計特別適合需細緻編輯且不損原始身份的應用,從簡單增強到複雜藝術創作皆適用。

API

從程式碼使用此工作流

每個 Comfy 工作流都是一個 JSON 圖。下方的 payload 就是此工作流,與 ComfyUI 執行時完全相同 — 你可以從此 URL 取得、放入版本控制,或在 ComfyUI 載入並逐節點執行。

image_firered_image_edit1_1.json
正在取得工作流 JSON…

使用 Comfy SDK 以 TypeScript 或 Python 執行。相同程式碼可用於 Comfy Cloud 或你自架的 ComfyUI — 只需更改 base URL。

// Install (beta)
npm i @comfyorg/sdk

// Run "FireRed 圖像編輯 1.1:圖像編輯" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("image_firered_image_edit1_1_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("143", "image", asset); // LoadImage

const job = await client.run(wf);
await job.getOutputs("9")[0].toFile("output.png"); // SaveImage

SDK 需使用 API 格式的工作流:請在 ComfyUI 開啟此工作流,並使用 檔案 → 匯出工作流(API)。

Comfy Cloud API 存取需有 API 金鑰的方案。

常見問題

常見問題

查看所有工作流
Showing 30 of 30 templates