The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Qwen-Image-Edit 2511: a Speed option, Fast (4-step Lightning) by default and Best (40 steps)
Adarshf7dfdf681a28
diff --git a/docs/billing-hook.md b/docs/billing-hook.mdindex 84455bbe..26b2a34f 100644--- a/docs/billing-hook.md+++ b/docs/billing-hook.md@@ -49,6 +49,7 @@ type RunFacts = {kind: "image" | "video" | "audio" | "text" | "model3d"; engine: "open" | "cloud"; provider: string;jobs: number; outputsPerJob: number; megapixels: number | null; seconds: number | null; fps: number | null;loras: number; inputs: { image: number; video: number; audio: number }; lane: string | null; providerUsd: number | null;+ workflow?: string | null;steps?: { model: string; op: string | null; kind: RunFacts["kind"]; jobs: number; lane: string | null }[];};type QueueFacts = { lane: string; ahead: number; etaS: number | null; workersOnline: number; nextOpenAt: number | null; mine: { waiting: number; running: number } };@@ -139,6 +140,10 @@ workflow binds (a canvas the request names counts only there; else the aspect radefaults where the request names none), or for a workflow sized by its input (an edit, an upscale, a face swap) theinput's size, an upscale's times its factor, within the workflow's limits. It is null for sound, text and 3D.+`workflow` is the graph a ComfyUI run resolves to after its options pick a variant (a speed, a quality, a GPU tier),+so a service can treat graph variants differently: Qwen-Image-Edit 2511 on Fast is `qwen-image-edit-2511-multi-fast`, on+Best `qwen-image-edit-2511-multi`. It is absent (or null) for every other run, and a service should accept a run without it.+`steps` lists every step of the run that uses this install's GPUs, the run's own step first: a chain (a film ofseveral shots, a picture and then a step on it) is priced once, with one quote and one hold, for one press of Run.Steps of CPU work are left out: they cost nothing. The requirements index marks these `cpu`: no model file, nodiff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjsindex 93546d9d..c27547e6 100644--- a/scripts/comfy/build-library.mjs+++ b/scripts/comfy/build-library.mjs@@ -336,7 +336,19 @@ async function main() {graph = readJson(path.join(HERE, spec.handBuilt));meta = { models: [] };source = `hand-built (scripts/comfy/${spec.handBuilt})`;- } else throw new Error(`${spec.id}: needs export or handBuilt`);+ } else if (spec.derive) {+ // A variant of another entry (Qwen-Image-Edit 2511's Fast graph): that entry's built graph, then this entry's+ // transforms. Its models keep the base entry's download URLs, so both name the same pinned files.+ const baseFile = path.join(OUT_DIR, `${spec.derive}.json`);+ const base = prevManifest.workflows.find((w) => w.id === spec.derive);+ if (!fs.existsSync(baseFile) || !base) {+ errors.push(`${spec.id}: ${spec.derive} isn't built yet; build it first`);+ continue;+ }+ graph = readJson(baseFile);+ meta = { models: (base.models || []).filter((m) => m.url).map((m) => ({ name: m.file, url: m.url, directory: m.folder })) };+ source = `derived from ${spec.derive} (see notes)`;+ } else throw new Error(`${spec.id}: needs export, handBuilt or derive`);// ---- transformtry {diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex 3aae3df2..7783a1ac 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -1340,6 +1340,46 @@ export const SPEC = [vramGb: 24,notes: 'TextEncodeQwenImageEditPlus takes up to 3 images; refer to them as "image 1/2/3" in the prompt. All three are required. Output size follows image 1.',},+ // Options → Speed "fast" (the default) on qwen-image-edit-2511-multi (src/lib/qwen-edit-speed.ts): the built graph above+ // with one LoRA, its steps and CFG set to the LoRA's.+ {+ id: 'qwen-image-edit-2511-multi-fast',+ title: 'Qwen-Image-Edit 2511 Multi-Image (3 images) · 4 steps, Lightning LoRA',+ capability: 'edit',+ derive: 'qwen-image-edit-2511-multi',+ transforms: [+ {+ op: 'addNodes',+ nodes: {+ 1202: {+ class_type: 'LoraLoaderModelOnly',+ inputs: { lora_name: 'Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors', strength_model: 1.0, model: ['170:161', 0] },+ _meta: { title: 'LoraLoaderModelOnly (Lightning 4 steps)' },+ },+ },+ },+ { op: 'set', node: '170:145', input: 'model', value: ['1202', 0] },+ { op: 'set', node: '170:166', input: 'value', value: 4 },+ { op: 'set', node: '170:154', input: 'value', value: 1.0 },+ ],+ bindings: {+ prompt: [b('170:151', 'prompt')],+ negativePrompt: [b('170:149', 'prompt')],+ image: [b('41', 'image')],+ image2: [b('83', 'image')],+ image3: [b('1201', 'image')],+ seed: [b('170:169', 'seed')],+ },+ outputs: [{ node: '9', kind: 'image' }],+ limits: { maxWidth: 2048, maxHeight: 2048 },+ vramGb: 24,+ license: 'Apache-2.0 (Qwen-Image-Edit-2511, Lightning LoRA)',+ notes:+ 'Options → Speed "fast" (the default) on qwen-image-edit-2511-multi: the same graph with LightX2V\'s Qwen-Image-Edit-2511-Lightning 4-step LoRA ' ++ '(LoraLoaderModelOnly, strength 1) between the UNETLoader and ModelSamplingAuraFlow, 4 steps at cfg 1, euler / simple. ' ++ 'No steps or cfg binding: the LoRA sets both. "best" runs qwen-image-edit-2511-multi (40 steps, cfg 4). ' ++ 'TextEncodeQwenImageEditPlus takes up to 3 images; refer to them as "image 1/2/3" in the prompt. All three are required. Output size follows image 1.',+ },{id: 'flux1-kontext-dev-edit',title: 'FLUX.1 Kontext [dev] Image Edit',diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex 5142701f..3450dbc3 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -5,6 +5,7 @@ import { ASR_LANGUAGES, WHISPER_LANGUAGES } from "../speech-languages";import { PROMPT_HELPER_PARAM } from "@/lib/comfy";import { KANDINSKY_PLACEHOLDER } from "@/lib/kandinsky-prompt";import { QWEN21_DECODER, QWEN21_GPU, QWEN21_SPEED } from "@/lib/qwen21-speed";+import { QWEN_EDIT_SPEED } from "@/lib/qwen-edit-speed";import { QMA_AZIMUTHS, QMA_AZIMUTH_LABELS, QMA_DISTANCES, QMA_DISTANCE_LABELS, QMA_DISTANCE_ZOOM, QMA_ELEVATIONS, QMA_ELEVATION_DEGREES, QMA_ELEVATION_LABELS, QMA_MODEL, QMA_PARAMS } from "@/lib/qma";import { H3_DECODER, H3_FAST_DECODE_OFFERED, H3_GPU_TIER } from "@/lib/gpu/h3-tier";import { loraEntry, loraRef } from "./loras";@@ -555,8 +556,9 @@ const open: ModelDef[] = [kind: "image",tagline: "Edit with words, up to 3 references",badges: ["top"],+ // Options → Speed: Fast (4 steps, the Lightning LoRA, the default) or Best (40 steps): src/lib/qwen-edit-speed.ts.routes: [comfy("edit", "qwen-image-edit-2511-multi")],- options: { maxImages: 3, seed: true, negativePrompt: true },+ options: { maxImages: 3, seed: true, negativePrompt: true, controls: [QWEN_EDIT_SPEED] },}),o({id: "oss-flux-kontext",diff --git a/src/lib/comfy-compose.ts b/src/lib/comfy-compose.tsindex 9fc83399..d82304d8 100644--- a/src/lib/comfy-compose.ts+++ b/src/lib/comfy-compose.ts@@ -231,6 +231,7 @@ const MEDIA_LOADERS: Record<string, string> = {const SLOT_RULES: Record<string, { reuse?: boolean; required?: string[]; hints?: Record<string, string>; views?: ViewSlots }> = {// Edit graphs whose extra images feed TextEncodeQwenImageEditPlus: a repeated reference is harmless."qwen-image-edit-2511-multi": { reuse: true },+ "qwen-image-edit-2511-multi-fast": { reuse: true },"storyboard-qwen-edit-2509-next-scene": { reuse: true },"tryon-flux2-klein-4b": { required: ["image2"], hints: { image: "Add a photo of the person", image2: "Add the garment to try on" } },// Its describer reads the outfit photo; the words graph (outfit-swap-qwen-image-21-text) runs when there is none.diff --git a/src/lib/comfy-variants.ts b/src/lib/comfy-variants.tsindex 57146de8..8dcd20bc 100644--- a/src/lib/comfy-variants.ts+++ b/src/lib/comfy-variants.ts@@ -1,7 +1,9 @@import { exrWorkflow } from "@/lib/av/video-finish";import { idolViewsGraph } from "@/lib/av/idol-views";-import { qwen21Graph } from "@/lib/qwen21-speed";-import { H3_TIER_PARAM, tierGraphFor } from "@/lib/gpu/h3-tier";+import { GPU_PARAM, qwen21Graph } from "@/lib/qwen21-speed";+import { qwenEditGraph } from "@/lib/qwen-edit-speed";+import { H3_TIER_PARAM, H3_UNET_PARAM, tierGraphFor } from "@/lib/gpu/h3-tier";+import type { GenerationRequest } from "@/lib/catalog/types";/*** Which workflow a ComfyUI route runs for a request: the route's endpoint, or a variant picked by an option.@@ -98,6 +100,34 @@ export interface VariantRequest {has: (id: string) => boolean;}+/**+ * The workflow id a ComfyUI run takes, from its request and what its plan decided (previewGeneration's `gpu` and `h3`):+ * the GPU pre-flight's gate checks this graph and the billing facts name it (RunFacts.workflow).+ */+export function requestWorkflowId(+ endpoint: string,+ req: Pick<GenerationRequest, "inputs" | "params">,+ o: { op: string; gpu?: string; h3?: { gpuTier: string; unet?: string }; has: (id: string) => boolean },+): { id: string; extra: Record<string, unknown> } {+ const extra: Record<string, unknown> = {+ ...req.params?.extra,+ ...(o.gpu && { [GPU_PARAM]: o.gpu }),+ ...(o.h3 && { [H3_TIER_PARAM]: o.h3.gpuTier, ...(o.h3.unet && { [H3_UNET_PARAM]: o.h3.unet }) }),+ };+ const id = resolveWorkflowId(endpoint, {+ op: o.op,+ clips: req.inputs?.videos?.length ?? 0,+ images: req.inputs?.images?.length ?? 0,+ format: req.params?.format,+ audio2: !!req.inputs?.audio2 || !!req.params?.extra?.audio2,+ audio: !!req.inputs?.audio,+ mask: !!req.inputs?.mask,+ extra,+ has: o.has,+ });+ return { id, extra };+}+/** The workflow id a route's endpoint runs as, for this request. */export function resolveWorkflowId(endpointTemplate: string, r: VariantRequest): string {// "video-concat-{n}": one workflow per clip count.@@ -116,6 +146,8 @@ export function resolveWorkflowId(endpointTemplate: string, r: VariantRequest):if (shot && r.extra.productShot === true && r.images === 1 && r.has(shot)) endpoint = shot;// Qwen-Image 2.1: Options → Speed's graph, or the small encoder's when Options → GPU says Small (src/lib/qwen21-speed.ts).endpoint = qwen21Graph(endpoint, r.extra, r.has);+ // Qwen-Image-Edit 2511: Options → Speed's Fast graph unless the run asks for Best (src/lib/qwen-edit-speed.ts).+ endpoint = qwenEditGraph(endpoint, r.extra, r.has);// MiniMax H3: an orbit runs the Orbit LoRA graph (whatever the quality or tier). Else Quality → Fast · Pika Flex runs its// 6-step graph: Pika's bf16 adapters ride on the full fl2va int8 model, so Flex is the full model's alone, and it wins over a// smaller card's tier. The plan sees to it that the two never meet here by chance (src/server/h3-gpu.ts): Flex with Auto keepsdiff --git a/src/lib/qwen-edit-speed.ts b/src/lib/qwen-edit-speed.tsnew file mode 100644index 00000000..9c7cccfc--- /dev/null+++ b/src/lib/qwen-edit-speed.ts@@ -0,0 +1,45 @@+import type { ModelOptions } from "@/lib/catalog/types";+import { SPEED_PARAM } from "@/lib/qwen21-speed";++/**+ * Qwen-Image-Edit 2511's Options → Speed on your GPU. Pure: the provider (src/server/providers/comfyui.ts) and the GPU+ * pre-flight's gate both resolve a run's graph through resolveWorkflowId (src/lib/comfy-variants.ts), which reads this.+ *+ * - Fast (the default, and what a run that sends no speed takes): the 4-step graph, the base graph with LightX2V's+ * Qwen-Image-Edit-2511 Lightning LoRA after the model loader, 4 steps at CFG 1 (scripts/comfy/library.spec.mjs). Its+ * steps and CFG are the LoRA's own, so it binds neither.+ * - Best: the base graph as it was, 40 steps at CFG 4.+ *+ * The same params key as Qwen-Image 2.1's speed (params.extra.speed); the values are this model's own.+ */++export type QwenEditSpeed = "fast" | "best";++/** Each base graph's Fast graph (the base graph is Best). */+export const QWEN_EDIT_FAST_GRAPH: Record<string, string> = {+ "qwen-image-edit-2511-multi": "qwen-image-edit-2511-multi-fast",+};++/** The LoRA the Fast graph loads (pinned in workflows/comfyui/model-pins.json). */+export const QWEN_EDIT_FAST_LORA = "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors";++type Control = NonNullable<ModelOptions["controls"]>[number];++/** Options → Speed (the default is Fast). */+export const QWEN_EDIT_SPEED: Control = {+ param: SPEED_PARAM,+ label: "Speed",+ values: ["fast", "best"],+ default: "fast",+ labels: {+ fast: "Fast · about 4 steps",+ best: "Best · 40 steps, slower",+ },+};++/** The graph a Qwen-Image-Edit 2511 run takes: Best keeps `endpoint`; any other speed, or none, takes its Fast graph. */+export function qwenEditGraph(endpoint: string, extra: Record<string, unknown>, has: (id: string) => boolean): string {+ const fast = QWEN_EDIT_FAST_GRAPH[endpoint];+ if (!fast || extra[SPEED_PARAM] === "best") return endpoint;+ return has(fast) ? fast : endpoint;+}diff --git a/src/server/billing.ts b/src/server/billing.tsindex c2e90629..d08f4981 100644--- a/src/server/billing.ts+++ b/src/server/billing.ts@@ -49,6 +49,11 @@ export interface RunFacts {inputs: { image: number; video: number; audio: number };lane: string | null;providerUsd: number | null;+ /**+ * The graph a ComfyUI run resolves to after its options pick a variant (a speed, a quality, a GPU tier), so an external+ * billing service can treat graph variants differently. Absent or null for every other run.+ */+ workflow?: string | null;/*** Every step of the run that uses this install's GPUs, its own step first, so one quote and one hold cover a whole* chain (one press of Run) and the steps a run makes beside its own model (a 2K take's Open-H3 Regenerate finish).diff --git a/src/server/gpu/gate.ts b/src/server/gpu/gate.tsindex 2f3ae522..6ae0c924 100644--- a/src/server/gpu/gate.ts+++ b/src/server/gpu/gate.ts@@ -2,11 +2,11 @@ import "server-only";import crypto from "node:crypto";import { getModel } from "@/lib/catalog";import { controlSets } from "@/lib/catalog/plan";-import { COMPANION_GRAPHS, resolveWorkflowId } from "@/lib/comfy-variants";+import { COMPANION_GRAPHS, requestWorkflowId } from "@/lib/comfy-variants";import { PROMPT_HELPER_FILES, PROMPT_HELPER_PARAM } from "@/lib/comfy";import { fixPlan } from "@/lib/gpu/plan";-import { CLEAN_VAE, DECODER_PARAM, GPU_PARAM } from "@/lib/qwen21-speed";-import { H3_TIER_PARAM, H3_UNET_PARAM, withTierFile } from "@/lib/gpu/h3-tier";+import { CLEAN_VAE, DECODER_PARAM } from "@/lib/qwen21-speed";+import { H3_UNET_PARAM, withTierFile } from "@/lib/gpu/h3-tier";import { cardLabel, needTargets, toolReadiness } from "@/lib/gpu/readiness";import { GPU_NEED_TEXT } from "@/lib/gpu/rtx";import type { FileKey, FixPlan, ToolReadiness, ToolRef } from "@/lib/gpu/types";@@ -59,22 +59,7 @@ export async function gateGeneration(t: GpuTarget, g: GateInput): Promise<GateRelet idx = loadIndex();const req = g.request;const has = (id: string) => !!idx.workflows[id];- const extra: Record<string, unknown> = {- ...req.params?.extra,- ...(g.gpu && { [GPU_PARAM]: g.gpu }),- ...(g.h3 && { [H3_TIER_PARAM]: g.h3.gpuTier, ...(g.h3.unet && { [H3_UNET_PARAM]: g.h3.unet }) }),- };- const id = resolveWorkflowId(g.route.endpoint, {- op: g.op,- clips: req.inputs?.videos?.length ?? 0,- images: req.inputs?.images?.length ?? 0,- format: req.params?.format,- audio2: !!req.inputs?.audio2 || !!req.params?.extra?.audio2,- audio: !!req.inputs?.audio,- mask: !!req.inputs?.mask,- extra,- has,- });+ const { id, extra } = requestWorkflowId(g.route.endpoint, req, { op: g.op, gpu: g.gpu, h3: g.h3, has });if (!has(id)) return { ok: true };// A decoder an option picks (Qwen-Image 2.1's "Clean" Texture-Fix VAE, MiniMax H3's Fast decode) is an optional file of the// graph: this run needs it. The request carries the option's value ({ decoder: "clean" }); the model's control turns it intodiff --git a/src/server/hosted.ts b/src/server/hosted.tsindex 5bf6f7dd..392f00fa 100644--- a/src/server/hosted.ts+++ b/src/server/hosted.ts@@ -1,6 +1,7 @@import "server-only";import { getModel } from "@/lib/catalog";import { computeDimensions, fitCanvas } from "@/lib/comfy";+import { requestWorkflowId } from "@/lib/comfy-variants";import { h3Canvas, isH3Graph } from "@/lib/h3-prompt";import { imageSize } from "@/lib/image-size";import type { GenerationRequest } from "@/lib/catalog/types";@@ -603,12 +604,27 @@ function stepsBeside(own: NonNullable<RunFacts["steps"]>[number], others: { mode/** The facts the billing service prices a run by (from a planned request: previewGeneration's answer). */export function runFacts(req: GenerationRequest,- p: { model: { id: string; kind: string; engine: "open" | "cloud" }; op: string; jobs: number; outputs: number; providerId: string; costUsd: number | null; loras: { applied: unknown[] }; route?: { endpoint?: string }; steps?: { model: string; op: string }[] },+ p: {+ model: { id: string; kind: string; engine: "open" | "cloud" };+ op: string;+ jobs: number;+ outputs: number;+ providerId: string;+ costUsd: number | null;+ loras: { applied: unknown[] };+ route?: { endpoint?: string };+ steps?: { model: string; op: string }[];+ gpu?: string | null;+ h3?: { gpuTier: string; unet?: string } | null;+ },kind: RunFacts["kind"],): RunFacts {const model = getModel(p.model.id);const endpoint = p.route?.endpoint;const lane = poolOnWorkers() && endpoint && !endpoint.includes("{") ? poolLane(endpoint) : POOL_LANE;+ // The graph an open-engine run resolves to, its options' variant picked as the pre-flight and the provider pick it.+ const graphs = p.model.engine === "open" && p.providerId === "comfyui" && endpoint ? loadIndex().workflows : null;+ const workflow = graphs && endpoint ? requestWorkflowId(endpoint, req, { op: p.op, gpu: p.gpu ?? undefined, h3: p.h3 ?? undefined, has: (id) => !!graphs[id] }).id : null;return {place: "pool",model: p.model.id,@@ -628,6 +644,7 @@ export function runFacts(inputs: inputCounts(req),lane,providerUsd: p.costUsd,+ ...(workflow && { workflow }),// The run's other steps (a 2K take's finish), priced beside its own step as one run. A plan of every row the run// makes (hosted-run.ts pricedSteps) takes the place of this where there is one....(p.steps?.length && { steps: stepsBeside({ model: p.model.id, op: p.op || null, kind, jobs: p.jobs, lane }, p.steps) }),diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.tsindex 45166e09..d6f4c037 100644--- a/tests/comfy-library-4.test.ts+++ b/tests/comfy-library-4.test.ts@@ -99,6 +99,9 @@ describe("round-4 ComfyUI workflows", () => {// Graphs on node packs this server doesn't have (h3_character_swap, H3 Relay, ComfyUI-LTXVideo) name a missing node at// their /prompt check (tests/comfy-character-swap.test.ts, tests/restore-comfy.test.ts); the rest wait for a GPU run.expect(manifest.workflows.filter((w) => !w.validated).map((w) => w.id)).toEqual([+ // Qwen-Image-Edit 2511's Fast graph (the base graph and its Lightning LoRA): unvalidated until its /prompt check+ // (tests/qwen-edit-speed.test.ts).+ "qwen-image-edit-2511-multi-fast",// Green screen and fine hair (nm10-keying): ComfyUI-RMBG 3.3.0 and the CorridorKey wrapper aren't on the validation// server (tests/keying.test.ts checks their classes against the packs' source)."image-matte-feynobg",diff --git a/tests/open-engine.test.ts b/tests/open-engine.test.tsindex ef16d356..ef528c62 100644--- a/tests/open-engine.test.ts+++ b/tests/open-engine.test.ts@@ -10,6 +10,7 @@ import { resample, tracksFor } from "@/lib/motion-paths";import { ANGLES_FIELDS, ANGLES_ORIGINAL } from "@/lib/catalog/open-tools";import { H3_BEST_GRAPH } from "@/lib/comfy-variants";import { QWEN21_SPEED_GRAPH } from "@/lib/qwen21-speed";+import { QWEN_EDIT_FAST_GRAPH } from "@/lib/qwen-edit-speed";import { H3_TIER_GRAPH } from "@/lib/gpu/h3-tier";describe("motion paths (Wan-Move draw to video)", () => {@@ -141,6 +142,8 @@ describe("round-3 open models", () => {if (p === "quality" && H3_BEST_GRAPH[wid]) continue;// Qwen-Image 2.1's Speed and GPU pick the graph that runs too (src/lib/qwen21-speed.ts).if ((p === "speed" || p === "gpu") && QWEN21_SPEED_GRAPH[wid]) continue;+ // Qwen-Image-Edit 2511's Speed picks its graph as well (src/lib/qwen-edit-speed.ts).+ if (p === "speed" && QWEN_EDIT_FAST_GRAPH[wid]) continue;// QMA · 96 views' camera settings become its LoRA's words in the planner (src/lib/qma.ts, promptFormat "qma").if (m.options.promptFormat === "qma" && ["horizontal_angle", "vertical_angle", "zoom"].includes(p)) continue;// MiniMax H3's GPU tier picks the FastH3 graph that runs (src/lib/gpu/h3-tier.ts).diff --git a/tests/qwen-edit-speed.test.ts b/tests/qwen-edit-speed.test.tsnew file mode 100644index 00000000..3112db58--- /dev/null+++ b/tests/qwen-edit-speed.test.ts@@ -0,0 +1,236 @@+import crypto from "node:crypto";+import fs from "node:fs";+import path from "node:path";+import { describe, expect, it } from "vitest";+import type { GenerationRequest, GenInput } from "@/lib/catalog/types";+import type { ComfyWorkflow, ManifestWorkflow } from "@/lib/comfy";+import type { RequirementIndex } from "@/lib/gpu/types";+import { tempDir } from "./helpers/temp-dir";++// Qwen-Image-Edit 2511's Options → Speed: Fast (the 4-step Lightning LoRA graph) by default, Best (the 40-step graph) when+// asked. The provider, the GPU pre-flight, a worker's ticket and the billing facts all name the same graph.+const tmp = tempDir("fuobe-qwen-edit-speed-");+process.env.FUOBE_DATA_DIR = tmp;+process.env.COMFYUI_URL = "http://comfy.test:8188";+const { prepareWorkflow, loadManifest, getWorkflow } = await import("@/server/providers/comfyui");+const { getModel } = await import("@/lib/catalog");+const { controlsFor } = await import("@/lib/composer");+const { requestWorkflowId, resolveWorkflowId } = await import("@/lib/comfy-variants");+const S = await import("@/lib/qwen-edit-speed");+const { composeWorkflow, withoutSaveMetadata } = await import("@/lib/comfy-compose");+const { composeTicket, ticketFor } = await import("@/lib/ticket-compose");+const { computeCatalogVersion } = await import("@/server/computer/catalog-version");+const { laneOf } = await import("@/lib/lanes");+const { writeSnapshot, dropSnapshots } = await import("@/server/gpu/snapshots");+const { gateGeneration } = await import("@/server/gpu/gate");+const { runFacts } = await import("@/server/hosted");++const BASE = "qwen-image-edit-2511-multi";+const FAST = "qwen-image-edit-2511-multi-fast";+const LORA = "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors";+const LORA_URL = `https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/resolve/main/${LORA}`;++const LIBRARY = path.join(process.cwd(), "workflows/comfyui");+const read = (f: string) => JSON.parse(fs.readFileSync(path.join(LIBRARY, f), "utf8"));+const manifest = read("manifest.json") as { workflows: ManifestWorkflow[] };+const entry = (id: string) => manifest.workflows.find((w) => w.id === id)!;+const graph = (id: string) => read(`${id}.json`) as ComfyWorkflow;+const index = read("requirements.json") as RequirementIndex;+const pins = read("model-pins.json") as Record<string, { revision: string; sizeBytes: number; sha256: string }>;+const has = (id: string) => manifest.workflows.some((w) => w.id === id);+const variant = (endpoint: string, extra: Record<string, unknown>, op = "edit") => resolveWorkflowId(endpoint, { op, clips: 0, images: 1, audio2: false, extra, has });+const ofClass = (wf: ComfyWorkflow, cls: string) => Object.entries(wf).filter(([, n]) => n.class_type === cls);+const sha = (s: string | Buffer) => crypto.createHash("sha256").update(s).digest("hex");++async function prepare(input: GenInput) {+ return prepareWorkflow(BASE, { seed: 7, ...input }, {+ generationId: "g-qe",+ op: "edit",+ upload: async (_d, _t, name) => `up_${name}`,+ media: () => ({ width: 1184, height: 880 }) as never,+ serverRam: async () => undefined,+ });+}++describe("Qwen-Image-Edit 2511's Options → Speed", () => {+ it("offers Fast (the default) and Best under Options, and keeps the model's name", () => {+ const m = getModel("oss-qwen-edit")!;+ expect(m.name).toBe("Qwen-Image-Edit 2511");+ expect(m.routes).toEqual([expect.objectContaining({ provider: "comfyui", op: "edit", endpoint: BASE })]);+ expect(m.options.controls).toEqual([S.QWEN_EDIT_SPEED]);+ expect(S.QWEN_EDIT_SPEED).toMatchObject({ param: "speed", values: ["fast", "best"], default: "fast" });+ expect(S.QWEN_EDIT_SPEED.labels).toEqual({ fast: "Fast · about 4 steps", best: "Best · 40 steps, slower" });+ expect(controlsFor(m.options.controls!, "edit").map((c) => c.values)).toEqual([["fast", "best"]]);+ });++ it("runs the Fast graph when no speed is sent or Fast is, and the base graph on Best", () => {+ expect(variant(BASE, {})).toBe(FAST);+ expect(variant(BASE, { speed: "fast" })).toBe(FAST);+ expect(variant(BASE, { speed: "best" })).toBe(BASE);+ // Without the Fast graph in the library, the base graph runs.+ expect(resolveWorkflowId(BASE, { op: "edit", clips: 0, images: 1, audio2: false, extra: {}, has: (id) => id !== FAST && has(id) })).toBe(BASE);+ // Other graphs never move: Qwen-Image 2.1 keeps its own speeds, and its default stays Full.+ expect(variant("qwen-image-21-edit", {})).toBe("qwen-image-21-edit");+ expect(variant("qwen-image-21-edit", { speed: "fast" })).toBe("qwen-image-21-edit-fast");+ expect(variant("qwen-image-21-edit", { speed: "best" })).toBe("qwen-image-21-edit");+ expect(variant("style-ref-qwen-edit-2511", {}, "style-reference")).toBe("style-ref-qwen-edit-2511");+ });+});++describe("the Fast graph", () => {+ it("is the base graph with one Lightning LoRA after the model loader, 4 steps at CFG 1, and nothing else changed", () => {+ const fast = graph(FAST);+ const base = graph(BASE);+ const loras = ofClass(fast, "LoraLoaderModelOnly");+ expect(loras).toHaveLength(1);+ const [loraId, lora] = loras[0];+ expect(lora.inputs).toEqual({ lora_name: LORA, strength_model: 1, model: ["170:161", 0] });+ expect(fast["170:161"].class_type).toBe("UNETLoader");+ expect(fast["170:145"]).toEqual({ ...base["170:145"], inputs: { ...base["170:145"].inputs, model: [loraId, 0] } });+ expect(fast["170:166"].inputs.value).toBe(4);+ expect(fast["170:154"].inputs.value).toBe(1);+ const sampler = ofClass(fast, "KSampler")[0][1].inputs;+ expect(sampler).toMatchObject({ sampler_name: "euler", scheduler: "simple", steps: ["170:166", 0], cfg: ["170:154", 0] });+ for (const [id, n] of Object.entries(base)) {+ if (["170:145", "170:166", "170:154", "9"].includes(id)) continue;+ expect(fast[id], id).toEqual(n);+ }+ expect(Object.keys(fast).sort()).toEqual([...Object.keys(base), loraId].sort());+ expect(fast["9"].inputs.filename_prefix).toBe(`fuobe/${FAST}`);+ });++ it("leaves Best as it was: 40 steps at CFG 4, no LoRA", () => {+ const base = graph(BASE);+ expect(ofClass(base, "LoraLoaderModelOnly")).toHaveLength(0);+ expect(base["170:166"].inputs.value).toBe(40);+ expect(base["170:154"].inputs.value).toBe(4);+ expect(base["170:145"].inputs.model).toEqual(["170:161", 0]);+ expect(entry(BASE).bindings.steps).toEqual([{ node: "170:166", input: "value" }]);+ expect(entry(BASE).bindings.cfg).toEqual([{ node: "170:154", input: "value" }]);+ });++ it("binds no steps or CFG, lists the LoRA as a pinned file, and shares the base graph's lane", () => {+ const e = entry(FAST);+ expect(e.bindings.steps).toBeUndefined();+ expect(e.bindings.cfg).toBeUndefined();+ expect(Object.keys(e.bindings).sort()).toEqual(Object.keys(entry(BASE).bindings).filter((k) => k !== "steps" && k !== "cfg").sort());+ expect(e.models.find((m) => m.file === LORA)).toMatchObject({ folder: "loras", url: LORA_URL });+ expect(pins[LORA_URL].sha256).toMatch(/^[0-9a-f]{64}$/);+ const key = `loras/${LORA}`;+ expect(index.workflows[FAST].files).toEqual([...index.workflows[BASE].files, key].sort());+ expect(index.files[key]).toMatchObject({ sizeBytes: pins[LORA_URL].sizeBytes, pinnedUrl: expect.stringContaining(pins[LORA_URL].revision), loaders: [["LoraLoaderModelOnly", "lora_name"]] });+ expect(index.workflows[FAST].core).toContain("LoraLoaderModelOnly");+ expect(laneOf(index, FAST, sha)).toBe(laneOf(index, BASE, sha));+ });+});++describe("a Qwen-Image-Edit 2511 run on your GPU", () => {+ it("runs Fast by default with the LoRA's 4 steps and CFG 1, whatever steps and CFG it asks for", async () => {+ const { manifest: m, workflow: wf } = await prepare({ prompt: "make it night", images: ["/api/files/a.png"], extra: { steps: 30, cfg: 6 } });+ expect(m.id).toBe(FAST);+ expect(wf["170:166"].inputs.value).toBe(4);+ expect(wf["170:154"].inputs.value).toBe(1);+ expect(wf["170:169"].inputs.seed).toBe(7);+ expect(JSON.stringify(wf)).not.toMatch(/"speed"/);+ });++ it("runs Best's 40-step graph when asked, where steps and CFG still apply", async () => {+ const best = await prepare({ prompt: "make it night", images: ["/api/files/a.png"], extra: { speed: "best" } });+ expect(best.manifest.id).toBe(BASE);+ expect(best.workflow["170:166"].inputs.value).toBe(40);+ expect(best.workflow["170:154"].inputs.value).toBe(4);+ expect(JSON.stringify(best.workflow)).not.toMatch(/"speed"/);+ const tuned = await prepare({ prompt: "make it night", images: ["/api/files/a.png"], extra: { speed: "best", steps: 30, cfg: 3.5 } });+ expect(tuned.workflow["170:166"].inputs.value).toBe(30);+ expect(tuned.workflow["170:154"].inputs.value).toBe(3.5);+ });++ it("goes to a worker as a ticket that composes the Fast graph there, as the studio does", async () => {+ const version = computeCatalogVersion(process.cwd())!;+ const catalog = { has: (id: string) => loadManifest().workflows.some((w) => w.id === id), get: getWorkflow };+ const photo = "fuobe_t000000001.png";+ const files = new Map([[photo, { sha256: sha(photo), contentType: "image/png", facts: { container: "image", width: 1184, height: 880, hasVideo: false, hasAudio: false } }]]);+ for (const extra of [undefined, { speed: "best" }]) {+ const input: GenInput = { prompt: "make it night", images: [photo], seed: 11, ...(extra && { extra }) };+ const studio = await composeWorkflow(BASE, input, { generationId: "g-ticket", op: "edit", catalog, sent: [], accountOnInstall: true, made: async () => "", media: (n) => files.get(n)?.facts as never });+ const ticket = ticketFor(+ { endpoint: BASE, op: "edit", input, made: [] },+ { catalogVersion: version, sent: [], file: (n) => files.get(n) ?? null, facts: (n) => files.get(n)?.facts as never, outputs: { count: 1, kind: "image" }, size: studio.size },+ );+ const worker = await composeTicket({ ticket: JSON.parse(JSON.stringify(ticket)), generationId: "g-ticket", inputs: [{ name: photo, sha256: sha(photo) }] }, { catalog, catalogVersion: version });+ expect(worker.ok && worker.workflowId).toBe(extra ? BASE : FAST);+ expect(worker.ok && worker.graph).toEqual(withoutSaveMetadata(studio.workflow));+ }+ });+});++/** The install's last GPU check: a 32 GB card that has the base graph's files, and the LoRA when `lora`. */+const INSTALL = { kind: "install", key: "install", via: "server" } as const;+function checked(lora: boolean) {+ const at = Date.now();+ const models: Record<string, { have: Record<string, number | null>; total: number }> = {};+ for (const key of [...index.workflows[BASE].files, ...(lora ? [`loras/${LORA}`] : [])]) {+ const [folder, file] = key.split("/");+ (models[folder] ??= { have: {}, total: 0 }).have[file] = null;+ }+ models.loras ??= { have: {}, total: 0 };+ for (const x of Object.values(models)) x.total = Object.keys(x.have).length;+ writeSnapshot(INSTALL, {+ v: 1,+ via: "server",+ checkedAt: at,+ tookMs: 5,+ reachable: true,+ devices: [{ name: "GPU", type: "cuda", index: 0, vramTotal: 32 * 2 ** 30, vramFree: 32 * 2 ** 30 }],+ manager: { api: "none" },+ nodes: { have: [], missing: [], total: 1, readAt: at, how: "object_info" },+ combos: {},+ packs: {},+ models,+ loras: {},+ fingerprint: "x",+ errors: [],+ } as never);+}++describe("the GPU pre-flight on a Qwen-Image-Edit 2511 run", () => {+ const request = (extra?: Record<string, unknown>): GenerationRequest => ({ feature: "image", modelId: "oss-qwen-edit", prompt: "make it night", inputs: { images: ["/api/files/a.png"] }, ...(extra && { params: { extra } }) });+ const gate = (extra?: Record<string, unknown>) => gateGeneration(INSTALL, { request: request(extra), route: { provider: "comfyui", endpoint: BASE }, op: "edit", modelId: "oss-qwen-edit", actor: "owner" });++ it("checks the graph the run takes: Fast needs the LoRA, Best doesn't", async () => {+ expect(requestWorkflowId(BASE, request(), { op: "edit", has }).id).toBe(FAST);+ expect(requestWorkflowId(BASE, request({ speed: "best" }), { op: "edit", has }).id).toBe(BASE);+ checked(false);+ try {+ expect(await gate()).toMatchObject({ ok: true, warning: expect.stringMatching(/1 more thing/) });+ expect(await gate({ speed: "fast" })).toMatchObject({ ok: true, warning: expect.stringMatching(/1 more thing/) });+ expect(await gate({ speed: "best" })).toEqual({ ok: true });+ checked(true);+ expect(await gate()).toEqual({ ok: true });+ } finally {+ dropSnapshots("install");+ }+ });+});++describe("the billing facts of a run", () => {+ const planned = (endpoint: string | undefined, engine: "open" | "cloud", providerId: string) => ({+ model: { id: "oss-qwen-edit", kind: "image", engine },+ op: "edit",+ jobs: 1,+ outputs: 1,+ providerId,+ costUsd: null,+ loras: { applied: [] },+ ...(endpoint && { route: { endpoint } }),+ });+ const req = (extra?: Record<string, unknown>): GenerationRequest => ({ feature: "image", modelId: "oss-qwen-edit", prompt: "make it night", inputs: { images: ["/api/files/a.png"] }, ...(extra && { params: { extra } }) });++ it("name the graph an open-engine run resolves to (RunFacts.workflow), and nothing for other runs", () => {+ expect(runFacts(req(), planned(BASE, "open", "comfyui"), "image").workflow).toBe(FAST);+ expect(runFacts(req({ speed: "fast" }), planned(BASE, "open", "comfyui"), "image").workflow).toBe(FAST);+ expect(runFacts(req({ speed: "best" }), planned(BASE, "open", "comfyui"), "image").workflow).toBe(BASE);+ expect(runFacts(req(), planned("fal-ai/some-edit", "cloud", "fal"), "image")).not.toHaveProperty("workflow");+ expect(runFacts(req(), planned(undefined, "open", "local"), "image")).not.toHaveProperty("workflow");+ });+});diff --git a/tests/scene3d-provider.test.ts b/tests/scene3d-provider.test.tsindex 67623410..5adefbc5 100644--- a/tests/scene3d-provider.test.ts+++ b/tests/scene3d-provider.test.ts@@ -111,8 +111,14 @@ describe("open engine: the recomposition on Qwen-Image-Edit 2511 (qwen-image-ediexpect(workflow["83"].inputs.image).toBe("still.png");// No third reference: the still again, which the Qwen edit encoder takes harmlessly.expect(workflow["1201"].inputs.image).toBe("still.png");- const lora = Object.values(workflow).find((n) => n.class_type === "LoraLoaderModelOnly");- expect(lora?.inputs).toMatchObject({ lora_name: "qwen-image-edit-2511-multiple-angles-lora.safetensors", strength_model: 1 });+ const loras = Object.values(workflow).filter((n) => n.class_type === "LoraLoaderModelOnly");+ const lora = loras.find((n) => n.inputs.lora_name === "qwen-image-edit-2511-multiple-angles-lora.safetensors");+ expect(lora?.inputs).toMatchObject({ strength_model: 1 });+ // On Options → Speed's default (Fast) the 4-step Lightning LoRA rides with it; the sampler's model goes through both.+ expect(loras.map((n) => n.inputs.lora_name).sort()).toEqual(["Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors", "qwen-image-edit-2511-multiple-angles-lora.safetensors"]);+ const chain: string[] = [];+ for (let at = (workflow["170:145"].inputs.model as [string, number])[0]; workflow[at].class_type === "LoraLoaderModelOnly"; at = (workflow[at].inputs.model as [string, number])[0]) chain.push(String(workflow[at].inputs.lora_name));+ expect(chain.sort()).toEqual(loras.map((n) => String(n.inputs.lora_name)).sort());// The capture already shows the flown view (300° round): the LoRA is told not to turn it again.expect(String(workflow["170:151"].inputs.prompt)).toMatch(/^<sks> front view eye-level shot medium shot\. Re-render this exact camera view/);expect(String(workflow["170:151"].inputs.prompt)).toContain("a 50 mm standard lens at f/2.8");diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex 0936faa0..87615aa2 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -2031,6 +2031,99 @@"validated": true,"notes": "TextEncodeQwenImageEditPlus takes up to 3 images; refer to them as \"image 1/2/3\" in the prompt. All three are required. Output size follows image 1."},+ {+ "id": "qwen-image-edit-2511-multi-fast",+ "title": "Qwen-Image-Edit 2511 Multi-Image (3 images) · 4 steps, Lightning LoRA",+ "capability": "edit",+ "file": "qwen-image-edit-2511-multi-fast.json",+ "source": "derived from qwen-image-edit-2511-multi (see notes)",+ "bindings": {+ "prompt": [+ {+ "node": "170:151",+ "input": "prompt"+ }+ ],+ "negativePrompt": [+ {+ "node": "170:149",+ "input": "prompt"+ }+ ],+ "image": [+ {+ "node": "41",+ "input": "image"+ }+ ],+ "image2": [+ {+ "node": "83",+ "input": "image"+ }+ ],+ "image3": [+ {+ "node": "1201",+ "input": "image"+ }+ ],+ "seed": [+ {+ "node": "170:169",+ "input": "seed"+ }+ ],+ "filenamePrefix": [+ {+ "node": "9",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "9",+ "kind": "image"+ }+ ],+ "defaults": {},+ "limits": {+ "maxWidth": 2048,+ "maxHeight": 2048+ },+ "models": [+ {+ "file": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/resolve/main/Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",+ "sizeGb": 0.85+ },+ {+ "file": "qwen_image_vae.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",+ "sizeGb": 0.25+ },+ {+ "file": "qwen_image_edit_2511_int8_convrot.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2511_int8_convrot.safetensors",+ "sizeGb": 20.5+ },+ {+ "file": "qwen_2.5_vl_7b_fp8_scaled.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",+ "sizeGb": 9.38+ }+ ],+ "customNodes": [],+ "vramGb": 24,+ "license": "Apache-2.0 (Qwen-Image-Edit-2511, Lightning LoRA)",+ "validated": false,+ "notes": "Options → Speed \"fast\" (the default) on qwen-image-edit-2511-multi: the same graph with LightX2V's Qwen-Image-Edit-2511-Lightning 4-step LoRA (LoraLoaderModelOnly, strength 1) between the UNETLoader and ModelSamplingAuraFlow, 4 steps at cfg 1, euler / simple. No steps or cfg binding: the LoRA sets both. \"best\" runs qwen-image-edit-2511-multi (40 steps, cfg 4). TextEncodeQwenImageEditPlus takes up to 3 images; refer to them as \"image 1/2/3\" in the prompt. All three are required. Output size follows image 1."+ },{"id": "flux1-kontext-dev-edit","title": "FLUX.1 Kontext [dev] Image Edit",diff --git a/workflows/comfyui/qwen-image-edit-2511-multi-fast.json b/workflows/comfyui/qwen-image-edit-2511-multi-fast.jsonnew file mode 100644index 00000000..0958d627--- /dev/null+++ b/workflows/comfyui/qwen-image-edit-2511-multi-fast.json@@ -0,0 +1,296 @@+{+ "9": {+ "inputs": {+ "filename_prefix": "fuobe/qwen-image-edit-2511-multi-fast",+ "images": [+ "170:158",+ 0+ ]+ },+ "class_type": "SaveImage",+ "_meta": {+ "title": "Save Image"+ }+ },+ "41": {+ "inputs": {+ "image": "leather_sofa.png"+ },+ "class_type": "LoadImage",+ "_meta": {+ "title": "Load Image"+ }+ },+ "83": {+ "inputs": {+ "image": "texture_fur.png"+ },+ "class_type": "LoadImage",+ "_meta": {+ "title": "Load Image"+ }+ },+ "1201": {+ "class_type": "LoadImage",+ "inputs": {+ "image": "reference3.png"+ },+ "_meta": {+ "title": "Load Image (image 3)"+ }+ },+ "1202": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",+ "strength_model": 1,+ "model": [+ "170:161",+ 0+ ]+ },+ "_meta": {+ "title": "LoraLoaderModelOnly (Lightning 4 steps)"+ }+ },+ "170:145": {+ "inputs": {+ "shift": 3.1,+ "sampling": "flow",+ "model": [+ "1202",+ 0+ ]+ },+ "class_type": "ModelSamplingAuraFlow",+ "_meta": {+ "title": "ModelSamplingAuraFlow"+ }+ },+ "170:146": {+ "inputs": {+ "vae_name": "qwen_image_vae.safetensors"+ },+ "class_type": "VAELoader",+ "_meta": {+ "title": "Load VAE"+ }+ },+ "170:147": {+ "inputs": {+ "reference_latents_method": "index_timestep_zero",+ "conditioning": [+ "170:149",+ 0+ ]+ },+ "class_type": "FluxKontextMultiReferenceLatentMethod",+ "_meta": {+ "title": "Edit Model Reference Method"+ }+ },+ "170:148": {+ "inputs": {+ "reference_latents_method": "index_timestep_zero",+ "conditioning": [+ "170:151",+ 0+ ]+ },+ "class_type": "FluxKontextMultiReferenceLatentMethod",+ "_meta": {+ "title": "Edit Model Reference Method"+ }+ },+ "170:149": {+ "inputs": {+ "prompt": "",+ "clip": [+ "170:162",+ 0+ ],+ "vae": [+ "170:146",+ 0+ ],+ "image1": [+ "170:160",+ 0+ ],+ "image2": [+ "83",+ 0+ ],+ "image3": [+ "1201",+ 0+ ]+ },+ "class_type": "TextEncodeQwenImageEditPlus",+ "_meta": {+ "title": "Text Encode Qwen Image Edit Plus"+ }+ },+ "170:151": {+ "inputs": {+ "prompt": "Change the furniture leather difference in image 1 to the fur material in image 2.",+ "clip": [+ "170:162",+ 0+ ],+ "vae": [+ "170:146",+ 0+ ],+ "image1": [+ "170:160",+ 0+ ],+ "image2": [+ "83",+ 0+ ],+ "image3": [+ "1201",+ 0+ ]+ },+ "class_type": "TextEncodeQwenImageEditPlus",+ "_meta": {+ "title": "TextEncodeQwenImageEditPlus (Positive)"+ }+ },+ "170:152": {+ "inputs": {+ "strength": 1,+ "pre_cfg": false,+ "model": [+ "170:145",+ 0+ ]+ },+ "class_type": "CFGNorm",+ "_meta": {+ "title": "CFGNorm"+ }+ },+ "170:154": {+ "inputs": {+ "value": 1+ },+ "class_type": "PrimitiveFloat",+ "_meta": {+ "title": "CFG"+ }+ },+ "170:156": {+ "inputs": {+ "pixels": [+ "170:160",+ 0+ ],+ "vae": [+ "170:146",+ 0+ ]+ },+ "class_type": "VAEEncode",+ "_meta": {+ "title": "VAE Encode"+ }+ },+ "170:158": {+ "inputs": {+ "samples": [+ "170:169",+ 0+ ],+ "vae": [+ "170:146",+ 0+ ]+ },+ "class_type": "VAEDecode",+ "_meta": {+ "title": "VAE Decode"+ }+ },+ "170:160": {+ "inputs": {+ "image": [+ "41",+ 0+ ]+ },+ "class_type": "FluxKontextImageScale",+ "_meta": {+ "title": "FluxKontextImageScale"+ }+ },+ "170:161": {+ "inputs": {+ "unet_name": "qwen_image_edit_2511_int8_convrot.safetensors",+ "weight_dtype": "default"+ },+ "class_type": "UNETLoader",+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "170:162": {+ "inputs": {+ "clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",+ "type": "qwen_image",+ "device": "default"+ },+ "class_type": "CLIPLoader",+ "_meta": {+ "title": "Load CLIP"+ }+ },+ "170:166": {+ "inputs": {+ "value": 4+ },+ "class_type": "PrimitiveInt",+ "_meta": {+ "title": "Steps"+ }+ },+ "170:169": {+ "inputs": {+ "seed": 677909188488042,+ "steps": [+ "170:166",+ 0+ ],+ "cfg": [+ "170:154",+ 0+ ],+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "model": [+ "170:152",+ 0+ ],+ "positive": [+ "170:148",+ 0+ ],+ "negative": [+ "170:147",+ 0+ ],+ "latent_image": [+ "170:156",+ 0+ ]+ },+ "class_type": "KSampler",+ "_meta": {+ "title": "KSampler"+ }+ }+}diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.jsonindex 2ae5004d..18eca66d 100644--- a/workflows/comfyui/requirements.json+++ b/workflows/comfyui/requirements.json@@ -1,6 +1,6 @@{"v": 1,- "hash": "0e55880dbee5ad789ee97cf66978e313d56a5501c7b5750735f7810b717da6d3",+ "hash": "9ea1eebd8268e1f4469856b1e1b88320a86c9307b47105893c1f79225d9af831","comfyui": {"min":"0.42.0","testedCommit":"5841c187"},"folders": ["Hi3D","RMBG","audio_encoders","background_removal","checkpoints","clip_vision","dbs","detection","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","kandinsky6_audio_vae","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","sams","text_encoders","thinksound","ultralytics","upscale_models","vae"],"sentinels": ["AILab_FeyNoBg","AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AILab_VRMBG","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","AuKGenerateEdit","AuKModelLoader","BodyDoubleFit","BodyDoubleLook","CFGOverride","ClothesSegment","ComfyMathExpression","CorridorKey2","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3AdvancedSwapPlan","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FaceMaskSAM","H3FaceStitch","H3FaceTrackCrop","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3RoleMask","H3SLAAttention","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles","Hi3DLoadMesh","Hi3DModelLoader","Hi3DRefine","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","HyperFlowGGUFLoader","HyperFlowSigmas","INTConstant","Ideogram4Scheduler","IdolCamera","IdolPreprocessImage","IdolPruneSplat","ImageBatchExtendWithOverlap","ImageDetailContrast","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","InstantHMRLoader","InstantHMRPredict","Kandinsky6AudioVAEDecode","Kandinsky6AudioVAELoader","Kandinsky6BeautifyPrompt","Kandinsky6EmptyLatent","Kandinsky6ImageToVideoAudio","Kandinsky6LatentUpscalerLoader","Kandinsky6RemoveReferenceLatent","Kandinsky6SRVAELoader","Kandinsky6Sampler","Kandinsky6TextEncode","Kandinsky6VSRUpscale","Krea2EditGroundedEncode","Krea2EditModelPatch","Krea2OstrisEditModelPatch","LTXAVTextEncoderLoader","LTXAddVideoICLoRAGuide","LTXICLoRALoaderModelOnly","LTXVAddGuide","LTXVAudioVAEDecode","LTXVAudioVAELoader","LTXVConcatAVLatent","LTXVConditioning","LTXVCropGuides","LTXVDualCFGGuider","LTXVEmptyLatentAudio","LTXVImgToVideoInplace","LTXVLatentUpsampler","LTXVPreprocess","LTXVScheduler","LTXVSeparateAVLatent","LTXVTiledFusionSampler","LatentSyncNode","LoadBackgroundRemovalModel","LoadImageFuobeLive","LoadVideoDepthAnythingModel","MMAudioFeatureUtilsLoader","MMAudioModelLoader","MMAudioSampler","MelBandRoFormerModelLoader","MelBandRoFormerSampler","Metric3D-NormalMapPreprocessor","MiniMaxH3ChainAssemble","MiniMaxH3ChainContext","MiniMaxH3ChainCurrent","MiniMaxH3ChainLoopEnd","MiniMaxH3ChainLoopStart","MiniMaxH3ChainPlanModern","MiniMaxH3ChainReview","MiniMaxH3ChainSegmentSave","MiniMaxH3ContexMaskedTarget","MiniMaxH3FantasticVideoEditLatent","MiniMaxH3GenerationProfile","MiniMaxH3LoopTrim","MiniMaxH3SourceTimeline","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","NomasCameraPath","NomasWorldContinue","NomasWorldGenerate","NomasWorldPrompt","OpenH3LoadRefinedLatent","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","Orion4D_FXMax_DCTLToneMapper","PasteBackFuobeLive","QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","RTXTrueHDR","RTXVideoFrameGeneration","RTXVideoSuperResolution","ReActorFaceSwap","RemakeConditioning","RemakeKeyframeUntil","RemakeNoise","RemoveBackground","SAM3DBody_Loader","SAM3DBody_Render","SAM3DBody_Smooth","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SAMLoader","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","UnetLoaderGGUF","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_LoadVideoFFmpeg","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VRAM_Debug","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],@@ -482,6 +482,7 @@"qwen-image-edit-2509-angles": {"core":["CFGNorm","CLIPLoader","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImageAdvanced","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors","loras/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","loras/qwen-edit-2509-multiple-angles-dx8152.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"qwen-image-edit-2511": {"core":["CFGNorm","CLIPLoader","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_edit_2511_int8_convrot.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"qwen-image-edit-2511-multi": {"core":["CFGNorm","CLIPLoader","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_edit_2511_int8_convrot.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},+ "qwen-image-edit-2511-multi-fast": {"core":["CFGNorm","CLIPLoader","FluxKontextImageScale","FluxKontextMultiReferenceLatentMethod","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImage","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_edit_2511_int8_convrot.safetensors","loras/Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[]},"reference-brief-gemma4": {"core":["CLIPLoader","SaveText","TextGenerate"],"packs":{"ComfyUI-VideoHelperSuite":["VHS_LoadVideoFFmpeg"]},"files":["text_encoders/gemma4_e4b_it_fp8_scaled.safetensors"],"optional":[],"vramGb":12,"isolated":false,"firstRun":[],"validated":true},"relight-qwen-edit-2509": {"core":["CFGNorm","CLIPLoader","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImageAdvanced","StringConcatenate","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors","loras/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","loras/Qwen-Image-Edit-2509-Relight.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},"relight-qwen-edit-2509-reference": {"core":["CFGNorm","CLIPLoader","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImageAdvanced","StringConcatenate","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors","loras/Qwen-Image-Edit-2509-Light-Migration.safetensors","loras/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},