Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Remove a person: preview the green mask first, and redo any window from where it went wrong

Claude0af4ab8f943c
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index 2beadfae..39915b49 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -141,7 +141,7 @@ export const BINDING_KEYS = new Set([
// Fuobe Soul (Originals O2): image to image at Soul's tier
'megapixels',
// Genjutsu's Character swap (Originals O5): MiniMax H3 with the h3_character_swap / H3 Relay packs
- 'quality', 'selection', 'subjectIndex', 'positiveCoords', 'negativeCoords', 'audioGuide', 'useMask', 'windowFrames', 'historyFrames',
+ 'quality', 'selection', 'subjectIndex', 'positiveCoords', 'negativeCoords', 'audioGuide', 'useMask', 'windowFrames', 'historyFrames', 'windowControls',
// Character Swap Studio (o/h3-studio): continuation history from the previous take's master, masks on any frame spliced into a version
'historyVideo', 'historyStart', 'historyLength', 'keyFrame', 'spanFrames', 'tailStart', 'tailFrames', 'prevMask',
// Originals O11: Fuobe Speak's InfiniteTalk recipe on kijai's wrapper, the face mosaic
diff --git a/scripts/comfy/hand-built/video-person-remove-h3-mask.json b/scripts/comfy/hand-built/video-person-remove-h3-mask.json
new file mode 100644
index 00000000..5ff57bdb
--- /dev/null
+++ b/scripts/comfy/hand-built/video-person-remove-h3-mask.json
@@ -0,0 +1,235 @@
+{
+ "source": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "source.mp4"
+ },
+ "_meta": {
+ "title": "The part (24 fps, sides on the 32 grid)"
+ }
+ },
+ "components": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "source",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "GetVideoComponents"
+ }
+ },
+ "dimensions": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "components",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "GetImageSize"
+ }
+ },
+ "green": {
+ "class_type": "EmptyImage",
+ "inputs": {
+ "width": [
+ "dimensions",
+ 0
+ ],
+ "height": [
+ "dimensions",
+ 1
+ ],
+ "batch_size": 1,
+ "color": 65280
+ },
+ "_meta": {
+ "title": "EmptyImage"
+ }
+ },
+ "sam": {
+ "class_type": "CheckpointLoaderSimple",
+ "inputs": {
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "CheckpointLoaderSimple"
+ }
+ },
+ "subject": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "sam",
+ 1
+ ],
+ "text": "person"
+ },
+ "_meta": {
+ "title": "Who to remove (SAM 3.1 words)"
+ }
+ },
+ "first_frame": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "components",
+ 0
+ ],
+ "batch_index": 0,
+ "length": 1
+ },
+ "_meta": {
+ "title": "ImageFromBatch"
+ }
+ },
+ "detect": {
+ "class_type": "SAM3_Detect",
+ "inputs": {
+ "model": [
+ "sam",
+ 0
+ ],
+ "image": [
+ "first_frame",
+ 0
+ ],
+ "conditioning": [
+ "subject",
+ 0
+ ],
+ "threshold": 0.4,
+ "refine_iterations": 2,
+ "individual_masks": false
+ },
+ "_meta": {
+ "title": "SAM3_Detect"
+ }
+ },
+ "track": {
+ "class_type": "SAM3_VideoTrack",
+ "inputs": {
+ "model": [
+ "sam",
+ 0
+ ],
+ "images": [
+ "components",
+ 0
+ ],
+ "initial_mask": [
+ "detect",
+ 0
+ ],
+ "conditioning": [
+ "subject",
+ 0
+ ],
+ "detection_threshold": 0.5,
+ "max_objects": 1,
+ "detect_interval": 12
+ },
+ "_meta": {
+ "title": "SAM3_VideoTrack"
+ }
+ },
+ "mask": {
+ "class_type": "SAM3_TrackToMask",
+ "inputs": {
+ "track_data": [
+ "track",
+ 0
+ ],
+ "object_indices": ""
+ },
+ "_meta": {
+ "title": "SAM3_TrackToMask"
+ }
+ },
+ "binary_mask": {
+ "class_type": "ThresholdMask",
+ "inputs": {
+ "mask": [
+ "mask",
+ 0
+ ],
+ "value": 0.5
+ },
+ "_meta": {
+ "title": "ThresholdMask"
+ }
+ },
+ "grow_mask": {
+ "class_type": "GrowMask",
+ "inputs": {
+ "mask": [
+ "binary_mask",
+ 0
+ ],
+ "expand": 5,
+ "tapered_corners": false
+ },
+ "_meta": {
+ "title": "GrowMask"
+ }
+ },
+ "green_guide": {
+ "class_type": "ImageCompositeMasked",
+ "inputs": {
+ "destination": [
+ "components",
+ 0
+ ],
+ "source": [
+ "green",
+ 0
+ ],
+ "mask": [
+ "grow_mask",
+ 0
+ ],
+ "x": 0,
+ "y": 0,
+ "resize_source": false
+ },
+ "_meta": {
+ "title": "ImageCompositeMasked"
+ }
+ },
+ "video": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "green_guide",
+ 0
+ ],
+ "fps": [
+ "components",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "CreateVideo"
+ }
+ },
+ "save": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "video",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-person-remove-h3-mask",
+ "format": "mp4",
+ "format.codec": "h264",
+ "format.codec.encoding": "re-encode",
+ "format.codec.encoding.crf": 23
+ },
+ "_meta": {
+ "title": "The green mask over the part"
+ }
+ }
+}
\ No newline at end of file
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 8ae44f68..28aa4b8d 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -4099,16 +4099,39 @@ export const SPEC = [
maskPrompt: [b('subject', 'text')], maskGrow: [b('grow_mask', 'expand')], seed: [b('plan', 'seed')], steps: [b('schedule', 'steps')],
windowFrames: [b('plan', 'window_frames')], historyFrames: [b('plan', 'history_frames')],
lora: [b('adapter', 'lora_name')], loraStrength: [b('adapter', 'strength_model')], filenamePrefix: [b('save', 'filename_prefix')],
+ windowControls: [b('review', 'window_controls')],
},
outputs: [{ node: 'save', kind: 'video' }],
- defaults: { maskPrompt: 'person', maskGrow: 5, steps: 12, windowFrames: '22', historyFrames: '18', lora: 'H3-Person-Remover-V1.safetensors', loraStrength: 1 },
+ defaults: { maskPrompt: 'person', maskGrow: 5, steps: 12, windowFrames: '22', historyFrames: '18', lora: 'H3-Person-Remover-V1.safetensors', loraStrength: 1, windowControls: '{}' },
limits: { maxDurationSec: 60, maxFrames: 3592 },
vramGb: 24,
license: 'MiniMax H3 Community License (H3 Ref2VA, its video and audio VAEs, the packaged Qwen3-VL text encoder, Akatz Labs\' Person Remover V1 LoRA): territory EXCLUDES the US, the EU, the UK and South Korea; commercial use above US$20M yearly revenue needs MiniMax\'s written authorization; show "MiniMax H3" on the product\'s interface; no outputs used to improve other AI models · Qwen3-VL-32B base Apache-2.0 · SAM 3.1 under Meta\'s SAM License (commercial use allowed under its terms) · H3 Relay nodes GPL-3.0 (Sendy Software LLC and contributors; vendored Context Loop and Spectrum GPL-3.0); the graph is H3 Relay\'s example workflow (GPL-3.0 repository)',
notes:
'H3 Relay\'s toolkit H3-Person-Removal.api.json at e2a7665b (Akatz Labs\' tool ships the same file). Changed: the clean first frame goes through an ImageScale (centre crop) to the video\'s exact size, so an edit that came back a little larger or smaller still fits; SAM 3.1\'s words default to "person"; the save prefix. ' +
'video = the part already fitted to 24 fps on the 32-pixel grid (oss-fit-clip), image = the clean first frame (the app makes it with Qwen-Image-Edit from the part\'s first frame). 22-frame windows with 18 of history, 12 steps, er_sde / simple, CFG 1, LoRA 1.0, mask grown 5 px, seed 904234 by default (Akatz\'s settings). The output is silent: the app puts the clip\'s sound back. ' +
- 'Needs the h3-relay pack (H3_RELAY=1) and FFmpeg.',
+ 'Needs the h3-relay pack (H3_RELAY=1) and FFmpeg. ' +
+ 'windowControls = H3 Relay\'s Review Windows controls (originals o/person-remover-plus): {config_key, windows: {index: {seed, locked, record_id}}}; locked windows come back exactly from the checkpoints the Relay keeps in ComfyUI\'s output/__h3_removal_cache, the first unlocked one is drawn again with its seed (Redo from here). The provider reads the run\'s window previews from /h3_relay/removal/previews.',
+ },
+ // Remove object's mask first (originals o/person-remover-plus): the removal graph's own SAM 3.1 chain on the first seconds
+ // of the fitted part, the person filled green exactly as the removal will see it (the model card: "check the saved
+ // green-mask preview before running the full removal"). Native ComfyUI nodes only.
+ {
+ id: 'video-person-remove-h3-mask',
+ title: 'Remove a person, mask first: SAM 3.1 finds who you name, thresholds and grows the mask and fills it green over the clip, as H3 Person Removal sees it (core nodes)',
+ capability: 'person-mask',
+ handBuilt: 'hand-built/video-person-remove-h3-mask.json',
+ modelUrls: { 'sam3.1_multiplex_fp16.safetensors': 'https://huggingface.co/Comfy-Org/sam3.1/resolve/7bb8374780a725b4353ed31f3a9395c9742b5621/checkpoints/sam3.1_multiplex_fp16.safetensors' },
+ bindings: {
+ video: [b('source', 'file')], maskPrompt: [b('subject', 'text')], maskGrow: [b('grow_mask', 'expand')], filenamePrefix: [b('save', 'filename_prefix')],
+ },
+ outputs: [{ node: 'save', kind: 'video' }],
+ defaults: { maskPrompt: 'person', maskGrow: 5 },
+ limits: { maxDurationSec: 10, maxFrames: 240 },
+ vramGb: 6,
+ license: 'SAM 3.1 under Meta\'s SAM License (commercial use allowed under its terms); the chain is H3 Relay\'s Person Removal example (GPL-3.0 repository)',
+ notes:
+ 'The SAM 3.1 part of video-person-remove-h3-relay, node for node (detect 0.4 with 2 refinements, track 0.5 with 1 object and detection every 12 frames, threshold 0.5, grow maskGrow px, green 0x00FF00), saved as a video instead of sampled. ' +
+ 'video = the first seconds of the part, fitted to 24 fps on the 32-pixel grid like the removal (oss-fit-clip). Needs nothing but SAM 3.1.',
},
// Character Swap Studio (o/h3-studio; docs/research/openjutsu-6.md §4.2): Akatz Labs' H3 Character Swap workbench for whole
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index 6eb4d6aa..4d2c329b 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -809,11 +809,17 @@
"error": null,
"at": "2026-10-18T07:29:29.488Z"
},
+ "video-person-remove-h3-mask": {
+ "sha256": "c8ce77df965d4b14506a3e2f437ffb2d540a4c83d0725483d814c183fcd7704c",
+ "validated": true,
+ "error": null,
+ "at": "2026-11-02T01:07:56.582Z"
+ },
"video-person-remove-h3-relay": {
"sha256": "5ba6ab867836433b4af7b00e507c1bc031483afebb8680e10a9d41903c6de2f0",
- "validated": false,
- "error": "HTTP 400: missing_node_type: Node 'H3RelayAppendWindow' not found. The custom node may not be installed. (Node ID '#append')",
- "at": "2026-10-27T09:34:44.790Z"
+ "validated": true,
+ "error": null,
+ "at": "2026-11-02T01:07:56.475Z"
},
"video-reframe-wan22-fun-vace": {
"sha256": "3d97f02a5da7badd11df1f1334de2924b4fc930c8976597b25c231d342b629de",
diff --git a/src/app/api/remove-object/reroll/route.ts b/src/app/api/remove-object/reroll/route.ts
new file mode 100644
index 00000000..484023a7
--- /dev/null
+++ b/src/app/api/remove-object/reroll/route.ts
@@ -0,0 +1,11 @@
+import { createRemovalReroll, RerollSchema } from "@/server/remove-object";
+import { body, handle, once } from "@/server/shorts-schemas";
+
+/** "Redo from here": an H3 person removal drawn again from one window, the windows before it kept exactly. */
+export async function POST(request: Request) {
+ return handle(async () => {
+ const input = await body(request, RerollSchema, "Pick the window to redo");
+ const made = await once("remove-object-reroll", input.requestId, () => createRemovalReroll(input));
+ return Response.json(made, { status: 201 });
+ }, request);
+}
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index b130108e..76ca6024 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -1122,6 +1122,19 @@ const open: ModelDef[] = [
routes: [comfy("remove-object", "video-person-remove-h3-relay", "H3 Relay Person Removal: the person painted green, 22-frame windows with 18 of history from the clean first frame (image), 12 steps, silent")],
options: { seed: true, maxImages: 1 },
}),
+ // Its mask first (o/person-remover-plus): the removal graph's own SAM 3.1 chain on the part's first seconds, the person
+ // filled green exactly as H3 will see them. Run by Remove object's "Preview the mask", not the composer.
+ o({
+ id: "oss-h3-removal-mask",
+ name: "SAM 3.1 green mask · H3 Person Removal",
+ vendor: "Meta × Akatz Labs",
+ family: "sam",
+ kind: "video",
+ tagline: "Who H3 Person Removal will take out: SAM 3.1 finds them, the mask is grown and filled green over the first seconds",
+ routes: [comfy("bg-remove-video", "video-person-remove-h3-mask", "SAM 3.1 detect + track, threshold 0.5, grown maskGrow px, filled green: the removal's own mask")],
+ options: {},
+ hidden: true,
+ }),
// Character Swap Studio (/character-swap, o/h3-studio): Akatz Labs' workbench for whole clips. A segment is one H3 Relay
// pass (its approved mask, anchor and the previous take's lossless master as history); a mask is SAM 3.1 on any frame
// of a shot, spliced into the version it corrects. Both run through the studio, not the composer.
diff --git a/src/lib/catalog/remove-object.ts b/src/lib/catalog/remove-object.ts
index 1be277f0..2ea8274f 100644
--- a/src/lib/catalog/remove-object.ts
+++ b/src/lib/catalog/remove-object.ts
@@ -27,6 +27,8 @@ export const REMOVE = {
maxBytes: 200 * 1024 * 1024,
/** Seconds the mask preview looks at. */
previewSeconds: 2,
+ /** H3 Person Removal's mask expansion in pixels (Akatz's default 5; a larger mask asks H3 to invent more background). */
+ maskGrow: { min: 0, max: 64, default: 5 },
maxPoints: 12,
/** What you type: Kling O3 edit takes prompts of up to 2500 characters, and klingPrompt() adds up to 52. */
maxPromptChars: 2400,
@@ -568,6 +570,8 @@ export interface RemovalPlanInput {
/** Paint it: the mask of the range's first frame (white = remove). */
mask?: string;
seed?: number;
+ /** H3 Person Removal: how far the person's mask is grown, in pixels (default REMOVE.maskGrow.default). */
+ maskGrow?: number;
}
export interface RemovalPlan {
@@ -737,7 +741,13 @@ export function planRemoval(input: RemovalPlanInput): RemovalPlan {
* and the relay graph scales it back to the part's exact size with a centre crop. The framing stays the clip's: a 16:9
* part (1344×736) comes back at 2048×1120, within a pixel of its shape; the rounding moves an edge by 1.5% at most.
*/
-export const PERSON_REMOVAL_TOOLS = { fit: "oss-fit-clip", frame: "oss-extract-frame", clean: "oss-qwen-image-21" } as const;
+export const PERSON_REMOVAL_TOOLS = { fit: "oss-fit-clip", frame: "oss-extract-frame", clean: "oss-qwen-image-21", mask: "oss-h3-removal-mask" } as const;
+
+/** A mask expansion within REMOVE.maskGrow, whole pixels (undefined: the graph's default). */
+export function maskGrowOf(v: number | undefined): number | undefined {
+ if (v === undefined || !Number.isFinite(v)) return undefined;
+ return Math.max(REMOVE.maskGrow.min, Math.min(REMOVE.maskGrow.max, Math.round(v)));
+}
/** H3 Relay's Person Removal works at 24 fps (its windows are counted in frames of the clip as it comes in). */
export const PERSON_REMOVAL_FPS = 24;
@@ -765,6 +775,8 @@ function planPersonRemoval(input: RemovalPlanInput): RemovalPlan {
const size = h3Canvas(input.source.width ?? 1280, input.source.height ?? 720, "768p");
const sound = !!input.source.hasAudio;
const label = (what: string, index: number) => ({ label: what, index, of: 4 });
+ const grow = maskGrowOf(input.maskGrow);
+ const eraseParams = { ...seed, ...(grow !== undefined ? { extra: { maskGrow: grow } } : {}) };
const steps: PlanStep[] = [
{
key: "fit",
@@ -796,7 +808,7 @@ function planPersonRemoval(input: RemovalPlanInput): RemovalPlan {
modelId: e.id,
op: "remove-object",
prompt: targetPhrase(input.prompt ?? "") || "person",
- ...(input.seed !== undefined ? { params: { ...seed } } : {}),
+ ...(Object.keys(eraseParams).length ? { params: eraseParams } : {}),
step: label("Remove the person (MiniMax H3)", 3),
},
after: ["fit", "clean"],
@@ -898,8 +910,14 @@ export interface PreviewPlanInput {
range: RemoveRange;
prompt?: string;
points?: PixelPoint[];
+ /** The eraser that would run: H3 Person Removal previews its own green mask. */
+ eraser?: Eraser;
+ maskGrow?: number;
}
+/** Whether the mask preview is H3 Person Removal's green mask (the person filled green, thresholded and grown). */
+export const previewIsGreen = (e: Eraser | undefined): boolean => !!e?.cleanFrame && e.engine === "open";
+
/**
* Whether the mask preview shows the mask the eraser itself works from (SAM tracks the object for it: the open
* graphs, fal's VOID from its mask prompt, a SAM 3.1 track of clicks or paint), or only how SAM 3.1 reads the words
@@ -916,6 +934,7 @@ export function previewIsEraserMask(e: Eraser, tracked: boolean): boolean {
* paint, whose painted overlay is its own preview).
*/
export function planMaskPreview(input: PreviewPlanInput): PlanStep[] | null {
+ if (previewIsGreen(input.eraser)) return planGreenPreview(input);
if (input.engine === "open" && input.mode !== "type") return null;
const words = input.mode === "type" ? targetPhrase(input.prompt ?? "") : "";
if (input.mode === "type" ? !words : !input.points?.length) return null;
@@ -942,3 +961,162 @@ export function planMaskPreview(input: PreviewPlanInput): PlanStep[] | null {
},
];
}
+
+/**
+ * H3 Person Removal, mask first (the model card: "check the saved green-mask preview before running the full removal"):
+ * the first seconds of the part fitted exactly as the removal fits it (24 fps on H3's 32-pixel grid), then the removal
+ * graph's own SAM 3.1 chain (detect, track, threshold 0.5, grow, fill green). Free on your GPU.
+ */
+function planGreenPreview(input: PreviewPlanInput): PlanStep[] {
+ const words = targetPhrase(input.prompt ?? "") || "person";
+ const size = h3Canvas(input.source.width ?? 1280, input.source.height ?? 720, "768p");
+ const end = r3(Math.min(input.range.end, input.range.start + REMOVE.previewSeconds));
+ const grow = maskGrowOf(input.maskGrow);
+ const helper = { feature: REMOVE.stepFeature, batchTitle: input.title };
+ return [
+ {
+ key: "cut",
+ request: {
+ ...helper,
+ modelId: PERSON_REMOVAL_TOOLS.fit,
+ op: "trim",
+ inputs: { video: input.source.url },
+ params: { startTime: r3(input.range.start), endTime: end, fps: PERSON_REMOVAL_FPS, extra: { width: size.width, height: size.height } },
+ step: { label: "Fit the first seconds", index: 0, of: 2 },
+ },
+ },
+ {
+ key: "preview",
+ request: {
+ feature: REMOVE.previewFeature,
+ batchTitle: input.title,
+ title: `Green mask · ${words}`,
+ modelId: PERSON_REMOVAL_TOOLS.mask,
+ op: "bg-remove-video",
+ prompt: words,
+ params: { duration: r3(end - input.range.start), extra: { maskPrompt: words, ...(grow !== undefined ? { maskGrow: grow } : {}) } },
+ step: { label: "Green mask preview", index: 1, of: 2 },
+ },
+ after: ["cut"],
+ chain: [{ slot: "video" }],
+ },
+ ];
+}
+
+// ---------------------------------------------------------------------------
+// Window review and "Redo from here" (H3 Person Removal on your GPU)
+
+/** params.extra keys of a reroll (set by the server from the run it redoes, never taken from a request). */
+export const REVIEW_EXTRA = { controls: "windowControls", reuse: "reuseInputs" } as const;
+
+/** One finished window of an H3 removal, as H3 Relay's Review Windows reports it. */
+export interface ReviewWindow {
+ index: number;
+ /** The window's first frame in the part (24 fps). */
+ start: number;
+ frames: number;
+ seed: string;
+ /** H3 Relay's checkpoint of the window (ComfyUI's output/__h3_removal_cache). */
+ recordId?: string;
+ /** Came back from its checkpoint (an earlier window kept exactly). */
+ reused?: boolean;
+ /** A small preview of the window (512 px), and its first frame. */
+ video?: string;
+ poster?: string;
+}
+
+/** What a removal step keeps so it can be redone from a window (generation output meta "review"). */
+export interface RemovalReview {
+ runId: string;
+ configKey: string;
+ /** The master seed (later windows count up from it). */
+ seed: string;
+ total: number;
+ windows: ReviewWindow[];
+ /** The ComfyUI input names and save prefix the run used: a reroll sends the same graph, or the Relay starts over. */
+ reuse: { video: string; image: string; prefix: string };
+}
+
+/** The highest seed a window takes (H3 Relay: unsigned 64-bit; Fuobe keeps to what JSON numbers hold exactly). */
+export const MAX_WINDOW_SEED = 2 ** 48;
+
+/**
+ * H3 Relay's window_controls for "Redo from here": every window before `from` locked to its checkpoint (kept exactly),
+ * window `from` drawn again with `seed`, the ones after it drawn again from the master seed's schedule (they continue
+ * from the new window). Null when a window before `from` has no checkpoint (it can't be kept).
+ */
+export function rerollControls(review: Pick<RemovalReview, "configKey" | "windows">, from: number, seed: number): string | null {
+ const windows: Record<string, { seed: string; locked: boolean; record_id?: string }> = {};
+ for (let i = 0; i < from; i++) {
+ const w = review.windows.find((x) => x.index === i);
+ if (!w?.recordId) return null;
+ windows[String(i)] = { seed: w.seed, locked: true, record_id: w.recordId };
+ }
+ windows[String(from)] = { seed: String(Math.max(0, Math.floor(seed))), locked: false };
+ return JSON.stringify({ config_key: review.configKey, windows });
+}
+
+/** Why a window can't be redone, or null. */
+export function rerollProblem(review: RemovalReview | null | undefined, from: number): string | null {
+ if (!review || !review.windows.length) return "This removal has no window previews to redo from — run it again on your ComfyUI";
+ if (!Number.isInteger(from) || from < 0 || from >= review.total) return "Pick one of the removal's windows";
+ for (let i = 0; i < from; i++) if (!review.windows.find((x) => x.index === i)?.recordId) return `Window ${i + 1} wasn't saved, so the windows before this one can't be kept — redo from window ${i + 1}`;
+ return null;
+}
+
+/** ComfyUI output folder names H3 Relay writes previews under, and the input / prefix names a reroll reuses. */
+const SAFE_NAME = /^(?!.*\.\.)[\w][\w ./()-]{0,199}$/;
+const SAFE_PREFIX = /^fuobe\/[\w-]{1,80}$/;
+
+/** The inputs and prefix a reroll sends again, when each is a plain ComfyUI name (else null: the reroll starts over). */
+export function reuseOf(v: unknown): RemovalReview["reuse"] | null {
+ if (!v || typeof v !== "object") return null;
+ const r = v as Record<string, unknown>;
+ if (typeof r.video !== "string" || typeof r.image !== "string" || typeof r.prefix !== "string") return null;
+ if (!SAFE_NAME.test(r.video) || !SAFE_NAME.test(r.image) || !SAFE_PREFIX.test(r.prefix)) return null;
+ return { video: r.video, image: r.image, prefix: r.prefix };
+}
+
+/** The artifact keys a window's preview and poster are kept under (output meta.artifacts). */
+export const windowArtifact = (index: number, what: "video" | "poster") => `window-${String(index + 1).padStart(3, "0")}${what === "poster" ? "-poster" : ""}`;
+
+/**
+ * H3 Relay's review run (GET /h3_relay/removal/previews: run_id, config_key, seed, total, segments with record_id,
+ * seed, start, frames, reused and video / poster files in ComfyUI's output folder) as Fuobe keeps it: the review, and
+ * the window previews' links (`view` makes a ComfyUI /view link of a file) to keep as the result's artifacts.
+ */
+export function reviewOfRun(run: unknown, reuse: RemovalReview["reuse"], view: (f: { filename: string; subfolder: string; type: string }) => string): { review: RemovalReview; artifacts: Record<string, string> } | null {
+ if (!run || typeof run !== "object") return null;
+ const r = run as Record<string, unknown>;
+ if (typeof r.run_id !== "string" || typeof r.config_key !== "string" || !Array.isArray(r.segments)) return null;
+ const artifacts: Record<string, string> = {};
+ const file = (f: unknown) => {
+ if (!f || typeof f !== "object") return undefined;
+ const x = f as Record<string, unknown>;
+ if (typeof x.filename !== "string" || !SAFE_NAME.test(x.filename) || typeof x.subfolder !== "string" || !x.subfolder.startsWith("__h3_removal_cache/")) return undefined;
+ return view({ filename: x.filename, subfolder: x.subfolder, type: "output" });
+ };
+ const windows: ReviewWindow[] = [];
+ for (const s of r.segments as Record<string, unknown>[]) {
+ if (!s || typeof s !== "object" || typeof s.index !== "number") continue;
+ const w: ReviewWindow = { index: s.index, start: Number(s.start ?? 0), frames: Number(s.frames ?? 0), seed: String(s.seed ?? "") };
+ if (typeof s.record_id === "string" && /^[0-9a-f]{32}$/.test(s.record_id)) w.recordId = s.record_id;
+ if (s.reused === true) w.reused = true;
+ const video = file(s.video);
+ const poster = file(s.poster);
+ if (video) artifacts[(w.video = windowArtifact(w.index, "video"))] = video;
+ if (poster) artifacts[(w.poster = windowArtifact(w.index, "poster"))] = poster;
+ windows.push(w);
+ }
+ windows.sort((a, b) => a.index - b.index);
+ const total = Number(r.total ?? windows.length);
+ return { review: { runId: r.run_id, configKey: r.config_key, seed: String(r.seed ?? ""), total: Number.isFinite(total) ? total : windows.length, windows, reuse }, artifacts };
+}
+
+/** The review a removal step's output carries (meta.review), with each window's preview links from meta.artifacts. */
+export function reviewOfOutput(meta: Record<string, unknown> | undefined): (RemovalReview & { links: Record<string, string> }) | null {
+ const r = meta?.review as RemovalReview | undefined;
+ if (!r || !Array.isArray(r.windows) || typeof r.configKey !== "string") return null;
+ const links = (meta?.artifacts && typeof meta.artifacts === "object" ? meta.artifacts : {}) as Record<string, string>;
+ return { ...r, links };
+}
diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.ts
index d9134c40..c2e56bfc 100644
--- a/src/server/providers/comfyui.ts
+++ b/src/server/providers/comfyui.ts
@@ -62,7 +62,8 @@ import { STUDIO_WORKFLOWS } from "@/lib/catalog/swap-studio-plan";
import { maskGraph, segmentGraph, type MaskGraphOptions, type SegmentGraphOptions } from "@/lib/swap-studio-graphs";
import { RESTORE_EXTRA_KEYS, restoreGraph, restoreJob, type RestoreJob } from "@/lib/restore-graph";
import { getMaker, makerPrompt, OPEN_TARGET_PROBLEM, ORIGINALS, swapTarget } from "@/lib/catalog/genjutsu";
-import { CLICK_OPEN_PROBLEM, HAND_OFF, REMOVE_SCENE, targetPhrase } from "@/lib/catalog/remove-object";
+import { CLICK_OPEN_PROBLEM, HAND_OFF, REMOVE_SCENE, REVIEW_EXTRA, reuseOf, reviewOfRun, targetPhrase, type RemovalReview } from "@/lib/catalog/remove-object";
+import { H3_REMOVAL_WORKFLOW } from "@/lib/catalog/character-swap";
import type { GenInput, MediaKind, ModelRoute, Operation } from "@/lib/catalog/types";
import { imageSize } from "@/lib/image-size";
import { probeMedia, type MediaInfo } from "@/lib/media-probe";
@@ -1655,6 +1656,22 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
const canvas = lightningCanvas(manifest.capability, values, ctx.media?.(String(values.image ?? "")));
if (canvas) values.sigmas = lightningSigmas(canvas.width, canvas.height);
}
+ // H3 Person Removal's window review (H3 Relay's Review Windows): "Redo from here" sends the same graph again with
+ // window controls that lock the windows before it to their checkpoints. The Relay keeps those only while the graph,
+ // its input files and its save prefix are the same, so a reroll names the original run's inputs and prefix (set by
+ // the server from that run, on the studio's own ComfyUI only: never an account's, a link's or a computer's).
+ let reviewInputs: RemovalReview["reuse"] | undefined;
+ if (manifest.id === H3_REMOVAL_WORKFLOW) {
+ const reuse = reuseOf(extra[REVIEW_EXTRA.reuse]);
+ delete extra[REVIEW_EXTRA.reuse];
+ const controls = extra[REVIEW_EXTRA.controls];
+ if (controls !== undefined && (typeof controls !== "string" || controls.length > 131_072)) delete extra[REVIEW_EXTRA.controls];
+ const own = !ownGpu() && !computerScope() && !tenantAccount();
+ if (reuse && own) Object.assign(values, { video: reuse.video, image: reuse.image, filenamePrefix: reuse.prefix });
+ if (typeof values.video === "string" && typeof values.image === "string" && typeof values.filenamePrefix === "string") {
+ reviewInputs = { video: values.video, image: values.image, prefix: values.filenamePrefix };
+ }
+ }
for (const [k, v] of Object.entries(extra)) values[k as BindingKey] = v;
// SeedVR2's `scale` multiplies the picture before one diffusion pass over all of it, and its graph is made for up to
// limits.maxWidth × maxHeight: the multiplier comes down to fit the picture (a 3000 × 2000 photo at the template's 4x
@@ -1815,7 +1832,14 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,
manifest,
workflow: wf,
// The seed the graph drew with (one Fuobe picked when none was asked): its pictures keep it, so Edit layout redraws the same one.
- meta: { workflowId: manifest.id, nodeCount: Object.keys(wf).length, prefix: `fuobe/${ctx.generationId}`, ...(metaBatch ? { metaBatch: true } : {}), ...(b.seed && typeof values.seed === "number" ? { seed: values.seed } : {}) },
+ meta: {
+ workflowId: manifest.id,
+ nodeCount: Object.keys(wf).length,
+ prefix: `fuobe/${ctx.generationId}`,
+ ...(metaBatch ? { metaBatch: true } : {}),
+ ...(b.seed && typeof values.seed === "number" ? { seed: values.seed } : {}),
+ ...(reviewInputs ? { reviewInputs } : {}),
+ },
};
}
@@ -1918,6 +1942,30 @@ async function followMetaBatch(prefix: string, manifest: ManifestWorkflow | unde
return null;
}
+/**
+ * H3 Person Removal: H3 Relay's review of the run (each window's checkpoint, seed and preview) on the video it made, as
+ * meta.review plus the previews as meta.artifacts (kept with the result), so the page shows every window and can redo
+ * from one. Nothing when the Relay didn't report a run (an older pack) or the inputs can't be sent again.
+ */
+async function withRemovalReview(entry: HistoryEntry, outputs: ComfyOutput[], reuseMeta: unknown, worker: ComfyWorker): Promise<ComfyOutput[]> {
+ const reuse = reuseOf(reuseMeta);
+ const runs = Object.values(entry.outputs ?? {}).flatMap((ui) => (Array.isArray(ui?.h3_removal_run) ? ui.h3_removal_run : []));
+ const runId = runs.find((r): r is string => typeof r === "string" && /^[0-9a-f]{32}$/.test(r));
+ const at = outputs.findIndex((o) => o.kind === "video");
+ if (!reuse || !runId || at < 0) return outputs;
+ try {
+ const run = await comfyJson<unknown>(`/h3_relay/removal/previews?${new URLSearchParams({ workflow_id: "", node_id: "review", run_id: runId })}`, worker);
+ const base = baseUrl(worker);
+ const read = reviewOfRun(run, reuse, (f) => `${base}/view?${new URLSearchParams(f)}`);
+ if (!read) return outputs;
+ const o = outputs[at];
+ const artifacts = { ...((o.meta?.artifacts as Record<string, string> | undefined) ?? {}), ...read.artifacts };
+ return outputs.map((x, i) => (i === at ? { ...x, meta: { ...x.meta, review: read.review, artifacts } } : x));
+ } catch {
+ return outputs;
+ }
+}
+
/** Upload a file to a worker's input folder; returns the name LoadImage / LoadAudio / LoadVideo take there. */
async function uploadTo(worker: ComfyWorker, data: Buffer, contentType: string, name: string): Promise<string> {
// On someone's computer: kept here for the run's task, under the name ComfyUI will get from their tab.
@@ -2246,6 +2294,7 @@ export const comfyProvider: ProviderAdapter = {
}
const seed = typeof meta.seed === "number" ? meta.seed : undefined;
if (seed !== undefined) outputs = outputs.map((o) => (o.kind === "image" ? { ...o, meta: { ...o.meta, seed } } : o));
+ if (manifest?.id === H3_REMOVAL_WORKFLOW) outputs = await withRemovalReview(entry, outputs, meta.reviewInputs, worker);
return { state: "succeeded" as const, outputs: await withLayerBoxes(outputs) };
};
const isDone = (e: HistoryEntry | undefined): e is HistoryEntry => !!e && (!!e.status?.completed || e.status?.status_str === "success" || e.status?.status_str === "error");
diff --git a/src/server/remove-object.ts b/src/server/remove-object.ts
index 4b31f22a..f8c3aacc 100644
--- a/src/server/remove-object.ts
+++ b/src/server/remove-object.ts
@@ -4,12 +4,14 @@ import { getModel } from "@/lib/catalog";
import { characterLicenceLine, PERSON_REMOVER_LORA } from "@/lib/catalog/character-swap";
import {
chooseEraser,
+ getEraser as chooseEraserById,
paintedPoints,
pieceSeconds,
planPieces,
planMaskPreview,
planRemoval,
previewIsEraserMask,
+ previewIsGreen,
rangeProblem,
REMOVE,
removalProblem,
@@ -21,11 +23,17 @@ import {
type RemoveMode,
type RemoveRange,
type RemoveSource,
+ MAX_WINDOW_SEED,
+ REVIEW_EXTRA,
+ rerollControls,
+ rerollProblem,
+ reviewOfOutput,
} from "@/lib/catalog/remove-object";
import type { PlanStep } from "@/lib/catalog/shorts";
import type { Engine, GenParams, Generation, PixelPoint } from "@/lib/catalog/types";
import { createPipeline } from "./chains";
-import { ConnectComfyError, previewChained } from "./generations";
+import { ConnectComfyError, getGeneration, previewChained } from "./generations";
+import { db } from "./db";
import { ACCESS_PLACE } from "@/lib/model-access";
import { isOffered, offeredLoras } from "./model-access";
import { decodePng } from "./png";
@@ -60,6 +68,8 @@ export interface RemovalBody {
source: { url: string; name?: string; duration?: number; fps?: number; width?: number; height?: number; hasAudio?: boolean };
range?: RemoveRange;
seed?: number;
+ /** H3 Person Removal: how far the person's mask is grown, in pixels. */
+ maskGrow?: number;
}
const fileUrl = z.string().startsWith("/api/files/").max(500);
@@ -88,6 +98,7 @@ export const RemovalBodySchema = z.object({
}),
range: z.object({ start: seconds, end: seconds }).optional(),
seed: z.number().int().min(0).max(2 ** 48).optional(),
+ maskGrow: z.number().int().min(REMOVE.maskGrow.min).max(REMOVE.maskGrow.max).optional(),
/** A client nonce for one submit: a repeat gets the first answer (see once()). */
requestId: z.string().trim().min(8).max(64).optional(),
});
@@ -208,6 +219,8 @@ async function planInput(body: RemovalBody, opts: { probe: boolean; preview?: bo
notes.push(
"Qwen-Image 2.1 first makes a clean copy of the part's first frame with the person gone; MiniMax H3 with Akatz Labs' Person Remover LoRA then rebuilds what was behind them, 22 frames at a time from it, and the clip's sound goes back on",
"People only — for an object, pick Wan 2.1 VACE + SAM 3.1",
+ "Preview the mask first: the person filled green, as H3 will see them — keep every part of them covered (hands, hair, a shadow); grow the mask if an edge shows",
+ "When it's done, each 22-frame window has its own preview: redo a weak one with a new seed, and every window before it is kept exactly",
"Needs the H3 Relay nodes on your ComfyUI (scripts/comfy/install-comfyui.sh with H3_RELAY=1) and 24 GB of VRAM with offloading (64–128 GB of RAM); the part runs at 24 fps",
characterLicenceLine("open", "fuobe-character-swap").replace("nodes GPL-3.0", "H3 Relay nodes GPL-3.0"),
);
@@ -237,6 +250,7 @@ async function planInput(body: RemovalBody, opts: { probe: boolean; preview?: bo
points,
mask: body.mode === "paint" && eraser.engine === "open" ? body.mask : undefined,
...(body.seed !== undefined ? { seed: body.seed } : {}),
+ ...(eraser.cleanFrame && body.maskGrow !== undefined ? { maskGrow: body.maskGrow } : {}),
},
};
}
@@ -278,6 +292,8 @@ export interface RemovalEstimate {
notes: string[];
/** The mask preview's price, or null when this engine and mode have none. */
previewUsd: number | null;
+ /** The preview is H3 Person Removal's green mask (the person filled green, thresholded and grown). */
+ previewGreen: boolean;
/**
* Whether the preview is the mask the eraser works from; false: only how SAM 3.1 reads the words or clicks
* (Kling O3 edit and Bria find the object themselves).
@@ -288,7 +304,7 @@ export interface RemovalEstimate {
export async function estimateRemoval(body: RemovalBody): Promise<RemovalEstimate> {
const { input, eraser, notes } = await planInput(body, { probe: false });
const plan = planRemoval(input);
- const preview = planMaskPreview({ ...input, prompt: input.prompt, points: input.points });
+ const preview = planMaskPreview(input);
return {
...price(plan.steps, input.source),
modelId: eraser.id,
@@ -299,6 +315,7 @@ export async function estimateRemoval(body: RemovalBody): Promise<RemovalEstimat
notes,
previewUsd: preview ? price(preview, input.source).costUsd : null,
previewExact: !!preview && previewIsEraserMask(eraser, plan.tracked),
+ previewGreen: previewIsGreen(eraser),
};
}
@@ -326,3 +343,95 @@ export async function createRemovalPreview(body: RemovalBody): Promise<Generatio
if (!steps) throw new ShortsError(input.engine === "open" ? "The open engine previews masks of what you type — your paint is the preview here" : "Name, click or paint what to remove first", 422);
return run(steps).byKey.preview;
}
+
+// ---------------------------------------------------------------------------
+// "Redo from here": an H3 removal drawn again from one window, the windows before it kept exactly
+
+export const RerollSchema = z.object({
+ /** The removal step that made the windows (the one whose result carries the review). */
+ id: z.string().min(1).max(64),
+ /** The window to draw again (0-based); every window before it is kept. */
+ window: z.number().int().min(0).max(1000),
+ /** Its new seed (blank: a random one). */
+ seed: z.number().int().min(0).max(MAX_WINDOW_SEED).optional(),
+ requestId: z.string().trim().min(8).max(64).optional(),
+});
+export type RerollBody = z.infer<typeof RerollSchema>;
+
+const NOT_FOUND = "We can't find that removal.";
+
+/** The step that puts the sound back on a removal step's video, if the removal had one. */
+function soundStepAfter(g: Generation): Generation | null {
+ const rows = db()
+ .prepare("SELECT id FROM generations WHERE batch_id IS ? AND deleted_at IS NULL AND (depends_on = ? OR depends_on LIKE ?) ORDER BY created_at")
+ .all(g.batchId, g.id, `%"${g.id}"%`) as { id: string }[];
+ for (const r of rows) {
+ const next = getGeneration(r.id);
+ if (next?.op === "mux") return next;
+ }
+ return null;
+}
+
+/**
+ * Redo an H3 person removal from one window: the same graph sent to the same ComfyUI with H3 Relay's window controls,
+ * so the windows before it come back from their checkpoints exactly, the window is drawn with a new seed and the ones
+ * after it continue from it; then the clip's sound goes back on as before. Returns the new finished video.
+ */
+export async function createRemovalReroll(body: RerollBody): Promise<{ final: Generation; items: Generation[] }> {
+ const erase = getGeneration(body.id);
+ if (!erase || (erase.feature !== REMOVE.feature && erase.feature !== REMOVE.stepFeature)) throw new ShortsError(NOT_FOUND, 404);
+ if (!getEraserCleanFrame(erase.modelId)) throw new ShortsError("Only an H3 person removal can be redone from a window", 422);
+ if (erase.status !== "succeeded") throw new ShortsError("Wait for the removal to finish first", 409);
+ mustMatchMode("open");
+ const out = erase.outputs.find((o) => o.kind === "video");
+ const review = reviewOfOutput(out?.meta);
+ const problem = rerollProblem(review, body.window);
+ if (problem || !review) throw new ShortsError(problem ?? NOT_FOUND, 422);
+ const seed = body.seed ?? Math.floor(Math.random() * 2 ** 32);
+ const controls = rerollControls(review, body.window, seed);
+ if (!controls) throw new ShortsError("The windows before this one weren't saved — redo from the first window", 422);
+
+ // The step as it ran (its chained inputs filled in), without what belongs to that run only.
+ const req = { ...erase.request } as typeof erase.request & Record<string, unknown>;
+ for (const k of ["asked", "chainFilled", "chainSkipped", "notice", "chain"]) delete req[k];
+ const masterSeed = Number(review.seed);
+ const mux = soundStepAfter(erase);
+ const title = `${erase.request.batchTitle ?? erase.request.title ?? "Remove a person"} · from window ${body.window + 1}`;
+ const steps: PlanStep[] = [
+ {
+ key: "erase0",
+ request: {
+ ...req,
+ feature: mux ? REMOVE.stepFeature : REMOVE.feature,
+ batchTitle: title,
+ title,
+ params: {
+ ...erase.request.params,
+ ...(Number.isSafeInteger(masterSeed) ? { seed: masterSeed } : {}),
+ extra: { ...erase.request.params?.extra, [REVIEW_EXTRA.controls]: controls, [REVIEW_EXTRA.reuse]: review.reuse },
+ },
+ step: { label: `Redo from window ${body.window + 1} (MiniMax H3)`, index: 0, of: 2 },
+ },
+ },
+ ];
+ if (mux) {
+ steps.push({
+ key: "final",
+ request: {
+ feature: REMOVE.feature,
+ batchTitle: title,
+ title,
+ modelId: mux.modelId,
+ op: "mux",
+ ...(mux.request.inputs?.audio ? { inputs: { audio: mux.request.inputs.audio } } : {}),
+ step: { label: "Put the sound back", index: 1, of: 2 },
+ },
+ after: ["erase0"],
+ chain: [{ slot: "video" }],
+ });
+ }
+ const p = run(steps);
+ return { final: p.byKey[mux ? "final" : "erase0"], items: p.items };
+}
+
+const getEraserCleanFrame = (modelId: string) => !!chooseEraserById(modelId)?.cleanFrame;
diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.ts
index 3f0fe52f..cc1717d4 100644
--- a/tests/comfy-library-4.test.ts
+++ b/tests/comfy-library-4.test.ts
@@ -138,7 +138,6 @@ describe("round-4 ComfyUI workflows", () => {
"voice-clean-bed-reuse",
"video-character-swap-h3",
"video-character-swap-h3-relay",
- "video-person-remove-h3-relay",
"video-character-swap-h3-segment",
"video-mask-h3-relay",
"video-regenerate-h3",
diff --git a/tests/person-remove-h3.test.ts b/tests/person-remove-h3.test.ts
index 2b2e45e5..ca7224c0 100644
--- a/tests/person-remove-h3.test.ts
+++ b/tests/person-remove-h3.test.ts
@@ -138,9 +138,8 @@ describe("H3 person removal: the graph", () => {
expect(PERSON_REMOVER_LORA.url).toBe("https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/fe136b3dc93aea993b9f194d48ea9859fdc2de14/H3-Person-Remover-V1.safetensors");
});
- it("is in the library with its pinned files, its pack and its licence; not validated here (the pack isn't installed)", () => {
- expect(entry).toMatchObject({ capability: "remove-object", validated: false, vramGb: 24 });
- expect(entry.validationError).toMatch(/missing_node_type/);
+ it("is in the library with its pinned files, its pack and its licence; validated against a ComfyUI with the H3 Relay pack", () => {
+ expect(entry).toMatchObject({ capability: "remove-object", validated: true, vramGb: 24 });
expect(entry.customNodes).toEqual([{ name: "h3-relay", repo: "https://github.com/akatz-ai/h3-relay/tree/e2a7665b6eb8ea37a88c0de2c9c6b69a8f7c9220" }]);
expect(nodePack("h3-relay")?.licence.name).toBe("GPL-3.0");
const lora = entry.models.find((m) => m.file === "H3-Person-Remover-V1.safetensors")!;
diff --git a/tests/person-remover-plus.test.ts b/tests/person-remover-plus.test.ts
new file mode 100644
index 00000000..1ca5ef27
--- /dev/null
+++ b/tests/person-remover-plus.test.ts
@@ -0,0 +1,172 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, describe, expect, it } from "vitest";
+import { getModel, getPreset } from "@/lib/catalog";
+import { h3Canvas, H3_REMOVAL_WORKFLOW } from "@/lib/catalog/character-swap";
+import { planGeneration } from "@/lib/catalog/plan";
+import {
+ getEraser,
+ maskGrowOf,
+ PERSON_REMOVAL_FPS,
+ PERSON_REMOVAL_TOOLS,
+ planMaskPreview,
+ planRemoval,
+ previewIsGreen,
+ REMOVE,
+ rerollControls,
+ rerollProblem,
+ reuseOf,
+ REVIEW_EXTRA,
+ reviewOfOutput,
+ reviewOfRun,
+ windowArtifact,
+ type RemovalPlanInput,
+ type RemovalReview,
+} from "@/lib/catalog/remove-object";
+import type { GenInput } from "@/lib/catalog/types";
+import type { ManifestWorkflow } from "@/lib/comfy";
+
+// H3 Person Remover, everywhere (o/person-remover-plus): mask first, window review and "Redo from here".
+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-person-remover-plus-"));
+process.env.FUOBE_DATA_DIR = tmp;
+process.env.COMFYUI_URL = "http://comfy.test:8188";
+const { prepareWorkflow } = await import("@/server/providers/comfyui");
+const { runAsTenant } = await import("@/server/tenant");
+afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));
+
+const manifest = JSON.parse(fs.readFileSync(path.join(__dirname, "../workflows/comfyui/manifest.json"), "utf8")) as { workflows: ManifestWorkflow[] };
+const src = { url: "/api/files/uploads/clip.mp4", duration: 12, fps: 30, width: 1280, height: 720, hasAudio: true };
+const eraser = getEraser("oss-h3-person-remove")!;
+const input = (over: Partial<RemovalPlanInput> = {}): RemovalPlanInput => ({
+ engine: "open",
+ mode: "type",
+ eraser,
+ title: "Remove · the man in the grey shirt",
+ source: src,
+ range: { start: 2, end: 9 },
+ prompt: "Remove the man in the grey shirt",
+ ...over,
+});
+
+describe("mask first: the green mask preview", () => {
+ it("fits the first seconds like the removal and runs the removal's own SAM 3.1 chain, filled green", () => {
+ expect(previewIsGreen(eraser)).toBe(true);
+ expect(previewIsGreen(getEraser("oss-vace-remove"))).toBe(false);
+ const steps = planMaskPreview(input({ maskGrow: 12 }))!;
+ expect(steps.map((s) => s.key)).toEqual(["cut", "preview"]);
+ expect(steps[0].request).toMatchObject({
+ modelId: PERSON_REMOVAL_TOOLS.fit,
+ op: "trim",
+ inputs: { video: src.url },
+ params: { startTime: 2, endTime: 2 + REMOVE.previewSeconds, fps: PERSON_REMOVAL_FPS, extra: h3Canvas(1280, 720, "768p") },
+ });
+ expect(steps[1].request).toMatchObject({
+ feature: REMOVE.previewFeature,
+ modelId: "oss-h3-removal-mask",
+ op: "bg-remove-video",
+ prompt: "the man in the grey shirt",
+ params: { extra: { maskPrompt: "the man in the grey shirt", maskGrow: 12 } },
+ });
+ expect(steps[1].chain).toEqual([{ slot: "video" }]);
+ for (const s of steps) {
+ const chained = s.chain?.length ? { video: "/api/files/x.mp4" } : {};
+ expect(() => planGeneration({ ...s.request, inputs: { ...s.request.inputs, ...chained } }, getModel, getPreset), s.key).not.toThrow();
+ }
+ });
+
+ it("the expansion is whole pixels within its range and reaches the removal", () => {
+ expect([maskGrowOf(undefined), maskGrowOf(-3), maskGrowOf(7.4), maskGrowOf(500)]).toEqual([undefined, 0, 7, REMOVE.maskGrow.max]);
+ const erase = planRemoval(input({ maskGrow: 9, seed: 3 })).steps.find((s) => s.key === "erase0")!;
+ expect(erase.request.params).toEqual({ seed: 3, extra: { maskGrow: 9 } });
+ expect(planRemoval(input()).steps.find((s) => s.key === "erase0")!.request.params).toBeUndefined();
+ });
+
+ it("the preview graph is the removal graph's SAM chain, node for node, and validated on core nodes", async () => {
+ const mask = manifest.workflows.find((w) => w.id === "video-person-remove-h3-mask")!;
+ expect(mask).toMatchObject({ capability: "person-mask", validated: true });
+ expect(mask.customNodes ?? []).toEqual([]);
+ const read = (id: string) => JSON.parse(fs.readFileSync(path.join(__dirname, `../workflows/comfyui/${id}.json`), "utf8"));
+ const a = read("video-person-remove-h3-mask");
+ const b = read(H3_REMOVAL_WORKFLOW);
+ for (const n of ["sam", "detect", "track", "mask", "binary_mask", "grow_mask", "green", "green_guide"]) expect(a[n], n).toEqual(b[n]);
+ const wf = (await prepareWorkflow("video-person-remove-h3-mask", { video: "fit.mp4", prompt: "the man", extra: { maskPrompt: "the man", maskGrow: 12 } } as GenInput, { generationId: "p1", op: "bg-remove-video", upload: async (_d, _t, n) => n })).workflow as Record<string, { inputs: Record<string, unknown> }>;
+ expect([wf.source.inputs.file, wf.subject.inputs.text, wf.grow_mask.inputs.expand, wf.save.inputs.filename_prefix]).toEqual(["fit.mp4", "the man", 12, "fuobe/p1"]);
+ });
+});
+
+const run = {
+ run_id: "a".repeat(32),
+ config_key: "c".repeat(64),
+ seed: "904234",
+ total: 3,
+ status: "complete",
+ segments: [
+ { index: 1, start: 22, frames: 22, record_id: "2".repeat(32), seed: "904235", reused: false, video: { filename: "window-002.mp4", subfolder: `__h3_removal_cache/previews/${"a".repeat(32)}`, type: "output" } },
+ { index: 0, start: 0, frames: 22, record_id: "1".repeat(32), seed: "904234", reused: true, poster: { filename: "window-001.jpg", subfolder: `__h3_removal_cache/previews/${"a".repeat(32)}`, type: "output" } },
+ { index: 2, start: 44, frames: 20, record_id: "3".repeat(32), seed: "904236", video: { filename: "../../etc/passwd", subfolder: "x", type: "output" } },
+ ],
+};
+const reuse = { video: "fuobe_abcdefgh.mp4", image: "fuobe_ijklmnop.png", prefix: "fuobe/g1" };
+
+describe("window review: what the Relay reports", () => {
+ it("keeps each window's checkpoint, seed and preview, and only ComfyUI output files of the run", () => {
+ const read = reviewOfRun(run, reuse, (f) => `http://comfy/view?${new URLSearchParams(f)}`)!;
+ expect(read.review).toMatchObject({ runId: run.run_id, configKey: run.config_key, seed: "904234", total: 3, reuse });
+ expect(read.review.windows.map((w) => [w.index, w.recordId, w.seed, !!w.reused])).toEqual([
+ [0, "1".repeat(32), "904234", true],
+ [1, "2".repeat(32), "904235", false],
+ [2, "3".repeat(32), "904236", false],
+ ]);
+ expect(read.review.windows[0].poster).toBe(windowArtifact(0, "poster"));
+ expect(read.review.windows[1].video).toBe(windowArtifact(1, "video"));
+ expect(read.review.windows[2].video).toBeUndefined();
+ expect(Object.keys(read.artifacts).sort()).toEqual(["window-001-poster", "window-002"]);
+ expect(read.artifacts["window-002"]).toContain("subfolder=__h3_removal_cache");
+ expect(reviewOfRun({ nope: 1 }, reuse, () => "")).toBeNull();
+ expect(reviewOfOutput({ review: read.review, artifacts: { "window-002": "/api/files/w2.mp4" } })?.links).toEqual({ "window-002": "/api/files/w2.mp4" });
+ });
+
+ it("only plain ComfyUI names are sent again", () => {
+ expect(reuseOf(reuse)).toEqual(reuse);
+ expect(reuseOf({ ...reuse, video: "../secret.mp4" })).toBeNull();
+ expect(reuseOf({ ...reuse, prefix: "elsewhere/g1" })).toBeNull();
+ expect(reuseOf("x")).toBeNull();
+ });
+});
+
+describe("Redo from here", () => {
+ const review: RemovalReview = reviewOfRun(run, reuse, () => "x")!.review;
+
+ it("locks every window before it to its checkpoint and draws it with the new seed", () => {
+ expect(JSON.parse(rerollControls(review, 2, 42)!)).toEqual({
+ config_key: run.config_key,
+ windows: { "0": { seed: "904234", locked: true, record_id: "1".repeat(32) }, "1": { seed: "904235", locked: true, record_id: "2".repeat(32) }, "2": { seed: "42", locked: false } },
+ });
+ expect(JSON.parse(rerollControls(review, 0, 7)!).windows).toEqual({ "0": { seed: "7", locked: false } });
+ expect(rerollProblem(review, 1)).toBeNull();
+ expect(rerollProblem(review, 3)).toMatch(/Pick one/);
+ expect(rerollProblem(null, 0)).toMatch(/no window previews/);
+ const gap = { ...review, windows: review.windows.map((w) => (w.index === 0 ? { ...w, recordId: undefined } : w)) };
+ expect(rerollProblem(gap, 2)).toMatch(/redo from window 1/);
+ expect(rerollControls(gap, 2, 1)).toBeNull();
+ });
+
+ it("the graph gets the controls, and the original run's inputs and prefix so the Relay keeps its checkpoints", async () => {
+ const controls = rerollControls(review, 1, 42)!;
+ const prep = (extra: Record<string, unknown>) =>
+ prepareWorkflow(H3_REMOVAL_WORKFLOW, { video: "new_fit.mp4", images: ["new_clean.png"], prompt: "the man", seed: 904234, extra } as GenInput, { generationId: "g2", op: "remove-object", upload: async (_d, _t, n) => n });
+ const r = await prep({ [REVIEW_EXTRA.controls]: controls, [REVIEW_EXTRA.reuse]: reuse });
+ const wf = r.workflow as Record<string, { inputs: Record<string, unknown> }>;
+ expect(wf.review.inputs.window_controls).toBe(controls);
+ expect([wf.source.inputs.file, wf.anchor.inputs.image, wf.save.inputs.filename_prefix, wf.plan.inputs.seed]).toEqual([reuse.video, reuse.image, reuse.prefix, 904234]);
+ expect(r.meta.reviewInputs).toEqual(reuse);
+ // A first run: its own inputs and prefix are what a later reroll sends again.
+ const first = await prep({});
+ expect((first.workflow as Record<string, { inputs: Record<string, unknown> }>).review.inputs.window_controls).toBe("{}");
+ expect(first.meta.reviewInputs).toEqual({ video: "new_fit.mp4", image: "new_clean.png", prefix: "fuobe/g2" });
+ // Never another run's files for an account's run.
+ const account = await runAsTenant({ kind: "account", id: "acc1" }, () => prep({ [REVIEW_EXTRA.reuse]: reuse }));
+ expect((account.workflow as Record<string, { inputs: Record<string, unknown> }>).source.inputs.file).toBe("new_fit.mp4");
+ });
+});
diff --git a/tests/public-signup.test.ts b/tests/public-signup.test.ts
index 26b9b12b..db32b305 100644
--- a/tests/public-signup.test.ts
+++ b/tests/public-signup.test.ts
@@ -240,6 +240,9 @@ describe("accounts never run on the owner's keys or GPU", () => {
// Restore & colourise (o/archive-restore): its run and its prompt writer.
"/api/restore",
"/api/restore/prompt",
+ // Remove a person on H3 (o/person-remover-plus): its mask preview and "Redo from here".
+ "/api/remove-object/preview",
+ "/api/remove-object/reroll",
]) {
const r = proxy(req(p, { method: "POST", cookie }));
expect(r.status, p).toBe(403);
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 08e7a621..5823395a 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "generatedAt": "2026-11-01T22:02:19.203Z",
+ "generatedAt": "2026-11-02T01:07:55.535Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",
@@ -19695,6 +19695,12 @@
"node": "save",
"input": "filename_prefix"
}
+ ],
+ "windowControls": [
+ {
+ "node": "review",
+ "input": "window_controls"
+ }
]
},
"outputs": [
@@ -19707,10 +19713,11 @@
"steps": 12,
"loraStrength": 1,
"maskGrow": 5,
- "maskPrompt": "person",
"windowFrames": "22",
+ "maskPrompt": "person",
"historyFrames": "18",
- "lora": "H3-Person-Remover-V1.safetensors"
+ "lora": "H3-Person-Remover-V1.safetensors",
+ "windowControls": "{}"
},
"limits": {
"maxDurationSec": 60,
@@ -19762,9 +19769,68 @@
],
"vramGb": 24,
"license": "MiniMax H3 Community License (H3 Ref2VA, its video and audio VAEs, the packaged Qwen3-VL text encoder, Akatz Labs' Person Remover V1 LoRA): territory EXCLUDES the US, the EU, the UK and South Korea; commercial use above US$20M yearly revenue needs MiniMax's written authorization; show \"MiniMax H3\" on the product's interface; no outputs used to improve other AI models · Qwen3-VL-32B base Apache-2.0 · SAM 3.1 under Meta's SAM License (commercial use allowed under its terms) · H3 Relay nodes GPL-3.0 (Sendy Software LLC and contributors; vendored Context Loop and Spectrum GPL-3.0); the graph is H3 Relay's example workflow (GPL-3.0 repository)",
- "validated": false,
- "notes": "H3 Relay's toolkit H3-Person-Removal.api.json at e2a7665b (Akatz Labs' tool ships the same file). Changed: the clean first frame goes through an ImageScale (centre crop) to the video's exact size, so an edit that came back a little larger or smaller still fits; SAM 3.1's words default to \"person\"; the save prefix. video = the part already fitted to 24 fps on the 32-pixel grid (oss-fit-clip), image = the clean first frame (the app makes it with Qwen-Image-Edit from the part's first frame). 22-frame windows with 18 of history, 12 steps, er_sde / simple, CFG 1, LoRA 1.0, mask grown 5 px, seed 904234 by default (Akatz's settings). The output is silent: the app puts the clip's sound back. Needs the h3-relay pack (H3_RELAY=1) and FFmpeg.",
- "validationError": "HTTP 400: missing_node_type: Node 'H3RelayAppendWindow' not found. The custom node may not be installed. (Node ID '#append')"
+ "validated": true,
+ "notes": "H3 Relay's toolkit H3-Person-Removal.api.json at e2a7665b (Akatz Labs' tool ships the same file). Changed: the clean first frame goes through an ImageScale (centre crop) to the video's exact size, so an edit that came back a little larger or smaller still fits; SAM 3.1's words default to \"person\"; the save prefix. video = the part already fitted to 24 fps on the 32-pixel grid (oss-fit-clip), image = the clean first frame (the app makes it with Qwen-Image-Edit from the part's first frame). 22-frame windows with 18 of history, 12 steps, er_sde / simple, CFG 1, LoRA 1.0, mask grown 5 px, seed 904234 by default (Akatz's settings). The output is silent: the app puts the clip's sound back. Needs the h3-relay pack (H3_RELAY=1) and FFmpeg. windowControls = H3 Relay's Review Windows controls (originals o/person-remover-plus): {config_key, windows: {index: {seed, locked, record_id}}}; locked windows come back exactly from the checkpoints the Relay keeps in ComfyUI's output/__h3_removal_cache, the first unlocked one is drawn again with its seed (Redo from here). The provider reads the run's window previews from /h3_relay/removal/previews."
+ },
+ {
+ "id": "video-person-remove-h3-mask",
+ "title": "Remove a person, mask first: SAM 3.1 finds who you name, thresholds and grows the mask and fills it green over the clip, as H3 Person Removal sees it (core nodes)",
+ "capability": "person-mask",
+ "file": "video-person-remove-h3-mask.json",
+ "source": "hand-built (scripts/comfy/hand-built/video-person-remove-h3-mask.json)",
+ "bindings": {
+ "video": [
+ {
+ "node": "source",
+ "input": "file"
+ }
+ ],
+ "maskPrompt": [
+ {
+ "node": "subject",
+ "input": "text"
+ }
+ ],
+ "maskGrow": [
+ {
+ "node": "grow_mask",
+ "input": "expand"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "save",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "save",
+ "kind": "video"
+ }
+ ],
+ "defaults": {
+ "maskGrow": 5,
+ "maskPrompt": "person"
+ },
+ "limits": {
+ "maxDurationSec": 10,
+ "maxFrames": 240
+ },
+ "models": [
+ {
+ "file": "sam3.1_multiplex_fp16.safetensors",
+ "folder": "checkpoints",
+ "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/7bb8374780a725b4353ed31f3a9395c9742b5621/checkpoints/sam3.1_multiplex_fp16.safetensors",
+ "sizeGb": 1.75
+ }
+ ],
+ "customNodes": [],
+ "vramGb": 6,
+ "license": "SAM 3.1 under Meta's SAM License (commercial use allowed under its terms); the chain is H3 Relay's Person Removal example (GPL-3.0 repository)",
+ "validated": true,
+ "notes": "The SAM 3.1 part of video-person-remove-h3-relay, node for node (detect 0.4 with 2 refinements, track 0.5 with 1 object and detection every 12 frames, threshold 0.5, grow maskGrow px, green 0x00FF00), saved as a video instead of sampled. video = the first seconds of the part, fitted to 24 fps on the 32-pixel grid like the removal (oss-fit-clip). Needs nothing but SAM 3.1."
},
{
"id": "video-character-swap-h3-segment",
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index b9fb1c3a..5ffd8f2b 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -4088,6 +4088,69 @@
"essentials_category": "Video Tools",
"has_intermediate_output": false
},
+ "CropFuobeLive": {
+ "input": {
+ "required": {
+ "image": [
+ "IMAGE"
+ ],
+ "context": [
+ "FLOAT",
+ {
+ "default": 1.6,
+ "min": 1,
+ "max": 4,
+ "step": 0.1
+ }
+ ],
+ "multiple": [
+ "INT",
+ {
+ "default": 32,
+ "min": 8,
+ "max": 128,
+ "step": 8
+ }
+ ]
+ },
+ "optional": {
+ "mask_image": [
+ "IMAGE"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "image",
+ "context",
+ "multiple"
+ ],
+ "optional": [
+ "mask_image"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE",
+ "FUOBE_BOX"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "image",
+ "box"
+ ],
+ "name": "CropFuobeLive",
+ "display_name": "Crop Around Region (Fuobe live)",
+ "description": "",
+ "python_module": "custom_nodes.fuobe-live",
+ "category": "fuobe/live",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
"CustomCombo": {
"input": {
"required": {
@@ -7172,247 +7235,1861 @@
"essentials_category": null,
"has_intermediate_output": false
},
- "H3CharacterSwapAssemble": null,
- "H3CharacterSwapController": null,
- "H3CharacterSwapExpandMask": null,
- "H3CharacterSwapModels": null,
- "H3CharacterSwapPrepareVideo": null,
- "H3CharacterSwapRecoverMasks": null,
- "H3CharacterSwapSelectSubject": null,
- "H3CharacterSwapSettings": null,
- "H3CharacterSwapShot": null,
- "H3CharacterSwapWindowPlan": null,
- "H3RelayAppendWindow": null,
- "H3RelayApplyEditMask": null,
- "H3RelayApplyHistory": null,
- "H3RelayExpandMask": null,
- "H3RelayFinishWindows": null,
- "H3RelayPrepareSource": null,
- "H3RelayRecoverMasks": null,
- "H3RelayReviewWindows": null,
- "H3RelaySamplingMemory": null,
- "H3RelaySelectMask": null,
- "H3RelayTextMemory": null,
- "H3RelayWindowInputs": null,
- "H3RelayWindowPlan": null,
- "H3SLAAttention": {
+ "H3CharacterSwapAssemble": {
"input": {
"required": {
- "model": [
- "MODEL",
- {
- "tooltip": "MODEL,"
- }
- ],
- "sparsity_ratio": [
- "FLOAT",
- {
- "tooltip": "Fraction of key blocks skipped. 0.85 is the shipped default and what the SLA turbo LoRA was distilled against; 0.90 is the value validated here and is ~15% faster. Sparsity did NOT turn out to drive the speech artefacts on H3 -- step count did, so use 6 steps rather than lowering this. Break-even is about 0.60 -- below that this kernel is SLOWER than dense attention,0.0 disables sparsity without removing the node.",
- "default": 0.8,
- "min": 0,
- "max": 0.95,
- "step": 0.05,
- "round": false
- }
- ],
- "block_size": [
- "COMBO",
- {
- "tooltip": "How many sequence tokens share one key selection. Unrelated to the model's 128-wide heads. This matters far more for audio than video: H3 packs audio at 80 rows per second, so a 128-row block forces 1.6 s of audio down one attention pattern, while the same 128 rows are only 3% of a video frame. Speech came out robotic at 128 and clean at 64, for about 2% more time -- halving the block doubles the block count, so the attention work is identical and only the routing gets finer. Use 128 only if you generate without meaningful audio. Coming down to 32 has increased the quality even further for marginal slowdown ",
- "default": "32",
- "multiselect": false,
- "options": [
- "32",
- "64",
- "128"
- ]
- }
- ]
- },
- "optional": {
- "min_seq_len": [
- "INT",
- {
- "tooltip": "Sequences shorter than this stay dense. Guards two things: the short text-refiner attention, which must never be sparsified, and low-resolution or short clips, where block selection would cost more than it saves. Lower it only if you know your sequence is long enough to benefit.",
- "default": 12228,
- "min": 0,
- "max": 1000000,
- "step": 1024
- }
- ],
- "dense_last_steps": [
- "INT",
- {
- "tooltip": "Run the last N sampling steps at full attention. 0 matches the turbo LoRA's original distillation setup exactly. 1 costs a little speed and can recover fine detail, since the final step's error is the one you actually see. Stacks with dense_steps below rather than replacing it.",
- "default": 0,
- "min": 0,
- "max": 8
- }
- ],
- "protect_audio": [
- "BOOLEAN",
- {
- "tooltip": "Always attend blocks overlapping actual language tokens, target audio, and audio-reference segments. Visual-reference blocks are controlled separately. Disable only for turbo-style uniform sparsity; testing found partial or unprotected audio unstable for very little speed gain.",
- "default": false,
- "label_on": "protect",
- "label_off": "uniform (turbo parity)"
- }
+ "state": [
+ "H3_RELAY_STATE"
],
- "enabled": [
- "BOOLEAN",
- {
- "tooltip": "Turn off to pass the model straight through, for a like-for-like speed baseline without rewiring.",
- "default": true,
- "label_on": "sparse",
- "label_off": "dense (bypass)"
- }
+ "shot": [
+ "H3_RELAY_SHOT"
],
- "dense_steps": [
+ "filename_prefix": [
"STRING",
{
- "tooltip": "Explicit 0-based step indices to force dense, on top of dense_last_steps -- e.g. '0,1' or '0-2'. Early steps set global composition and prompt adherence, so keeping just those exact and sparsifying the rest can fix prompt-following regressions without paying for full attention on every step. Blank = none.",
- "default": "1",
- "multiline": false
- }
- ],
- "dense_backend": [
- "COMBO",
- {
- "tooltip": "Attention kernel used on every dense fall-through (short sequences, dense_last_steps, dense_steps). 'comfy_kitchen' (default, Comfy Kitchen int8) is fast enough on the handful of dense steps this node runs to be worth its precision tradeoff there. 'pytorch' pins the plain reference kernel instead if you want zero quantization anywhere in the dense path, at real cost to dense-step speed -- dense steps are the ones this node already decided must be exact, so that's the safest choice if you're chasing maximum quality over speed there. The 'sage:*' modes match an existing sage-attention kernel dropdown one-for-one -- 'sage:auto' lets the sageattention package pick; the rest pin a specific kernel + pv_accum_dtype: fp16_cuda uses fp32 accum (safest), fp8_cuda uses fp32+fp32 (safest of the fp8 pair), fp8_cuda++ uses fp32+fp16 (faster, more overflow-prone -- try this first if fp8_cuda works but you want more speed). Needs the sageattention package installed; falls back to whatever's already active with a logged warning if it isn't, or if a specific kernel is missing from your installed version. 'auto' restores the old behaviour of using whatever backend is already active globally. The sparse path is unaffected by this setting either way -- it never goes through backend selection at all.",
- "default": "comfy_kitchen",
- "multiselect": false,
- "options": [
- "pytorch",
- "comfy_kitchen",
- "sage:auto",
- "sage:qk_int8_pv_fp16_cuda",
- "sage:qk_int8_pv_fp16_triton",
- "sage:qk_int8_pv_fp8_cuda",
- "sage:qk_int8_pv_fp8_cuda++",
- "auto"
- ]
- }
- ],
- "disable_fp16_accum": [
- "BOOLEAN",
- {
- "tooltip": "Force off the fp16/bf16 reduced-precision matmul reduction path for this model's sampling run, regardless of the global --fast fp16_accumulation flag. Measured to cost quality on H3 with no throughput gain. Turn off only to A/B against the global flag.",
- "default": true,
- "label_on": "disabled (recommended)",
- "label_off": "follow --fast"
- }
- ],
- "stabilize_motion": [
- "BOOLEAN",
- {
- "tooltip": "Bias each layer's block selection toward what it picked last step, so a near-tie between two blocks doesn't flip for no reason and show up as a faint double-exposure on fast motion. Only target-video query rows are stabilized; text and audio choices remain step-local. It is a fix for that one specific symptom, not a general quality dial. - Uses more Vram ",
- "default": false,
- "label_on": "on",
- "label_off": "off"
- }
- ],
- "reference_protection": [
- "COMBO",
- {
- "display_name": "Protect Vid/Ref",
- "tooltip": "Protect Image/Video Reference. Heavy Enforcement guarantees every Qwen vision-token, conditioning/image-reference, and video-reference block, matching the broad legacy prefix protection -- this is a reinforcement of those blocks, not a protection tuned for reference quality, and is most likely unusable with max ref size mode. Light uses fixed 0.85 reference sparsity and guarantees the best-scoring 15% of each visual-reference range. Off adds no special quota; references still participate in ordinary top-k. Default Off preserves the precise audio patch's fastest behaviour.",
- "default": "Off",
- "multiselect": false,
- "options": [
- "Heavy Enforcement",
- "Light",
- "Off"
- ]
- }
- ],
- "tail_correction": [
- "BOOLEAN",
- {
- "tooltip": "Instead of a hard zero for every key block topk left out, fold in one pooled term standing in for all of them, so nothing leaves the softmax -- same idea as a widely-used block-sparse kernel's tail handling. Scored from the same pooled centroids selection already computes, so the only added cost is one more mean-pool of V plus a small reduction per call, not a second attention pass. Should help most at high sparsity, where the discarded tail is largest. Off by default: new, and its effect on H3 output quality specifically hasn't been validated the way sparsity_ratio's defaults have -- test before trusting it in a real render.",
- "default": false,
- "label_on": "on (experimental)",
- "label_off": "off"
- }
- ],
- "use_int8_qk": [
- "BOOLEAN",
- {
- "tooltip": "Quantize Q and K to int8 (per-token, dynamic scale) before the QK dot product on the selected topk blocks -- PV stays full precision (the mirror use_int8_pv toggle was removed from this node: its hidden widget could still be converted to an input socket and connected, which broke the node -- PV quantization is no longer exposed here). This is SageAttention's qk_int8_pv_fp16 split, not full int8 attention, and it's a different lever from dense_backend above: that setting only affects dense fall-through steps, this affects the sparse compute itself, on every sparse step. Ignored entirely when engine is comfy_kitchen, which quantizes internally regardless. UNTESTED ON HARDWARE: the quantize/dequantize math checks out against exact fp32 scores in isolation, but real speed, launch stability, and output quality on H3 have not been measured on a GPU. Try it against a known-good render before trusting it, and expect to possibly hit a launch failure on some GPU/Triton combinations before it's been shaken out.",
- "default": true,
- "label_on": "on (experimental)",
- "label_off": "off"
- }
- ],
- "engine": [
- "COMBO",
- {
- "tooltip": "Which attention implementation runs the sparse path. triton (default) is this node pack's own kernel -- every other widget above applies to it fully. comfy_kitchen instead calls comfy_kitchen's real compiled sol_attn kernel (Comfy-Org/ComfyUI PR #16072, needs comfy-kitchen>=0.2.32 installed): genuine CUDA int8 compute and a built-in pooled tail term, but it can only express ONE contiguous protected range, has no reference-quota tier, and has no cross-step stabilize_motion -- reference_protection, multi-span protect_ranges, and stabilize_motion are silently disabled (one-time log warning each) rather than approximated, and tail_correction/use_int8_qk above are ignored since the real kernel quantizes internally regardless, but now honours tail_correction's on/off setting rather than always applying it. Both fall back to dense the same as any other kernel failure if their kernel is unavailable or throws.",
- "default": "comfy_kitchen",
- "multiselect": false,
- "options": [
- "triton",
- "comfy_kitchen"
- ]
+ "default": "character-swap"
}
]
}
},
"input_order": {
"required": [
- "model",
- "sparsity_ratio",
- "block_size"
- ],
- "optional": [
- "min_seq_len",
- "dense_last_steps",
- "protect_audio",
- "enabled",
- "dense_steps",
- "dense_backend",
- "disable_fp16_accum",
- "stabilize_motion",
- "reference_protection",
- "tail_correction",
- "use_int8_qk",
- "engine"
+ "state",
+ "shot",
+ "filename_prefix"
]
},
"is_input_list": false,
"output": [
- "MODEL"
+ "IMAGE",
+ "AUDIO",
+ "STRING"
],
"output_is_list": [
+ false,
+ false,
false
],
"output_name": [
- "MODEL"
- ],
- "output_tooltips": [
- null
+ "generated_frames",
+ "source_audio",
+ "report"
],
- "output_matchtypes": null,
- "name": "H3SLAAttention",
- "display_name": "H3 SLA Attention",
- "description": "Block-sparse attention for MiniMax-H3, matching the inference sequences benefit most, so the gain grows with resolution and duration; short ones fall back to dense automatically.",
- "python_module": "custom_nodes.plaguekind-nodes",
- "category": "PlagueKind/model_patches/minimax",
- "output_node": false,
- "deprecated": false,
- "experimental": false,
- "dev_only": false,
- "api_node": false,
- "price_badge": null,
- "search_aliases": null,
- "essentials_category": null,
- "has_intermediate_output": false
+ "name": "H3CharacterSwapAssemble",
+ "display_name": "H3 Relay · Save Video with Source Audio",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap",
+ "output_node": true,
+ "has_intermediate_output": false,
+ "search_aliases": []
},
- "Hunyuan3Dv2Conditioning": {
+ "H3CharacterSwapController": {
"input": {
"required": {
- "clip_vision_output": [
- "CLIP_VISION_OUTPUT",
- {}
+ "models": [
+ "H3_RELAY_MODELS"
+ ],
+ "shot": [
+ "H3_RELAY_SHOT"
+ ],
+ "plan": [
+ "H3_RELAY_PLAN"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "models",
+ "shot",
+ "plan"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "H3_RELAY_STATE",
+ "H3_RELAY_SHOT",
+ "STRING"
+ ],
+ "output_is_list": [
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "completed_windows",
+ "shot",
+ "status"
+ ],
+ "name": "H3CharacterSwapController",
+ "display_name": "H3 Relay · Generate Character Swap",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3CharacterSwapExpandMask": {
+ "input": {
+ "required": {
+ "masks": [
+ "MASK"
+ ],
+ "images": [
+ "IMAGE"
+ ],
+ "source_frames": [
+ "INT",
+ {
+ "default": 120,
+ "min": 1
+ }
+ ],
+ "expansion_px": [
+ "INT",
+ {
+ "default": 64,
+ "min": 0,
+ "max": 256,
+ "tooltip": "Outward Euclidean radius in prepared-video pixels; identical to the app's mask expansion."
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "masks",
+ "images",
+ "source_frames",
+ "expansion_px"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MASK",
+ "IMAGE"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "generation_mask",
+ "mask_overlay"
+ ],
+ "name": "H3CharacterSwapExpandMask",
+ "display_name": "H3 · Expand Person Mask",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap/masks",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3CharacterSwapModels": {
+ "input": {
+ "required": {
+ "model": [
+ "MODEL"
+ ],
+ "clip": [
+ "CLIP"
+ ],
+ "video_vae": [
+ "VAE"
+ ],
+ "audio_vae": [
+ "VAE"
+ ]
+ },
+ "hidden": {
+ "unique_id": "UNIQUE_ID",
+ "execution_prompt": "PROMPT"
+ }
+ },
+ "input_order": {
+ "required": [
+ "model",
+ "clip",
+ "video_vae",
+ "audio_vae"
+ ],
+ "hidden": [
+ "unique_id",
+ "execution_prompt"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "H3_RELAY_MODELS"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "H3_RELAY_MODELS"
+ ],
+ "name": "H3CharacterSwapModels",
+ "display_name": "H3 Relay · Character Swap Models",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3CharacterSwapPrepareVideo": {
+ "input": {
+ "required": {
+ "video": [
+ "VIDEO"
+ ],
+ "resolution": [
+ [
+ "480",
+ "768"
+ ],
+ {
+ "default": "480",
+ "tooltip": "480 = up to 0.5 megapixels; 768 = up to 1.0 megapixel. Preserve aligned sources already within the budget; otherwise resize near the source aspect ratio and center-crop to the 32-pixel grid."
+ }
+ ]
+ },
+ "optional": {
+ "duration_seconds": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 149.66,
+ "step": 0.1,
+ "tooltip": "0 = full clip. Otherwise trim to the requested duration before padding to the H3 frame grid: 5 seconds = 120 source frames, padded to 124, then trimmed back."
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "video",
+ "resolution"
+ ],
+ "optional": [
+ "duration_seconds"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE",
+ "AUDIO",
+ "INT",
+ "INT",
+ "INT",
+ "INT",
+ "FLOAT",
+ "STRING",
+ "VIDEO"
+ ],
+ "output_is_list": [
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "reference_frames",
+ "source_audio",
+ "width",
+ "height",
+ "h3_length",
+ "source_frames",
+ "fps",
+ "summary",
+ "prepared_video"
+ ],
+ "name": "H3CharacterSwapPrepareVideo",
+ "display_name": "H3 · Prepare Source Video",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3CharacterSwapRecoverMasks": {
+ "input": {
+ "required": {
+ "masks": [
+ "MASK"
+ ],
+ "images": [
+ "IMAGE"
+ ],
+ "model": [
+ "MODEL"
+ ],
+ "conditioning": [
+ "CONDITIONING"
+ ],
+ "selection": [
+ "H3_SUBJECT_SELECTION"
+ ],
+ "source_frames": [
+ "INT"
+ ],
+ "recover_empty_frames": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "masks",
+ "images",
+ "model",
+ "conditioning",
+ "selection",
+ "source_frames",
+ "recover_empty_frames"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MASK",
+ "STRING"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "recovered_masks",
+ "report"
+ ],
+ "name": "H3CharacterSwapRecoverMasks",
+ "display_name": "H3CharacterSwapRecoverMasks",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap/masks",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3CharacterSwapSelectSubject": {
+ "input": {
+ "required": {
+ "masks": [
+ "MASK"
+ ],
+ "selection": [
+ [
+ "largest",
+ "leftmost",
+ "rightmost",
+ "index"
+ ]
+ ],
+ "index": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "masks",
+ "selection",
+ "index"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MASK",
+ "H3_SUBJECT_SELECTION"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "selected_mask",
+ "selection"
+ ],
+ "name": "H3CharacterSwapSelectSubject",
+ "display_name": "H3 · Select Person",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap/masks",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3CharacterSwapSettings": {
+ "input": {
+ "required": {
+ "prompt": [
+ "STRING",
+ {
+ "multiline": true,
+ "default": "Replace the selected person in <Video 1> with the character in <Picture 1>. Preserve the source performance, scene and audio timing."
+ }
+ ],
+ "seed": [
+ "INT",
+ {
+ "default": 194731,
+ "min": 0,
+ "max": 18446744073709552000
+ }
+ ],
+ "audio_guide": [
+ "BOOLEAN",
+ {
+ "default": true,
+ "tooltip": "Use the source soundtrack for reference conditioning and the frame-zero audio guide. Output keeps source audio either way."
+ }
+ ],
+ "steps": [
+ "INT",
+ {
+ "default": 8,
+ "min": 1,
+ "max": 100
+ }
+ ],
+ "cfg": [
+ "FLOAT",
+ {
+ "default": 1,
+ "min": 0,
+ "max": 20
+ }
+ ],
+ "sampler_name": [
+ "STRING",
+ {
+ "default": "er_sde"
+ }
+ ],
+ "scheduler": [
+ "STRING",
+ {
+ "default": "normal"
+ }
+ ],
+ "activation_memory_gib": [
+ "FLOAT",
+ {
+ "default": 17,
+ "min": 0,
+ "max": 128,
+ "step": 0.5,
+ "tooltip": "Estimated sampling workspace for ComfyUI memory placement; not a VRAM limit or reservation."
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "prompt",
+ "seed",
+ "audio_guide",
+ "steps",
+ "cfg",
+ "sampler_name",
+ "scheduler",
+ "activation_memory_gib"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "H3_RELAY_BODY_SETTINGS"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "H3_RELAY_BODY_SETTINGS"
+ ],
+ "name": "H3CharacterSwapSettings",
+ "display_name": "H3 · Generation Settings",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3CharacterSwapShot": {
+ "input": {
+ "required": {
+ "source_video": [
+ "VIDEO"
+ ],
+ "source": [
+ "IMAGE"
+ ],
+ "source_audio": [
+ "AUDIO"
+ ],
+ "source_frames": [
+ "INT"
+ ],
+ "fps": [
+ "FLOAT"
+ ],
+ "reference": [
+ "IMAGE"
+ ],
+ "use_anchor": [
+ "BOOLEAN",
+ {
+ "default": false
+ }
+ ],
+ "use_mask": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ],
+ "shot_id": [
+ "STRING",
+ {
+ "default": "character-swap"
+ }
+ ]
+ },
+ "optional": {
+ "anchor": [
+ "IMAGE"
+ ],
+ "body_mask": [
+ "MASK"
+ ],
+ "segment_mode": [
+ "BOOLEAN",
+ {
+ "default": false
+ }
+ ],
+ "history_file": [
+ "STRING",
+ {
+ "default": ""
+ }
+ ],
+ "segment_reference": [
+ "IMAGE"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "source_video",
+ "source",
+ "source_audio",
+ "source_frames",
+ "fps",
+ "reference",
+ "use_anchor",
+ "use_mask",
+ "shot_id"
+ ],
+ "optional": [
+ "anchor",
+ "body_mask",
+ "segment_mode",
+ "history_file",
+ "segment_reference"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "H3_RELAY_SHOT"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "H3_RELAY_SHOT"
+ ],
+ "name": "H3CharacterSwapShot",
+ "display_name": "H3 Relay · Prepare Character Swap",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3CharacterSwapWindowPlan": {
+ "input": {
+ "required": {
+ "shot": [
+ "H3_RELAY_SHOT"
+ ],
+ "settings": [
+ "H3_RELAY_BODY_SETTINGS"
+ ],
+ "window_frames": [
+ [
+ "22",
+ "39",
+ "56",
+ "73",
+ "90",
+ "107",
+ "124",
+ "141",
+ "158",
+ "175",
+ "192",
+ "209",
+ "226",
+ "243",
+ "260",
+ "277",
+ "294",
+ "311",
+ "328",
+ "345",
+ "362"
+ ],
+ {
+ "default": "124"
+ }
+ ],
+ "history_frames": [
+ [
+ "0",
+ "1",
+ "18",
+ "35",
+ "52",
+ "69",
+ "86",
+ "103",
+ "120",
+ "137",
+ "154",
+ "171",
+ "188",
+ "205",
+ "222",
+ "239",
+ "256",
+ "273",
+ "290",
+ "307",
+ "324",
+ "341"
+ ],
+ {
+ "default": "18"
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "shot",
+ "settings",
+ "window_frames",
+ "history_frames"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "H3_RELAY_PLAN",
+ "STRING"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "plan",
+ "timeline"
+ ],
+ "name": "H3CharacterSwapWindowPlan",
+ "display_name": "H3 Relay · Window Plan",
+ "description": "",
+ "python_module": "custom_nodes.h3_character_swap",
+ "category": "H3 Character Swap",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayAppendWindow": {
+ "input": {
+ "required": {
+ "frames": [
+ "IMAGE"
+ ],
+ "window": [
+ "H3_RELAY_WINDOW"
+ ]
+ },
+ "optional": {
+ "previous": [
+ "H3_RELAY_WINDOW_STATE"
+ ],
+ "audio": [
+ "AUDIO"
+ ],
+ "initial_history": [
+ "IMAGE"
+ ],
+ "initial_history_audio": [
+ "AUDIO"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "frames",
+ "window"
+ ],
+ "optional": [
+ "previous",
+ "audio",
+ "initial_history",
+ "initial_history_audio"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "H3_RELAY_WINDOW_STATE"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "H3_RELAY_WINDOW_STATE"
+ ],
+ "name": "H3RelayAppendWindow",
+ "display_name": "H3 · Append Window",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/timeline",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayApplyEditMask": {
+ "input": {
+ "required": {
+ "latent": [
+ "LATENT"
+ ],
+ "source_latent": [
+ "LATENT"
+ ],
+ "mask": [
+ "MASK"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "latent",
+ "source_latent",
+ "mask"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "LATENT"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "LATENT"
+ ],
+ "name": "H3RelayApplyEditMask",
+ "display_name": "H3 · Apply Edit Mask",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/conditioning",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayApplyHistory": {
+ "input": {
+ "required": {
+ "positive": [
+ "CONDITIONING"
+ ],
+ "latent": [
+ "LATENT"
+ ],
+ "vae": [
+ "VAE"
+ ],
+ "audio_vae": [
+ "VAE"
+ ],
+ "frames": [
+ "IMAGE"
+ ],
+ "history_frames": [
+ "INT"
+ ],
+ "first_frame_guide": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ],
+ "target_audio_guide": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ]
+ },
+ "optional": {
+ "audio": [
+ "AUDIO"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "positive",
+ "latent",
+ "vae",
+ "audio_vae",
+ "frames",
+ "history_frames",
+ "first_frame_guide",
+ "target_audio_guide"
+ ],
+ "optional": [
+ "audio"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "CONDITIONING",
+ "LATENT"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "CONDITIONING",
+ "LATENT"
+ ],
+ "name": "H3RelayApplyHistory",
+ "display_name": "H3 · Apply History",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/conditioning",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayExpandMask": {
+ "input": {
+ "required": {
+ "masks": [
+ "MASK"
+ ],
+ "images": [
+ "IMAGE"
+ ],
+ "source_frames": [
+ "INT",
+ {
+ "default": 120,
+ "min": 1
+ }
+ ],
+ "expansion_px": [
+ "INT",
+ {
+ "default": 64,
+ "min": 0,
+ "max": 256,
+ "tooltip": "Outward Euclidean radius in prepared-video pixels; identical to the app's mask expansion."
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "masks",
+ "images",
+ "source_frames",
+ "expansion_px"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MASK",
+ "IMAGE"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "generation_mask",
+ "mask_overlay"
+ ],
+ "name": "H3RelayExpandMask",
+ "display_name": "Prepare Mask Sequence (Euclidean Radius)",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/mask tools",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayFinishWindows": {
+ "input": {
+ "required": {
+ "state": [
+ "H3_RELAY_WINDOW_STATE"
+ ],
+ "audio_mode": [
+ [
+ "source",
+ "generated",
+ "none"
+ ],
+ {
+ "default": "source"
+ }
+ ]
+ },
+ "optional": {
+ "source_audio": [
+ "AUDIO"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "state",
+ "audio_mode"
+ ],
+ "optional": [
+ "source_audio"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE",
+ "AUDIO",
+ "FLOAT",
+ "STRING"
+ ],
+ "output_is_list": [
+ false,
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "frames",
+ "audio",
+ "fps",
+ "report"
+ ],
+ "name": "H3RelayFinishWindows",
+ "display_name": "H3 · Finish Windows",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/timeline",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayPrepareSource": {
+ "input": {
+ "required": {
+ "video": [
+ "VIDEO"
+ ],
+ "resolution": [
+ [
+ "480",
+ "768"
+ ],
+ {
+ "default": "480",
+ "tooltip": "Preserve aligned sources within the pixel budget; otherwise fit the H3 canvas."
+ }
+ ]
+ },
+ "optional": {
+ "duration_seconds": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 149.66,
+ "step": 0.1,
+ "tooltip": "Keep the requested source duration. Model padding is excluded from the final output. Zero keeps the full source."
+ }
+ ],
+ "missing_audio": [
+ [
+ "silence",
+ "none"
+ ],
+ {
+ "default": "silence"
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "video",
+ "resolution"
+ ],
+ "optional": [
+ "duration_seconds",
+ "missing_audio"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE",
+ "AUDIO",
+ "INT",
+ "INT",
+ "INT",
+ "INT",
+ "FLOAT",
+ "STRING",
+ "VIDEO"
+ ],
+ "output_is_list": [
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "reference_frames",
+ "source_audio",
+ "width",
+ "height",
+ "h3_length",
+ "source_frames",
+ "fps",
+ "summary",
+ "prepared_video"
+ ],
+ "name": "H3RelayPrepareSource",
+ "display_name": "H3 · Prepare Source",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/timeline",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayRecoverMasks": {
+ "input": {
+ "required": {
+ "masks": [
+ "MASK"
+ ],
+ "images": [
+ "IMAGE"
+ ],
+ "model": [
+ "MODEL"
+ ],
+ "conditioning": [
+ "CONDITIONING"
+ ],
+ "selection": [
+ "H3_SUBJECT_SELECTION"
+ ],
+ "source_frames": [
+ "INT"
+ ],
+ "recover_empty_frames": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "masks",
+ "images",
+ "model",
+ "conditioning",
+ "selection",
+ "source_frames",
+ "recover_empty_frames"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MASK",
+ "STRING"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "recovered_masks",
+ "report"
+ ],
+ "name": "H3RelayRecoverMasks",
+ "display_name": "Recover Empty SAM Frames",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/mask tools",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayReviewWindows": {
+ "input": {
+ "required": {
+ "windows": [
+ "H3_RELAY_WINDOW"
+ ],
+ "source": [
+ "IMAGE",
+ {
+ "lazy": true
+ }
+ ],
+ "anchor": [
+ "IMAGE"
+ ],
+ "window_controls": [
+ "STRING",
+ {
+ "default": "{}"
+ }
+ ]
+ },
+ "hidden": {
+ "unique_id": "UNIQUE_ID",
+ "extra_pnginfo": "EXTRA_PNGINFO",
+ "execution_prompt": "PROMPT"
+ }
+ },
+ "input_order": {
+ "required": [
+ "windows",
+ "source",
+ "anchor",
+ "window_controls"
+ ],
+ "hidden": [
+ "unique_id",
+ "extra_pnginfo",
+ "execution_prompt"
+ ]
+ },
+ "is_input_list": true,
+ "output": [
+ "H3_RELAY_WINDOW",
+ "H3_RELAY_WINDOW_STATE",
+ "INT",
+ "H3_RELAY_WINDOWS",
+ "IMAGE"
+ ],
+ "output_is_list": [
+ true,
+ false,
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "pending_list",
+ "restored_prefix",
+ "count",
+ "windows",
+ "prepared_source"
+ ],
+ "name": "H3RelayReviewWindows",
+ "display_name": "H3 · Review Windows",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/timeline",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelaySamplingMemory": {
+ "input": {
+ "required": {
+ "model": [
+ "MODEL"
+ ],
+ "latent": [
+ "LATENT"
+ ],
+ "conditioning": [
+ "CONDITIONING"
+ ],
+ "activation_memory_gib": [
+ "FLOAT",
+ {
+ "default": 17,
+ "min": 0,
+ "max": 128,
+ "step": 0.5,
+ "tooltip": "Estimated sampling workspace used by native model placement; not a GPU memory cap."
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "model",
+ "latent",
+ "conditioning",
+ "activation_memory_gib"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MODEL"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "MODEL"
+ ],
+ "name": "H3RelaySamplingMemory",
+ "display_name": "H3 Sampling Workspace",
+ "description": "Supply H3's measured activation workspace to native sampling after guides are encoded.",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/Runtime",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelaySelectMask": {
+ "input": {
+ "required": {
+ "masks": [
+ "MASK"
+ ],
+ "selection": [
+ [
+ "largest",
+ "leftmost",
+ "rightmost",
+ "index"
+ ]
+ ],
+ "index": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "masks",
+ "selection",
+ "index"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MASK",
+ "H3_SUBJECT_SELECTION"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "selected_mask",
+ "selection"
+ ],
+ "name": "H3RelaySelectMask",
+ "display_name": "Select Mask by Area or Position",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/mask tools",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayTextMemory": {
+ "input": {
+ "required": {
+ "clip": [
+ "CLIP"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "clip"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "CLIP"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "CLIP"
+ ],
+ "name": "H3RelayTextMemory",
+ "display_name": "H3 Text Stage Memory",
+ "description": "Release inactive models around native text encoding. Respects ComfyUI high-VRAM mode.",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/Runtime",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayWindowInputs": {
+ "input": {
+ "required": {
+ "source": [
+ "IMAGE"
+ ],
+ "window": [
+ "H3_RELAY_WINDOWS"
+ ],
+ "reference_history": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ],
+ "fps": [
+ "FLOAT",
+ {
+ "default": 24
+ }
+ ],
+ "history_audio_mode": [
+ [
+ "source",
+ "generated",
+ "none"
+ ],
+ {
+ "default": "source"
+ }
+ ]
+ },
+ "optional": {
+ "previous": [
+ "H3_RELAY_WINDOW_STATE"
+ ],
+ "source_audio": [
+ "AUDIO"
+ ],
+ "mask": [
+ "MASK"
+ ],
+ "anchor": [
+ "IMAGE"
+ ],
+ "initial_history": [
+ "IMAGE"
+ ],
+ "initial_history_audio": [
+ "AUDIO"
+ ],
+ "iteration_index": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0
+ }
+ ],
+ "resize_anchor": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "source",
+ "window",
+ "reference_history",
+ "fps",
+ "history_audio_mode"
+ ],
+ "optional": [
+ "previous",
+ "source_audio",
+ "mask",
+ "anchor",
+ "initial_history",
+ "initial_history_audio",
+ "iteration_index",
+ "resize_anchor"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE",
+ "MASK",
+ "AUDIO",
+ "IMAGE",
+ "AUDIO",
+ "IMAGE",
+ "AUDIO",
+ "INT",
+ "INT",
+ "INT",
+ "INT",
+ "IMAGE",
+ "H3_RELAY_WINDOW"
+ ],
+ "output_is_list": [
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "source_window",
+ "edit_mask",
+ "target_audio",
+ "history",
+ "history_audio",
+ "reference_video",
+ "reference_audio",
+ "history_frames",
+ "conditioning_length",
+ "target_frames",
+ "seed",
+ "anchor",
+ "window"
+ ],
+ "name": "H3RelayWindowInputs",
+ "display_name": "H3 · Window Inputs",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/timeline",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3RelayWindowPlan": {
+ "input": {
+ "required": {
+ "source_frames": [
+ "INT",
+ {
+ "default": 120,
+ "min": 1
+ }
+ ],
+ "window_frames": [
+ [
+ "22",
+ "39",
+ "56",
+ "73",
+ "90",
+ "107",
+ "124",
+ "141",
+ "158",
+ "175",
+ "192",
+ "209",
+ "226",
+ "243",
+ "260",
+ "277",
+ "294",
+ "311",
+ "328",
+ "345",
+ "362"
+ ],
+ {
+ "default": "124"
+ }
+ ],
+ "history_frames": [
+ [
+ "0",
+ "1",
+ "18",
+ "35",
+ "52",
+ "69",
+ "86",
+ "103",
+ "120",
+ "137",
+ "154",
+ "171",
+ "188",
+ "205",
+ "222",
+ "239",
+ "256",
+ "273",
+ "290",
+ "307",
+ "324",
+ "341"
+ ],
+ {
+ "default": "18"
+ }
+ ],
+ "seed": [
+ "INT",
+ {
+ "default": 194731,
+ "min": 0,
+ "max": 18446744073709552000
+ }
+ ],
+ "schedule": [
+ [
+ "adaptive",
+ "removal_v1",
+ "segment"
+ ],
+ {
+ "default": "adaptive"
+ }
+ ],
+ "seed_mode": [
+ [
+ "fixed",
+ "increment"
+ ],
+ {
+ "default": "fixed"
+ }
+ ]
+ },
+ "optional": {
+ "seed_overrides": [
+ "STRING",
+ {
+ "default": "{}"
+ }
+ ],
+ "initial_history": [
+ "IMAGE"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "source_frames",
+ "window_frames",
+ "history_frames",
+ "seed",
+ "schedule",
+ "seed_mode"
+ ],
+ "optional": [
+ "seed_overrides",
+ "initial_history"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "H3_RELAY_WINDOW",
+ "STRING",
+ "INT",
+ "H3_RELAY_WINDOWS"
+ ],
+ "output_is_list": [
+ true,
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "window_list",
+ "timeline",
+ "count",
+ "windows"
+ ],
+ "name": "H3RelayWindowPlan",
+ "display_name": "H3 · Plan Windows",
+ "description": "",
+ "python_module": "custom_nodes.h3-relay",
+ "category": "H3 Relay/timeline",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "H3SLAAttention": {
+ "input": {
+ "required": {
+ "model": [
+ "MODEL",
+ {
+ "tooltip": "MODEL,"
+ }
+ ],
+ "sparsity_ratio": [
+ "FLOAT",
+ {
+ "tooltip": "Fraction of key blocks skipped. 0.85 is the shipped default and what the SLA turbo LoRA was distilled against; 0.90 is the value validated here and is ~15% faster. Sparsity did NOT turn out to drive the speech artefacts on H3 -- step count did, so use 6 steps rather than lowering this. Break-even is about 0.60 -- below that this kernel is SLOWER than dense attention,0.0 disables sparsity without removing the node.",
+ "default": 0.8,
+ "min": 0,
+ "max": 0.95,
+ "step": 0.05,
+ "round": false
+ }
+ ],
+ "block_size": [
+ "COMBO",
+ {
+ "tooltip": "How many sequence tokens share one key selection. Unrelated to the model's 128-wide heads. This matters far more for audio than video: H3 packs audio at 80 rows per second, so a 128-row block forces 1.6 s of audio down one attention pattern, while the same 128 rows are only 3% of a video frame. Speech came out robotic at 128 and clean at 64, for about 2% more time -- halving the block doubles the block count, so the attention work is identical and only the routing gets finer. Use 128 only if you generate without meaningful audio. Coming down to 32 has increased the quality even further for marginal slowdown ",
+ "default": "32",
+ "multiselect": false,
+ "options": [
+ "32",
+ "64",
+ "128"
+ ]
+ }
+ ]
+ },
+ "optional": {
+ "min_seq_len": [
+ "INT",
+ {
+ "tooltip": "Sequences shorter than this stay dense. Guards two things: the short text-refiner attention, which must never be sparsified, and low-resolution or short clips, where block selection would cost more than it saves. Lower it only if you know your sequence is long enough to benefit.",
+ "default": 12228,
+ "min": 0,
+ "max": 1000000,
+ "step": 1024
+ }
+ ],
+ "dense_last_steps": [
+ "INT",
+ {
+ "tooltip": "Run the last N sampling steps at full attention. 0 matches the turbo LoRA's original distillation setup exactly. 1 costs a little speed and can recover fine detail, since the final step's error is the one you actually see. Stacks with dense_steps below rather than replacing it.",
+ "default": 0,
+ "min": 0,
+ "max": 8
+ }
+ ],
+ "protect_audio": [
+ "BOOLEAN",
+ {
+ "tooltip": "Always attend blocks overlapping actual language tokens, target audio, and audio-reference segments. Visual-reference blocks are controlled separately. Disable only for turbo-style uniform sparsity; testing found partial or unprotected audio unstable for very little speed gain.",
+ "default": false,
+ "label_on": "protect",
+ "label_off": "uniform (turbo parity)"
+ }
+ ],
+ "enabled": [
+ "BOOLEAN",
+ {
+ "tooltip": "Turn off to pass the model straight through, for a like-for-like speed baseline without rewiring.",
+ "default": true,
+ "label_on": "sparse",
+ "label_off": "dense (bypass)"
+ }
+ ],
+ "dense_steps": [
+ "STRING",
+ {
+ "tooltip": "Explicit 0-based step indices to force dense, on top of dense_last_steps -- e.g. '0,1' or '0-2'. Early steps set global composition and prompt adherence, so keeping just those exact and sparsifying the rest can fix prompt-following regressions without paying for full attention on every step. Blank = none.",
+ "default": "1",
+ "multiline": false
+ }
+ ],
+ "dense_backend": [
+ "COMBO",
+ {
+ "tooltip": "Attention kernel used on every dense fall-through (short sequences, dense_last_steps, dense_steps). 'comfy_kitchen' (default, Comfy Kitchen int8) is fast enough on the handful of dense steps this node runs to be worth its precision tradeoff there. 'pytorch' pins the plain reference kernel instead if you want zero quantization anywhere in the dense path, at real cost to dense-step speed -- dense steps are the ones this node already decided must be exact, so that's the safest choice if you're chasing maximum quality over speed there. The 'sage:*' modes match an existing sage-attention kernel dropdown one-for-one -- 'sage:auto' lets the sageattention package pick; the rest pin a specific kernel + pv_accum_dtype: fp16_cuda uses fp32 accum (safest), fp8_cuda uses fp32+fp32 (safest of the fp8 pair), fp8_cuda++ uses fp32+fp16 (faster, more overflow-prone -- try this first if fp8_cuda works but you want more speed). Needs the sageattention package installed; falls back to whatever's already active with a logged warning if it isn't, or if a specific kernel is missing from your installed version. 'auto' restores the old behaviour of using whatever backend is already active globally. The sparse path is unaffected by this setting either way -- it never goes through backend selection at all.",
+ "default": "comfy_kitchen",
+ "multiselect": false,
+ "options": [
+ "pytorch",
+ "comfy_kitchen",
+ "sage:auto",
+ "sage:qk_int8_pv_fp16_cuda",
+ "sage:qk_int8_pv_fp16_triton",
+ "sage:qk_int8_pv_fp8_cuda",
+ "sage:qk_int8_pv_fp8_cuda++",
+ "auto"
+ ]
+ }
+ ],
+ "disable_fp16_accum": [
+ "BOOLEAN",
+ {
+ "tooltip": "Force off the fp16/bf16 reduced-precision matmul reduction path for this model's sampling run, regardless of the global --fast fp16_accumulation flag. Measured to cost quality on H3 with no throughput gain. Turn off only to A/B against the global flag.",
+ "default": true,
+ "label_on": "disabled (recommended)",
+ "label_off": "follow --fast"
+ }
+ ],
+ "stabilize_motion": [
+ "BOOLEAN",
+ {
+ "tooltip": "Bias each layer's block selection toward what it picked last step, so a near-tie between two blocks doesn't flip for no reason and show up as a faint double-exposure on fast motion. Only target-video query rows are stabilized; text and audio choices remain step-local. It is a fix for that one specific symptom, not a general quality dial. - Uses more Vram ",
+ "default": false,
+ "label_on": "on",
+ "label_off": "off"
+ }
+ ],
+ "reference_protection": [
+ "COMBO",
+ {
+ "display_name": "Protect Vid/Ref",
+ "tooltip": "Protect Image/Video Reference. Heavy Enforcement guarantees every Qwen vision-token, conditioning/image-reference, and video-reference block, matching the broad legacy prefix protection -- this is a reinforcement of those blocks, not a protection tuned for reference quality, and is most likely unusable with max ref size mode. Light uses fixed 0.85 reference sparsity and guarantees the best-scoring 15% of each visual-reference range. Off adds no special quota; references still participate in ordinary top-k. Default Off preserves the precise audio patch's fastest behaviour.",
+ "default": "Off",
+ "multiselect": false,
+ "options": [
+ "Heavy Enforcement",
+ "Light",
+ "Off"
+ ]
+ }
+ ],
+ "tail_correction": [
+ "BOOLEAN",
+ {
+ "tooltip": "Instead of a hard zero for every key block topk left out, fold in one pooled term standing in for all of them, so nothing leaves the softmax -- same idea as a widely-used block-sparse kernel's tail handling. Scored from the same pooled centroids selection already computes, so the only added cost is one more mean-pool of V plus a small reduction per call, not a second attention pass. Should help most at high sparsity, where the discarded tail is largest. Off by default: new, and its effect on H3 output quality specifically hasn't been validated the way sparsity_ratio's defaults have -- test before trusting it in a real render.",
+ "default": false,
+ "label_on": "on (experimental)",
+ "label_off": "off"
+ }
+ ],
+ "use_int8_qk": [
+ "BOOLEAN",
+ {
+ "tooltip": "Quantize Q and K to int8 (per-token, dynamic scale) before the QK dot product on the selected topk blocks -- PV stays full precision (the mirror use_int8_pv toggle was removed from this node: its hidden widget could still be converted to an input socket and connected, which broke the node -- PV quantization is no longer exposed here). This is SageAttention's qk_int8_pv_fp16 split, not full int8 attention, and it's a different lever from dense_backend above: that setting only affects dense fall-through steps, this affects the sparse compute itself, on every sparse step. Ignored entirely when engine is comfy_kitchen, which quantizes internally regardless. UNTESTED ON HARDWARE: the quantize/dequantize math checks out against exact fp32 scores in isolation, but real speed, launch stability, and output quality on H3 have not been measured on a GPU. Try it against a known-good render before trusting it, and expect to possibly hit a launch failure on some GPU/Triton combinations before it's been shaken out.",
+ "default": true,
+ "label_on": "on (experimental)",
+ "label_off": "off"
+ }
+ ],
+ "engine": [
+ "COMBO",
+ {
+ "tooltip": "Which attention implementation runs the sparse path. triton (default) is this node pack's own kernel -- every other widget above applies to it fully. comfy_kitchen instead calls comfy_kitchen's real compiled sol_attn kernel (Comfy-Org/ComfyUI PR #16072, needs comfy-kitchen>=0.2.32 installed): genuine CUDA int8 compute and a built-in pooled tail term, but it can only express ONE contiguous protected range, has no reference-quota tier, and has no cross-step stabilize_motion -- reference_protection, multi-span protect_ranges, and stabilize_motion are silently disabled (one-time log warning each) rather than approximated, and tail_correction/use_int8_qk above are ignored since the real kernel quantizes internally regardless, but now honours tail_correction's on/off setting rather than always applying it. Both fall back to dense the same as any other kernel failure if their kernel is unavailable or throws.",
+ "default": "comfy_kitchen",
+ "multiselect": false,
+ "options": [
+ "triton",
+ "comfy_kitchen"
+ ]
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "model",
+ "sparsity_ratio",
+ "block_size"
+ ],
+ "optional": [
+ "min_seq_len",
+ "dense_last_steps",
+ "protect_audio",
+ "enabled",
+ "dense_steps",
+ "dense_backend",
+ "disable_fp16_accum",
+ "stabilize_motion",
+ "reference_protection",
+ "tail_correction",
+ "use_int8_qk",
+ "engine"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MODEL"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "MODEL"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "H3SLAAttention",
+ "display_name": "H3 SLA Attention",
+ "description": "Block-sparse attention for MiniMax-H3, matching the inference sequences benefit most, so the gain grows with resolution and duration; short ones fall back to dense automatically.",
+ "python_module": "custom_nodes.plaguekind-nodes",
+ "category": "PlagueKind/model_patches/minimax",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "Hunyuan3Dv2Conditioning": {
+ "input": {
+ "required": {
+ "clip_vision_output": [
+ "CLIP_VISION_OUTPUT",
+ {}
]
}
},
@@ -10376,72 +12053,307 @@
"output_name": [
"MODEL"
],
- "name": "Krea2EditModelPatch",
- "display_name": "Krea2 Edit (source patch)",
- "description": "Adds the krea2_edit in-context source-preservation path (source latent as frame=1 tokens) to a Krea2 model.",
- "python_module": "custom_nodes.comfyui-krea2edit",
- "category": "krea2edit",
+ "name": "Krea2EditModelPatch",
+ "display_name": "Krea2 Edit (source patch)",
+ "description": "Adds the krea2_edit in-context source-preservation path (source latent as frame=1 tokens) to a Krea2 model.",
+ "python_module": "custom_nodes.comfyui-krea2edit",
+ "category": "krea2edit",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "Krea2OstrisEditModelPatch": null,
+ "LTXAVTextEncoderLoader": {
+ "input": {
+ "required": {
+ "text_encoder": [
+ "COMBO",
+ {
+ "multiselect": false,
+ "options": []
+ }
+ ],
+ "ckpt_name": [
+ "COMBO",
+ {
+ "multiselect": false,
+ "options": []
+ }
+ ],
+ "device": [
+ "COMBO",
+ {
+ "advanced": true,
+ "multiselect": false,
+ "options": [
+ "default",
+ "cpu"
+ ]
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "text_encoder",
+ "ckpt_name",
+ "device"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "CLIP"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "CLIP"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "LTXAVTextEncoderLoader",
+ "display_name": "Load LTXV Audio Text Encoder",
+ "description": "Recipes:\nltxav: gemma 3 12B or matching gemma 4 model",
+ "python_module": "comfy_extras.nodes_lt_audio",
+ "category": "model/loaders",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "LTXAddVideoICLoRAGuide": {
+ "input": {
+ "required": {
+ "positive": [
+ "CONDITIONING",
+ {}
+ ],
+ "negative": [
+ "CONDITIONING",
+ {}
+ ],
+ "vae": [
+ "VAE",
+ {}
+ ],
+ "latent": [
+ "LATENT",
+ {
+ "tooltip": "Video-only latent to condition. Must be a 5D video latent (batch, channels, frames, height, width)."
+ }
+ ],
+ "image": [
+ "IMAGE",
+ {}
+ ],
+ "frame_idx": [
+ "INT",
+ {
+ "tooltip": "RoPE position of the reference, in pixel frames.\n0 aligns the reference with the generated clip. Use for video references.\n>0 places the reference at a specific pixel-frame position in the clip.\n-1 places the reference outside the generated frame range, while still using it for attention conditioning. Use for single-image references.\nFor multi-frame references, >0 values are rounded down to 1 mod 8.",
+ "default": 0,
+ "min": -9999,
+ "max": 9999
+ }
+ ],
+ "strength": [
+ "FLOAT",
+ {
+ "default": 1,
+ "min": 0,
+ "max": 1,
+ "step": 0.01
+ }
+ ],
+ "latent_downscale_factor": [
+ "FLOAT",
+ {
+ "tooltip": "For IC-LoRA on small grid. 1 means original size, 2 means half size, 3 means third, etc.",
+ "default": 1,
+ "min": 1,
+ "max": 10,
+ "step": 1
+ }
+ ],
+ "crop": [
+ "COMBO",
+ {
+ "tooltip": "Crop mode when resizing. 'center' crops to fit, 'disabled' stretches to fit.",
+ "default": "disabled",
+ "multiselect": false,
+ "options": [
+ "disabled",
+ "center"
+ ]
+ }
+ ],
+ "use_tiled_encode": [
+ "BOOLEAN",
+ {
+ "tooltip": "Enable tiled VAE encoding for large resolutions/long videos to reduce memory usage.",
+ "default": false
+ }
+ ],
+ "tile_size": [
+ "INT",
+ {
+ "tooltip": "Spatial tile size for tiled encoding. Only used when use_tiled_encode is enabled.",
+ "default": 256,
+ "min": 64,
+ "max": 512,
+ "step": 32
+ }
+ ],
+ "tile_overlap": [
+ "INT",
+ {
+ "tooltip": "Overlap between tiles for tiled encoding. Only used when use_tiled_encode is enabled.",
+ "default": 64,
+ "min": 16,
+ "max": 256,
+ "step": 16
+ }
+ ]
+ },
+ "optional": {
+ "use_streaming": [
+ "BOOLEAN",
+ {
+ "tooltip": "Off (default): encode the whole clip as one IC-LoRA guide. On: re-encode one fresh guide per LTXVTiledFusionSampler temporal window and write the plan the sampler reads. Set tile_frames on this node and the sampler to the same value (97 for LTX).",
+ "default": false
+ }
+ ],
+ "tile_frames": [
+ "INT",
+ {
+ "tooltip": "Window length in pixel frames, used only when use_streaming is on. Snapped to 8n+1. Must match LTXVTiledFusionSampler. Ignored when use_streaming is off.",
+ "default": 97,
+ "min": 0,
+ "max": 1000,
+ "step": 1
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "positive",
+ "negative",
+ "vae",
+ "latent",
+ "image",
+ "frame_idx",
+ "strength",
+ "latent_downscale_factor",
+ "crop",
+ "use_tiled_encode",
+ "tile_size",
+ "tile_overlap"
+ ],
+ "optional": [
+ "use_streaming",
+ "tile_frames"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "CONDITIONING",
+ "CONDITIONING",
+ "LATENT"
+ ],
+ "output_is_list": [
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "positive",
+ "negative",
+ "latent"
+ ],
+ "output_tooltips": [
+ null,
+ null,
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "LTXAddVideoICLoRAGuide",
+ "display_name": "🅛🅣🅧 Add Video IC-LoRA Guide",
+ "description": "Adds one or more conditioning frames starting at the specified frame index. Supports both single images and multi-frame videos. The latent_downscale_factor resizes input to a fraction of the target size (1 = original, 2 = half, 3 = third, etc.) for IC-LoRA on small grids. For LTXVTiledFusionSampler temporal windows, turn on use_streaming and set tile_frames to the same 8n+1 value as the sampler (97 for LTX).",
+ "python_module": "custom_nodes.ComfyUI-LTXVideo",
+ "category": "Lightricks/IC-LoRA",
"output_node": false,
- "has_intermediate_output": false,
- "search_aliases": []
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
},
- "Krea2OstrisEditModelPatch": null,
- "LTXAVTextEncoderLoader": {
+ "LTXICLoRALoaderModelOnly": {
"input": {
"required": {
- "text_encoder": [
- "COMBO",
- {
- "multiselect": false,
- "options": []
- }
+ "model": [
+ "MODEL",
+ {}
],
- "ckpt_name": [
+ "lora_name": [
"COMBO",
{
"multiselect": false,
"options": []
}
],
- "device": [
- "COMBO",
+ "strength_model": [
+ "FLOAT",
{
- "advanced": true,
- "multiselect": false,
- "options": [
- "default",
- "cpu"
- ]
+ "default": 1,
+ "min": -100,
+ "max": 100,
+ "step": 0.01
}
]
}
},
"input_order": {
"required": [
- "text_encoder",
- "ckpt_name",
- "device"
+ "model",
+ "lora_name",
+ "strength_model"
]
},
"is_input_list": false,
"output": [
- "CLIP"
+ "MODEL",
+ "FLOAT"
],
"output_is_list": [
+ false,
false
],
"output_name": [
- "CLIP"
+ "model",
+ "latent_downscale_factor"
],
"output_tooltips": [
+ null,
null
],
"output_matchtypes": null,
- "name": "LTXAVTextEncoderLoader",
- "display_name": "Load LTXV Audio Text Encoder",
- "description": "Recipes:\nltxav: gemma 3 12B or matching gemma 4 model",
- "python_module": "comfy_extras.nodes_lt_audio",
- "category": "model/loaders",
+ "name": "LTXICLoRALoaderModelOnly",
+ "display_name": "🅛🅣🅧 IC-LoRA Loader Model Only",
+ "description": "Loads a LoRA model and extracts the latent_downscale_factor from the safetensors metadata.",
+ "python_module": "custom_nodes.ComfyUI-LTXVideo",
+ "category": "Lightricks/IC-LoRA",
"output_node": false,
"deprecated": false,
"experimental": false,
@@ -10452,8 +12364,6 @@
"essentials_category": null,
"has_intermediate_output": false
},
- "LTXAddVideoICLoRAGuide": null,
- "LTXICLoRALoaderModelOnly": null,
"LTXVAddGuide": {
"input": {
"required": {
@@ -11189,131 +13099,310 @@
"step": 0.01
}
],
- "base_shift": [
+ "base_shift": [
+ "FLOAT",
+ {
+ "default": 0.95,
+ "min": 0,
+ "max": 100,
+ "step": 0.01
+ }
+ ],
+ "stretch": [
+ "BOOLEAN",
+ {
+ "tooltip": "Stretch the sigmas to be in the range [terminal, 1].",
+ "advanced": true,
+ "default": true
+ }
+ ],
+ "terminal": [
+ "FLOAT",
+ {
+ "tooltip": "The terminal value of the sigmas after stretching.",
+ "advanced": true,
+ "default": 0.1,
+ "min": 0,
+ "max": 0.99,
+ "step": 0.01
+ }
+ ]
+ },
+ "optional": {
+ "latent": [
+ "LATENT",
+ {}
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "steps",
+ "max_shift",
+ "base_shift",
+ "stretch",
+ "terminal"
+ ],
+ "optional": [
+ "latent"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "SIGMAS"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "SIGMAS"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "LTXVScheduler",
+ "display_name": null,
+ "description": "",
+ "python_module": "comfy_extras.nodes_lt",
+ "category": "model/sampling/schedulers",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "LTXVSeparateAVLatent": {
+ "input": {
+ "required": {
+ "av_latent": [
+ "LATENT",
+ {}
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "av_latent"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "LATENT",
+ "LATENT"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "video_latent",
+ "audio_latent"
+ ],
+ "output_tooltips": [
+ null,
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "LTXVSeparateAVLatent",
+ "display_name": "Separate AV Latent",
+ "description": "Split a joint AV latent into its video and audio latents (any AV model, e.g. LTXV or MiniMax H3).",
+ "python_module": "comfy_extras.nodes_lt",
+ "category": "model/latent/ltxv",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "LTXVTiledFusionSampler": {
+ "input": {
+ "required": {
+ "model": [
+ "MODEL",
+ {
+ "tooltip": "The diffusion model to use."
+ }
+ ],
+ "positive": [
+ "CONDITIONING",
+ {
+ "tooltip": "Positive conditioning from the IC-LoRA guide node. Must carry keyframe_idxs / guide_attention_entries so each tile can be cropped to the LoRA's trained window."
+ }
+ ],
+ "negative": [
+ "CONDITIONING",
+ {
+ "tooltip": "Negative conditioning from the IC-LoRA guide node."
+ }
+ ],
+ "latents": [
+ "LATENT",
+ {
+ "tooltip": "The latent RETURNED BY the IC-LoRA guide node (it carries appended guide frames plus the noise mask). A bare empty video latent will not work."
+ }
+ ],
+ "sigmas": [
+ "SIGMAS",
+ {
+ "tooltip": "Denoise schedule. Must be descending and end at 0. Fusion walks this list one step at a time."
+ }
+ ],
+ "sampler": [
+ "SAMPLER",
+ {
+ "tooltip": "From KSamplerSelect (same type as SamplerCustomAdvanced). Discrete step samplers only: euler, euler_ancestral, heun, dpm_2, … History methods (DPM++ 2M, LMS) lose their multi-step memory because fusion owns the loop. Adaptive samplers cannot fuse. Ancestral methods add independent noise per tile and can seam."
+ }
+ ],
+ "seed": [
+ "INT",
+ {
+ "default": 42,
+ "min": 0,
+ "max": 18446744073709552000,
+ "control_after_generate": true,
+ "tooltip": "Seed for the single shared noise field across all tiles."
+ }
+ ],
+ "cfg": [
+ "FLOAT",
+ {
+ "default": 1,
+ "min": 0,
+ "max": 20,
+ "step": 0.1,
+ "tooltip": "Classifier-free guidance scale. Distilled models typically use 1.0."
+ }
+ ],
+ "tile_width": [
+ "INT",
+ {
+ "default": 1024,
+ "min": 256,
+ "max": 4096,
+ "step": 32,
+ "tooltip": "Tile width in pixels, multiple of 32. Set this to the IC-LoRA's trained spatial window. Tiles smaller than the trained window make every tile see content at the wrong scale."
+ }
+ ],
+ "tile_height": [
+ "INT",
+ {
+ "default": 576,
+ "min": 256,
+ "max": 4096,
+ "step": 32,
+ "tooltip": "Tile height in pixels, multiple of 32. Match tile_width to the IC-LoRA's trained spatial window."
+ }
+ ],
+ "overlap_frac": [
+ "FLOAT",
+ {
+ "default": 0.5,
+ "min": 0.25,
+ "max": 0.75,
+ "step": 0.05,
+ "tooltip": "Fraction of each tile overlapping its neighbor. Stay at 0.5 or above: below that a periodic grid appears on structured content."
+ }
+ ],
+ "blend_var": [
"FLOAT",
{
- "default": 0.95,
- "min": 0,
- "max": 100,
- "step": 0.01
+ "default": 0.05,
+ "min": 0.01,
+ "max": 0.2,
+ "step": 0.01,
+ "tooltip": "Variance of the Gaussian blend weights in the overlaps. Leave at 0.05 unless you are measuring seams."
}
],
- "stretch": [
- "BOOLEAN",
+ "grid_cycle": [
+ "INT",
{
- "tooltip": "Stretch the sigmas to be in the range [terminal, 1].",
- "advanced": true,
- "default": true
+ "default": 1,
+ "min": 1,
+ "max": 4,
+ "tooltip": "Cycle shifted tile grids across steps. 1 = fixed grid (cheapest), 4 = thorough. Spatial only: cycling the temporal grid slides content in time."
}
],
- "terminal": [
- "FLOAT",
+ "tile_frames": [
+ "INT",
{
- "tooltip": "The terminal value of the sigmas after stretching.",
- "advanced": true,
- "default": 0.1,
+ "default": 0,
"min": 0,
- "max": 0.99,
- "step": 0.01
+ "max": 1000,
+ "step": 1,
+ "tooltip": "Temporal window in pixel frames (97 for LTX). 0 = one extent. Other values are snapped to 8n+1. >0 needs LTXAddVideoICLoRAGuide with use_streaming on and the SAME tile_frames: that re-encodes a fresh guide per window and writes the plan this sampler reads. A whole-clip guide cannot be sliced, and windowing is disabled if the plan is missing."
}
]
},
"optional": {
- "latent": [
- "LATENT",
- {}
+ "vae": [
+ "VAE",
+ {
+ "tooltip": "Used to read the model's temporal and spatial downscale factors. If omitted, they are taken from the diffusion model (LTX defaults: 8 frames and 32 pixels per latent cell)."
+ }
+ ],
+ "canvas_device": [
+ [
+ "auto",
+ "gpu",
+ "cpu"
+ ],
+ {
+ "default": "auto",
+ "tooltip": "Where to keep the full-canvas tensors and cached tile latents/noise/masks. auto = GPU if there is enough free memory, otherwise CPU. Processed conds stay on the GPU."
+ }
]
}
},
"input_order": {
"required": [
- "steps",
- "max_shift",
- "base_shift",
- "stretch",
- "terminal"
+ "model",
+ "positive",
+ "negative",
+ "latents",
+ "sigmas",
+ "sampler",
+ "seed",
+ "cfg",
+ "tile_width",
+ "tile_height",
+ "overlap_frac",
+ "blend_var",
+ "grid_cycle",
+ "tile_frames"
],
"optional": [
- "latent"
- ]
- },
- "is_input_list": false,
- "output": [
- "SIGMAS"
- ],
- "output_is_list": [
- false
- ],
- "output_name": [
- "SIGMAS"
- ],
- "output_tooltips": [
- null
- ],
- "output_matchtypes": null,
- "name": "LTXVScheduler",
- "display_name": null,
- "description": "",
- "python_module": "comfy_extras.nodes_lt",
- "category": "model/sampling/schedulers",
- "output_node": false,
- "deprecated": false,
- "experimental": false,
- "dev_only": false,
- "api_node": false,
- "price_badge": null,
- "search_aliases": null,
- "essentials_category": null,
- "has_intermediate_output": false
- },
- "LTXVSeparateAVLatent": {
- "input": {
- "required": {
- "av_latent": [
- "LATENT",
- {}
- ]
- }
- },
- "input_order": {
- "required": [
- "av_latent"
+ "vae",
+ "canvas_device"
]
},
"is_input_list": false,
"output": [
- "LATENT",
"LATENT"
],
"output_is_list": [
- false,
false
],
"output_name": [
- "video_latent",
- "audio_latent"
- ],
- "output_tooltips": [
- null,
- null
+ "output"
],
- "output_matchtypes": null,
- "name": "LTXVSeparateAVLatent",
- "display_name": "Separate AV Latent",
- "description": "Split a joint AV latent into its video and audio latents (any AV model, e.g. LTXV or MiniMax H3).",
- "python_module": "comfy_extras.nodes_lt",
- "category": "model/latent/ltxv",
+ "name": "LTXVTiledFusionSampler",
+ "display_name": "🅛🅣🅧 Tiled Fusion Sampler",
+ "description": "",
+ "python_module": "custom_nodes.ComfyUI-LTXVideo",
+ "category": "sampling",
"output_node": false,
- "deprecated": false,
- "experimental": false,
- "dev_only": false,
- "api_node": false,
- "price_badge": null,
- "search_aliases": null,
- "essentials_category": null,
- "has_intermediate_output": false
+ "has_intermediate_output": false,
+ "search_aliases": []
},
- "LTXVTiledFusionSampler": null,
"LatentBatchSeedBehavior": {
"input": {
"required": {
@@ -11803,9 +13892,7 @@
"COMBO",
{
"multiselect": false,
- "options": [
- "moge_2_vitl_normal_fp16.safetensors"
- ]
+ "options": []
}
],
"weight_dtype": [
@@ -11908,6 +13995,42 @@
],
"essentials_category": "Basics"
},
+ "LoadImageFuobeLive": {
+ "input": {
+ "required": {
+ "image": [
+ "STRING",
+ {
+ "default": "",
+ "tooltip": "A Fuobe-named picture in the input folder."
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "image"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "IMAGE"
+ ],
+ "name": "LoadImageFuobeLive",
+ "display_name": "Load Image (Fuobe live)",
+ "description": "",
+ "python_module": "custom_nodes.fuobe-live",
+ "category": "fuobe/live",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
"LoadImageMask": {
"input": {
"required": {
@@ -11967,9 +14090,7 @@
"COMBO",
{
"multiselect": false,
- "options": [
- "moge_2_vitl_normal_fp16.safetensors"
- ]
+ "options": []
}
]
}
@@ -13222,32 +15343,7 @@
"MODEL"
],
"lora_name": [
- [
- "Flux_2-Turbo-LoRA_comfyui.safetensors",
- "Krea2-realism-V2.safetensors",
- "Qwen-Image-2512-Lightning-4steps-V1.0-fp32.safetensors",
- "Qwen-Image-Edit-2509-Light-Migration.safetensors",
- "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
- "Qwen-Image-Edit-2509-Relight.safetensors",
- "Qwen-Image-Edit-2509-White_to_Scene.safetensors",
- "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
- "krea2_general_edit_v2.safetensors",
- "krea2_identity_edit_v2.safetensors",
- "krea2_inpaint_edit.safetensors",
- "krea2_style_reference.safetensors",
- "lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors",
- "lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors",
- "minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",
- "minimax_h3_turbo_v4_step600_ema.safetensors",
- "next-scene_lora-v2-3000.safetensors",
- "qwen-image-2.1-outpaint-v2.safetensors",
- "tryon-klein-4b.safetensors",
- "uso-flux1-dit-lora-v1.safetensors",
- "wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors",
- "wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors",
- "wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors",
- "wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors"
- ]
+ []
],
"strength": [
"FLOAT",
@@ -14143,32 +16239,131 @@
},
"is_input_list": false,
"output": [
- "OPTICAL_FLOW"
+ "OPTICAL_FLOW"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "OPTICAL_FLOW"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "OpticalFlowLoader",
+ "display_name": "Load Optical Flow Model",
+ "description": "",
+ "python_module": "comfy_extras.nodes_void",
+ "category": "model/loaders",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": null,
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
+ "PasteBackFuobeLive": {
+ "input": {
+ "required": {
+ "base": [
+ "IMAGE"
+ ],
+ "edited": [
+ "IMAGE"
+ ],
+ "mode": [
+ [
+ "auto",
+ "mask",
+ "off"
+ ]
+ ],
+ "threshold": [
+ "FLOAT",
+ {
+ "default": 0.06,
+ "min": 0,
+ "max": 1,
+ "step": 0.01
+ }
+ ],
+ "feather": [
+ "INT",
+ {
+ "default": 24,
+ "min": 0,
+ "max": 256
+ }
+ ],
+ "match_color": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ],
+ "out_max_side": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 4096,
+ "step": 32
+ }
+ ]
+ },
+ "optional": {
+ "box": [
+ "FUOBE_BOX"
+ ],
+ "mask_image": [
+ "IMAGE"
+ ],
+ "detail": [
+ "BOOLEAN",
+ {
+ "default": true
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "base",
+ "edited",
+ "mode",
+ "threshold",
+ "feather",
+ "match_color",
+ "out_max_side"
+ ],
+ "optional": [
+ "box",
+ "mask_image",
+ "detail"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE"
],
"output_is_list": [
false
],
"output_name": [
- "OPTICAL_FLOW"
- ],
- "output_tooltips": [
- null
+ "IMAGE"
],
- "output_matchtypes": null,
- "name": "OpticalFlowLoader",
- "display_name": "Load Optical Flow Model",
+ "name": "PasteBackFuobeLive",
+ "display_name": "Paste Back Unchanged Pixels (Fuobe live)",
"description": "",
- "python_module": "comfy_extras.nodes_void",
- "category": "model/loaders",
+ "python_module": "custom_nodes.fuobe-live",
+ "category": "fuobe/live",
"output_node": false,
- "deprecated": false,
- "experimental": false,
- "dev_only": false,
- "api_node": false,
- "price_badge": null,
- "search_aliases": null,
- "essentials_category": null,
- "has_intermediate_output": false
+ "has_intermediate_output": false,
+ "search_aliases": []
},
"Pixal3DConditioning": {
"input": {
@@ -14629,6 +16824,141 @@
"essentials_category": null,
"has_intermediate_output": false
},
+ "Qwen21EncodeFuobeLive": {
+ "input": {
+ "required": {
+ "clip": [
+ "CLIP"
+ ],
+ "prompt": [
+ "STRING",
+ {
+ "multiline": true
+ }
+ ],
+ "width": [
+ "INT",
+ {
+ "default": 1024,
+ "min": 32,
+ "max": 8192,
+ "step": 32
+ }
+ ],
+ "height": [
+ "INT",
+ {
+ "default": 1024,
+ "min": 32,
+ "max": 8192,
+ "step": 32
+ }
+ ]
+ },
+ "optional": {
+ "reference": [
+ "QWEN21_REFERENCE"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "clip",
+ "prompt",
+ "width",
+ "height"
+ ],
+ "optional": [
+ "reference"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "CONDITIONING",
+ "LATENT"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "positive",
+ "latent"
+ ],
+ "name": "Qwen21EncodeFuobeLive",
+ "display_name": "Qwen Image 2.1 Encode, positive only (Fuobe live)",
+ "description": "",
+ "python_module": "custom_nodes.fuobe-live",
+ "category": "fuobe/live",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
+ "Qwen21ReferenceFuobeLive": {
+ "input": {
+ "required": {
+ "vae": [
+ "VAE"
+ ],
+ "resolution": [
+ "INT",
+ {
+ "default": 1024,
+ "min": 0,
+ "max": 4096,
+ "step": 32
+ }
+ ],
+ "image_1": [
+ "IMAGE"
+ ]
+ },
+ "optional": {
+ "image_2": [
+ "IMAGE"
+ ],
+ "image_3": [
+ "IMAGE"
+ ],
+ "image_4": [
+ "IMAGE"
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "vae",
+ "resolution",
+ "image_1"
+ ],
+ "optional": [
+ "image_2",
+ "image_3",
+ "image_4"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "QWEN21_REFERENCE",
+ "IMAGE"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "reference",
+ "image_1"
+ ],
+ "name": "Qwen21ReferenceFuobeLive",
+ "display_name": "Qwen Image 2.1 Reference (Fuobe live)",
+ "description": "",
+ "python_module": "custom_nodes.fuobe-live",
+ "category": "fuobe/live",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
"QwenImage21Cache": {
"input": {
"required": {
@@ -14790,58 +17120,50 @@
"input": {
"required": {
"reuse_model": [
- "REUSE_MODEL",
- {}
+ "REUSE_MODEL"
],
"audio": [
- "AUDIO",
- {}
+ "AUDIO"
],
"rate": [
- "COMBO",
+ [
+ "source",
+ "source up to 24000",
+ "source up to 16000",
+ "8000",
+ "16000",
+ "22050",
+ "24000",
+ "32000",
+ "44100",
+ "48000"
+ ],
{
"default": "source",
- "tooltip": "The rate the model runs at. Lower is faster and band-limited; higher than the source fills the empty high band (bandwidth extension).",
- "multiselect": false,
- "options": [
- "source",
- "source up to 24000",
- "source up to 16000",
- "8000",
- "16000",
- "22050",
- "24000",
- "32000",
- "44100",
- "48000"
- ]
+ "tooltip": "The rate the model runs at. Lower is faster and band-limited; higher than the source fills the empty high band (bandwidth extension)."
}
],
"pre_lowpass": [
- "COMBO",
+ [
+ "off",
+ "8000",
+ "16000",
+ "22050",
+ "24000"
+ ],
{
"default": "off",
- "tooltip": "Resample down to this rate first (before bandwidth extension)",
- "multiselect": false,
- "options": [
- "off",
- "8000",
- "16000",
- "22050",
- "24000"
- ]
+ "tooltip": "Resample down to this rate first (before bandwidth extension)"
}
],
"channels": [
- "COMBO",
+ [
+ "mono",
+ "each channel"
+ ],
{
"default": "mono",
- "tooltip": "Mono is the mean of the channels; more than 2 channels always run in mono",
- "multiselect": false,
- "options": [
- "mono",
- "each channel"
- ]
+ "tooltip": "Mono is the mean of the channels; more than 2 channels always run in mono"
}
],
"chunk_seconds": [
@@ -14874,15 +17196,13 @@
}
],
"level": [
- "COMBO",
+ [
+ "match input",
+ "-16 LUFS",
+ "off"
+ ],
{
- "default": "match input",
- "multiselect": false,
- "options": [
- "match input",
- "-16 LUFS",
- "off"
- ]
+ "default": "match input"
}
]
},
@@ -14939,33 +17259,31 @@
"description": "Clean up voice: removes noise, echo, clipping and codec damage from speech and keeps the main speaker.",
"python_module": "custom_nodes.ComfyUI-RE-USE",
"category": "audio/RE-USE",
- "output_node": false
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
},
"REUSELoader": {
"input": {
"required": {
"model": [
- "COMBO",
+ [
+ "NemotronLabs-RE-USE-laughter.safetensors",
+ "NemotronLabs-RE-USE.safetensors"
+ ],
{
"default": "NemotronLabs-RE-USE.safetensors",
- "tooltip": "A RE-USE model in models/reuse",
- "multiselect": false,
- "options": [
- "NemotronLabs-RE-USE-laughter.safetensors",
- "NemotronLabs-RE-USE.safetensors"
- ]
+ "tooltip": "A RE-USE model in models/reuse"
}
],
"device": [
- "COMBO",
+ [
+ "auto",
+ "cuda",
+ "cpu"
+ ],
{
- "default": "auto",
- "multiselect": false,
- "options": [
- "auto",
- "cuda",
- "cpu"
- ]
+ "default": "auto"
}
]
}
@@ -14991,7 +17309,9 @@
"description": "Loads NVIDIA RE-USE (speech enhancement, 9.6M parameters) from models/reuse.",
"python_module": "custom_nodes.ComfyUI-RE-USE",
"category": "audio/RE-USE",
- "output_node": false
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
},
"RIFE VFI": {
"input": {
@@ -15813,7 +18133,7 @@
"COMFY_DYNAMICCOMBO_V3",
{
"display_name": "sign_mode",
- "tooltip": "udf: robust to messy/non-manifold input. sdf: clean single surface with QEF (Quadratic Error Function) sharp-feature recovery, but needs consistent winding. solid: one watertight solid from messy input: a global inside/outside graph cut (CelloCut) removes double shells and closes small holes. Slower.",
+ "tooltip": "udf: robust to messy/non-manifold input. sdf: clean single surface with QEF (Quadratic Error Function) sharp-feature recovery, but needs consistent winding.",
"options": [
{
"key": "udf",
@@ -15822,7 +18142,7 @@
"qef": [
"BOOLEAN",
{
- "tooltip": "QEF (Quadratic Error Function) vertex placement: sharp edges on hard-surface input, jagged creases on organic input.",
+ "tooltip": "QEF (Quadratic Error Function) dual-vertex placement for sharper edges.",
"advanced": true,
"default": false
}
@@ -15866,31 +18186,6 @@
]
}
}
- },
- {
- "key": "solid",
- "inputs": {
- "required": {
- "fill": [
- "FLOAT",
- {
- "tooltip": "Cost of closing an opening relative to following the surface. Lower closes larger openings (0 puts a lid on a cup); higher only closes small holes and cracks.",
- "default": 20,
- "min": 0,
- "max": 1000,
- "step": 1
- }
- ],
- "qef": [
- "BOOLEAN",
- {
- "tooltip": "QEF (Quadratic Error Function) vertex placement: sharp edges on hard-surface input, jagged creases on organic input.",
- "advanced": true,
- "default": false
- }
- ]
- }
- }
}
]
}
@@ -15898,7 +18193,7 @@
"band": [
"FLOAT",
{
- "tooltip": "Narrow-band width in voxel units. In udf mode also offsets the surface; in solid mode it is the closing radius: creases are filleted and gaps bridged at this size, the surface sits half a voxel out.",
+ "tooltip": "Narrow-band width in voxel units. In UDF mode also offsets the surface.",
"advanced": true,
"default": 1,
"min": 0.5,
@@ -18182,6 +20477,61 @@
"essentials_category": "Basics",
"has_intermediate_output": false
},
+ "SaveImageFuobeLive": {
+ "input": {
+ "required": {
+ "images": [
+ "IMAGE"
+ ],
+ "format": [
+ [
+ "webp",
+ "png"
+ ]
+ ],
+ "quality": [
+ "INT",
+ {
+ "default": 85,
+ "min": 50,
+ "max": 100
+ }
+ ],
+ "to": [
+ [
+ "socket",
+ "temp"
+ ]
+ ]
+ },
+ "hidden": {
+ "unique_id": "UNIQUE_ID"
+ }
+ },
+ "input_order": {
+ "required": [
+ "images",
+ "format",
+ "quality",
+ "to"
+ ],
+ "hidden": [
+ "unique_id"
+ ]
+ },
+ "is_input_list": false,
+ "output": [],
+ "output_is_list": [],
+ "output_name": [],
+ "name": "SaveImageFuobeLive",
+ "display_name": "Send Image (Fuobe live)",
+ "description": "",
+ "python_module": "custom_nodes.fuobe-live",
+ "category": "fuobe/live",
+ "output_node": true,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
"SaveSVGNode": {
"input": {
"required": {
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index 29dd1d1d..e214eef7 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,6 +1,6 @@
{
"v": 1,
- "hash": "21e39533b8e6ebec3b4a1edbf6ceaa7c052fa8c220d9b4e4e5729f461fb9d151",
+ "hash": "9305dd5c0910327fa7f46d8b379f09efed7a9ebcac61fe14cf944cbb5c266b95",
"comfyui": {"min":"0.41.0","testedCommit":"fc04da91"},
"folders": ["audio_encoders","background_removal","checkpoints","clip_vision","dbs","diffusion_models","facerestore_models","foley","frame_interpolation","geometry_estimation","insightface","latent_upscale_models","loras","mmaudio","model_patches","optical_flow","reuse","text_encoders","thinksound","upscale_models","vae"],
"sentinels": ["AILab_Qwen3ASRSubtitle","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint","Add Subtitles To Frames","Apply Whisper","CFGOverride","ClothesSegment","ComfyMathExpression","CropFuobeLive","DBSLoader","DBSSeparate","DownloadAndLoadWav2VecModel","DualModelGuider","FL_ChatterboxDialogTTS","FL_ChatterboxMultilingualTTS","FL_ChatterboxVC","GetImageRangeFromBatch","GetImageSizeAndCount","GrowMaskWithBlur","H3AdaLNLoRAFix","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3SLAAttention","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageGridtoBatch","ImageResizeKJv2","IndexTTS2Simple","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","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","PasteBackFuobeLive","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
@@ -160,7 +160,7 @@
"loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors": {"folder":"loras","file":"lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","url":"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","pinnedUrl":"https://huggingface.co/Kijai/WanVideo_comfy/resolve/8260d429d19fd7a72304cad059160b95d843913f/Lightx2v/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","sizeBytes":630697104,"gated":false,"presence":"loader","loaders":[["LoraLoader","lora_name"],["LoraLoaderModelOnly","lora_name"]]},
"loras/ltx-2-19b-distilled-lora-384.safetensors": {"folder":"loras","file":"ltx-2-19b-distilled-lora-384.safetensors","url":"https://huggingface.co/Lightricks/LTX-2/resolve/main/ltx-2-19b-distilled-lora-384.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2/resolve/64f65d09e0b76c96202b5bc09997673184cf9b5d/ltx-2-19b-distilled-lora-384.safetensors","sizeBytes":7674558424,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},
"loras/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors": {"folder":"loras","file":"ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","url":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Refine-Details/resolve/4912c478b35dd96b6cdcc5f7c7ff9d72c2c57929/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Refine-Details/resolve/4912c478b35dd96b6cdcc5f7c7ff9d72c2c57929/ltx-2.5-22b-ic-lora-refine-details-1.0.safetensors","sizeBytes":1310000000,"gated":true,"presence":"list"},
- "loras/ltx-2.5-22b-ic-lora-restore-1.0.safetensors": {"folder":"loras","file":"ltx-2.5-22b-ic-lora-restore-1.0.safetensors","url":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Restore/resolve/79245e197a6cd3251e77d178dc380b0e9f2d6563/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Restore/resolve/79245e197a6cd3251e77d178dc380b0e9f2d6563/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","sizeBytes":1710000000,"gated":true,"presence":"list"},
+ "loras/ltx-2.5-22b-ic-lora-restore-1.0.safetensors": {"folder":"loras","file":"ltx-2.5-22b-ic-lora-restore-1.0.safetensors","url":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Restore/resolve/79245e197a6cd3251e77d178dc380b0e9f2d6563/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","pinnedUrl":"https://huggingface.co/Lightricks/LTX-2.5-22b-IC-LoRA-Restore/resolve/79245e197a6cd3251e77d178dc380b0e9f2d6563/ltx-2.5-22b-ic-lora-restore-1.0.safetensors","sizeBytes":1710000000,"gated":true,"presence":"loader","loaders":[["LTXICLoRALoaderModelOnly","lora_name"]]},
"loras/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors": {"folder":"loras","file":"minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","url":"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","pinnedUrl":"https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","sizeBytes":1956193000,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},
"loras/minimax_h3_flf2v_lora_v1.safetensors": {"folder":"loras","file":"minimax_h3_flf2v_lora_v1.safetensors","url":"https://huggingface.co/pablodawson/MiniMax-H3-360-Orbit-LoRA/resolve/5ddbc2dbbe95edbbdaf5017c3e934b1d01791697/minimax_h3_flf2v_lora_v1.safetensors","pinnedUrl":"https://huggingface.co/pablodawson/MiniMax-H3-360-Orbit-LoRA/resolve/5ddbc2dbbe95edbbdaf5017c3e934b1d01791697/minimax_h3_flf2v_lora_v1.safetensors","sizeBytes":155111424,"gated":false,"presence":"loader","loaders":[["LoraLoaderModelOnly","lora_name"]]},
"loras/minimax_h3_turbo_v4_step600_ema.safetensors": {"folder":"loras","file":"minimax_h3_turbo_v4_step600_ema.safetensors","url":"https://huggingface.co/larryvrh/MiniMax-H3-Turbo-Lora/resolve/43a74557ac3f6539db8e0f2a959d03feb7a81480/minimax_h3_turbo_v4_step600_ema.safetensors","pinnedUrl":"https://huggingface.co/larryvrh/MiniMax-H3-Turbo-Lora/resolve/43a74557ac3f6539db8e0f2a959d03feb7a81480/minimax_h3_turbo_v4_step600_ema.safetensors","sizeBytes":779849816,"gated":false,"presence":"loader","loaders":[["MiniMaxH3TurboLoRA","lora_name"]]},
@@ -417,7 +417,8 @@
"video-mask-h3-relay": {"core":["CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","GetImageSize","GetVideoComponents","ImageBatch","ImageFromBatch","ImageScale","LoadVideo","MaskToImage","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveVideo","Video Slice"],"packs":{"h3-relay":["H3RelayPrepareSource","H3RelayRecoverMasks","H3RelaySelectMask"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors"],"optional":[],"vramGb":6,"isolated":false,"firstRun":[]},
"video-mux-audio": {"core":["AudioAdjustVolume","AudioMerge","ConcatenateVideo","EmptyAudio","LoadAudio","LoadVideo","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"video-mux-audio-replace": {"core":["ConcatenateVideo","LoadAudio","LoadVideo","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
- "video-person-remove-h3-relay": {"core":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","EndLoop","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","KSamplerSelect","LTXVSeparateAVLatent","LoadImage","LoadVideo","LoraLoaderModelOnly","MiniMaxH3AddGuide","MiniMaxH3ReferenceToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","RandomNoise","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SamplerCustomAdvanced","SaveVideo","SelectCLIPDevice","StartLoop","ThresholdMask","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"],"packs":{"h3-relay":["H3RelayAppendWindow","H3RelayApplyHistory","H3RelayFinishWindows","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors","loras/H3-Person-Remover-V1.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[]},
+ "video-person-remove-h3-mask": {"core":["CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","LoadVideo","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SaveVideo","ThresholdMask"],"packs":{},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors"],"optional":[],"vramGb":6,"isolated":false,"firstRun":[],"validated":true},
+ "video-person-remove-h3-relay": {"core":["BasicScheduler","CFGGuider","CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","CreateVideo","EmptyImage","EndLoop","GetImageSize","GetVideoComponents","GrowMask","ImageCompositeMasked","ImageFromBatch","ImageScale","KSamplerSelect","LTXVSeparateAVLatent","LoadImage","LoadVideo","LoraLoaderModelOnly","MiniMaxH3AddGuide","MiniMaxH3ReferenceToVideo","MiniMaxH3SigmaShift","ModelAttentionBackend","RandomNoise","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SamplerCustomAdvanced","SaveVideo","SelectCLIPDevice","StartLoop","ThresholdMask","UNETLoader","VAEDecode","VAEDecodeAudio","VAELoader"],"packs":{"h3-relay":["H3RelayAppendWindow","H3RelayApplyHistory","H3RelayFinishWindows","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors","loras/H3-Person-Remover-V1.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
"video-reframe-wan22-fun-vace": {"core":["CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerAdvanced","LoadVideo","LoraLoaderModelOnly","ModelSamplingSD3","SaveVideo","TrimVideoLatent","UNETLoader","VAEDecode","VAELoader","WanVaceToVideo"],"packs":{"ComfyUI-KJNodes":["ImageResizeKJv2"]},"files":["diffusion_models/wan2.2_fun_vace_high_noise_14B_fp8_scaled.safetensors","diffusion_models/wan2.2_fun_vace_low_noise_14B_fp8_scaled.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_high_noise.safetensors","loras/wan2.2_t2v_lightx2v_4steps_lora_v1.1_low_noise.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
"video-regenerate-h3": {"core":["BasicGuider","BlockSparseAttention","CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerSelect","LoadVideo","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEEncode","VAELoader","Video Slice"],"packs":{"ComfyUI-Open-H3-Regenerate":["OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent"],"Comfyui_Minimax_h3_latent_Upscaler":[]},"files":["diffusion_models/minimax_h3_fl2va_pruned_int8_convrot.safetensors","latent_upscale_models/minimax_h3_latent_upscaler_3d_conv_v1_bf16.safetensors","loras/open_h3_regenerate_2k_lora.safetensors","text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors","vae/fast_h3_vae_noncausal_24l.safetensors","vae/minimax_h3_audio_vae_fp32.safetensors","vae/minimax_h3_video_vae_fp16.safetensors"],"optional":[],"vramGb":48,"isolated":false,"firstRun":[]},
"video-relight-bernini-r": {"core":["BasicScheduler","BerniniConditioning","CLIPLoader","CLIPTextEncode","CreateVideo","GetVideoComponents","KSamplerSelect","LoadVideo","LoraLoaderModelOnly","SamplerCustom","SaveVideo","SplitSigmas","StringConcatenate","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/wan2.2_bernini_r_high_noise_fp8_scaled.safetensors","diffusion_models/wan2.2_bernini_r_low_noise_fp8_scaled.safetensors","loras/lightx2v_T2V_14B_cfg_step_distill_v2_lora_rank64_bf16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/wan_2.1_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
diff --git a/workflows/comfyui/video-person-remove-h3-mask.json b/workflows/comfyui/video-person-remove-h3-mask.json
new file mode 100644
index 00000000..58db036c
--- /dev/null
+++ b/workflows/comfyui/video-person-remove-h3-mask.json
@@ -0,0 +1,235 @@
+{
+ "binary_mask": {
+ "class_type": "ThresholdMask",
+ "inputs": {
+ "mask": [
+ "mask",
+ 0
+ ],
+ "value": 0.5
+ },
+ "_meta": {
+ "title": "ThresholdMask"
+ }
+ },
+ "components": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "source",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "GetVideoComponents"
+ }
+ },
+ "detect": {
+ "class_type": "SAM3_Detect",
+ "inputs": {
+ "model": [
+ "sam",
+ 0
+ ],
+ "image": [
+ "first_frame",
+ 0
+ ],
+ "conditioning": [
+ "subject",
+ 0
+ ],
+ "threshold": 0.4,
+ "refine_iterations": 2,
+ "individual_masks": false
+ },
+ "_meta": {
+ "title": "SAM3_Detect"
+ }
+ },
+ "dimensions": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "components",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "GetImageSize"
+ }
+ },
+ "first_frame": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "components",
+ 0
+ ],
+ "batch_index": 0,
+ "length": 1
+ },
+ "_meta": {
+ "title": "ImageFromBatch"
+ }
+ },
+ "green": {
+ "class_type": "EmptyImage",
+ "inputs": {
+ "width": [
+ "dimensions",
+ 0
+ ],
+ "height": [
+ "dimensions",
+ 1
+ ],
+ "batch_size": 1,
+ "color": 65280
+ },
+ "_meta": {
+ "title": "EmptyImage"
+ }
+ },
+ "green_guide": {
+ "class_type": "ImageCompositeMasked",
+ "inputs": {
+ "destination": [
+ "components",
+ 0
+ ],
+ "source": [
+ "green",
+ 0
+ ],
+ "mask": [
+ "grow_mask",
+ 0
+ ],
+ "x": 0,
+ "y": 0,
+ "resize_source": false
+ },
+ "_meta": {
+ "title": "ImageCompositeMasked"
+ }
+ },
+ "grow_mask": {
+ "class_type": "GrowMask",
+ "inputs": {
+ "mask": [
+ "binary_mask",
+ 0
+ ],
+ "expand": 5,
+ "tapered_corners": false
+ },
+ "_meta": {
+ "title": "GrowMask"
+ }
+ },
+ "mask": {
+ "class_type": "SAM3_TrackToMask",
+ "inputs": {
+ "track_data": [
+ "track",
+ 0
+ ],
+ "object_indices": ""
+ },
+ "_meta": {
+ "title": "SAM3_TrackToMask"
+ }
+ },
+ "sam": {
+ "class_type": "CheckpointLoaderSimple",
+ "inputs": {
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "CheckpointLoaderSimple"
+ }
+ },
+ "save": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "video",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-person-remove-h3-mask",
+ "format": "mp4",
+ "format.codec": "h264",
+ "format.codec.encoding": "re-encode",
+ "format.codec.encoding.crf": 23
+ },
+ "_meta": {
+ "title": "The green mask over the part"
+ }
+ },
+ "source": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "source.mp4"
+ },
+ "_meta": {
+ "title": "The part (24 fps, sides on the 32 grid)"
+ }
+ },
+ "subject": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "sam",
+ 1
+ ],
+ "text": "person"
+ },
+ "_meta": {
+ "title": "Who to remove (SAM 3.1 words)"
+ }
+ },
+ "track": {
+ "class_type": "SAM3_VideoTrack",
+ "inputs": {
+ "model": [
+ "sam",
+ 0
+ ],
+ "images": [
+ "components",
+ 0
+ ],
+ "initial_mask": [
+ "detect",
+ 0
+ ],
+ "conditioning": [
+ "subject",
+ 0
+ ],
+ "detection_threshold": 0.5,
+ "max_objects": 1,
+ "detect_interval": 12
+ },
+ "_meta": {
+ "title": "SAM3_VideoTrack"
+ }
+ },
+ "video": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "green_guide",
+ 0
+ ],
+ "fps": [
+ "components",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "CreateVideo"
+ }
+ }
+}