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.

Watermark Remover: the scan also reads the photo in four tiles and merges the marks

Adarsh366fd2da06ca
diff --git a/scripts/comfy/hand-built/image-watermark-scan-qwen3vl.json b/scripts/comfy/hand-built/image-watermark-scan-qwen3vl.json
index 77e78827..92c53019 100644
--- a/scripts/comfy/hand-built/image-watermark-scan-qwen3vl.json
+++ b/scripts/comfy/hand-built/image-watermark-scan-qwen3vl.json
@@ -47,5 +47,333 @@
1
]
}
+ },
+ "40": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "The photo's size"
+ }
+ },
+ "41": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a * 4 // 7",
+ "values.a": [
+ "40",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Tile width (4/7 of the photo)"
+ }
+ },
+ "42": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a * 4 // 7",
+ "values.a": [
+ "40",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Tile height (4/7 of the photo)"
+ }
+ },
+ "43": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a - a * 4 // 7",
+ "values.a": [
+ "40",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Right tiles' left edge"
+ }
+ },
+ "44": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a - a * 4 // 7",
+ "values.a": [
+ "40",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom tiles' top edge"
+ }
+ },
+ "50": {
+ "class_type": "ImageCrop",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "width": [
+ "41",
+ 1
+ ],
+ "height": [
+ "42",
+ 1
+ ],
+ "x": 0,
+ "y": 0
+ },
+ "_meta": {
+ "title": "Top left tile"
+ }
+ },
+ "51": {
+ "class_type": "ImageCrop",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "width": [
+ "41",
+ 1
+ ],
+ "height": [
+ "42",
+ 1
+ ],
+ "x": [
+ "43",
+ 1
+ ],
+ "y": 0
+ },
+ "_meta": {
+ "title": "Top right tile"
+ }
+ },
+ "52": {
+ "class_type": "ImageCrop",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "width": [
+ "41",
+ 1
+ ],
+ "height": [
+ "42",
+ 1
+ ],
+ "x": 0,
+ "y": [
+ "44",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom left tile"
+ }
+ },
+ "53": {
+ "class_type": "ImageCrop",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "width": [
+ "41",
+ 1
+ ],
+ "height": [
+ "42",
+ 1
+ ],
+ "x": [
+ "43",
+ 1
+ ],
+ "y": [
+ "44",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom right tile"
+ }
+ },
+ "60": {
+ "class_type": "QWMDetect",
+ "inputs": {
+ "image": [
+ "50",
+ 0
+ ],
+ "clip": [
+ "2",
+ 0
+ ],
+ "mode": "auto_qwen",
+ "boxes_json": "{\"coordinate_space\":\"pixels\",\"boxes\":[]}",
+ "detection_side": 1536,
+ "expand": 20,
+ "max_tokens": 2048,
+ "hint": "",
+ "edit_prompt": "",
+ "padding_ratio": 0.35,
+ "manual_mask": [
+ "1",
+ 1
+ ],
+ "min_confidence": 0.65
+ },
+ "_meta": {
+ "title": "Find the marks: top left tile"
+ }
+ },
+ "61": {
+ "class_type": "QWMDetect",
+ "inputs": {
+ "image": [
+ "51",
+ 0
+ ],
+ "clip": [
+ "2",
+ 0
+ ],
+ "mode": "auto_qwen",
+ "boxes_json": "{\"coordinate_space\":\"pixels\",\"boxes\":[]}",
+ "detection_side": 1536,
+ "expand": 20,
+ "max_tokens": 2048,
+ "hint": "",
+ "edit_prompt": "",
+ "padding_ratio": 0.35,
+ "manual_mask": [
+ "1",
+ 1
+ ],
+ "min_confidence": 0.65
+ },
+ "_meta": {
+ "title": "Find the marks: top right tile"
+ }
+ },
+ "62": {
+ "class_type": "QWMDetect",
+ "inputs": {
+ "image": [
+ "52",
+ 0
+ ],
+ "clip": [
+ "2",
+ 0
+ ],
+ "mode": "auto_qwen",
+ "boxes_json": "{\"coordinate_space\":\"pixels\",\"boxes\":[]}",
+ "detection_side": 1536,
+ "expand": 20,
+ "max_tokens": 2048,
+ "hint": "",
+ "edit_prompt": "",
+ "padding_ratio": 0.35,
+ "manual_mask": [
+ "1",
+ 1
+ ],
+ "min_confidence": 0.65
+ },
+ "_meta": {
+ "title": "Find the marks: bottom left tile"
+ }
+ },
+ "63": {
+ "class_type": "QWMDetect",
+ "inputs": {
+ "image": [
+ "53",
+ 0
+ ],
+ "clip": [
+ "2",
+ 0
+ ],
+ "mode": "auto_qwen",
+ "boxes_json": "{\"coordinate_space\":\"pixels\",\"boxes\":[]}",
+ "detection_side": 1536,
+ "expand": 20,
+ "max_tokens": 2048,
+ "hint": "",
+ "edit_prompt": "",
+ "padding_ratio": 0.35,
+ "manual_mask": [
+ "1",
+ 1
+ ],
+ "min_confidence": 0.65
+ },
+ "_meta": {
+ "title": "Find the marks: bottom right tile"
+ }
+ },
+ "70": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "60",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Top left tile's report"
+ }
+ },
+ "71": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "61",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Top right tile's report"
+ }
+ },
+ "72": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "62",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom left tile's report"
+ }
+ },
+ "73": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "63",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom right tile's report"
+ }
}
}
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index a9743909..63e38a67 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -162,6 +162,8 @@
// detectExpand* (QWMDetect expand: 0 for the kept marks, whose boxes carry the scan's margin; 20 in auto_qwen)
// maxSize* (here QWMPrepare max_side on both passes: 1024; 1536 past 3000 px; 768 on a GPU under 16 GB)
// Output role "quality": a node's JSON verdict on the run (QWMFinal), folded into the image outputs' meta.quality.
+// Output role "scan-tile": a tile's QWMDetect report (the scan's four quarters, in scanTiles order), merged by the provider
+// into the "report" output (mergeScanReports in src/lib/watermark.ts), never a result of its own.
import fs from 'node:fs';
@@ -2837,15 +2839,23 @@ export const SPEC = [
handBuilt: 'hand-built/image-watermark-scan-qwen3vl.json',
packs: ['ComfyUI-Qwen-Watermark'],
bindings: { image: [b('1', 'image')] },
- outputs: [{ node: '23', kind: 'text', role: 'report' }],
+ outputs: [
+ { node: '23', kind: 'text', role: 'report' },
+ { node: '70', kind: 'text', role: 'scan-tile' },
+ { node: '71', kind: 'text', role: 'scan-tile' },
+ { node: '72', kind: 'text', role: 'scan-tile' },
+ { node: '73', kind: 'text', role: 'scan-tile' },
+ ],
limits: { maxWidth: 4096, maxHeight: 4096 },
vramGb: 10,
license: 'Qwen3-VL 8B Apache-2.0; ComfyUI-Qwen-Watermark nodes MIT',
notes:
'The pack\'s detect-only workflow (qwen_watermark_detection.api.json) without its preview and save nodes: QWMDetect auto_qwen reads the picture once with ' +
- 'Qwen3-VL 8B (int8, detection side 1536, up to 2048 tokens so a mark tiled over the photo comes back one box per copy, expand 20, padding 0.35, min confidence 0.65) and PreviewAny shows its report, the only output: JSON ' +
+ 'Qwen3-VL 8B (int8, detection side 1536, up to 2048 tokens, expand 20, padding 0.35, min confidence 0.65) and PreviewAny shows its report: JSON ' +
'{coordinate_space: "pixels", image_size, boxes: [{label, bbox (padded repair box), source_bbox (tight), overlay_type, mask_method, confidence}], ' +
- 'rejected_boxes (below 0.65), status}. The app draws source_bbox and sends the kept boxes to image-watermark-remove-qwen21. ' +
+ 'rejected_boxes (below 0.65), status}. Four more QWMDetect read the photo in quarters (ImageCrop, each 4/7 of the width and height from ' +
+ 'GetImageSize and ComfyMathExpression a * 4 // 7, so a mark repeated over the photo comes back copy by copy); their reports (role scan-tile) ' +
+ 'are merged into the report by the provider (mergeScanReports). The app draws source_bbox and sends the kept boxes to image-watermark-remove-qwen21. ' +
'The GPU pre-flight also checks image-watermark-remove-qwen21 for a scan (its companion graph).',
},
{
diff --git a/src/lib/comfy.ts b/src/lib/comfy.ts
index 91ee2e61..0fe87011 100644
--- a/src/lib/comfy.ts
+++ b/src/lib/comfy.ts
@@ -98,7 +98,9 @@ export interface ManifestOutput {
| "sweep-mask"
| "mesh"
// Watermark Remover: the repair's verdict (QWMFinal), folded into the picture outputs' meta.
- | "quality";
+ | "quality"
+ // Watermark Remover: a tile's scan report (QWMDetect on a quarter of the photo), merged into the "report" output.
+ | "scan-tile";
}
export interface ManifestWorkflow {
diff --git a/src/lib/watermark.ts b/src/lib/watermark.ts
index ba91bd66..a21704fe 100644
--- a/src/lib/watermark.ts
+++ b/src/lib/watermark.ts
@@ -198,6 +198,130 @@ export function parseScanReport(text: string | undefined | null): ScanResult | n
return { width, height, regions };
}
+/**
+ * The scan reads the photo whole and again in four overlapping quarters (each 4/7 of the width and height, so neighbours
+ * share 1/7): a mark repeated over the photo comes back copy by copy, where one look at the whole photo can draw a single
+ * box around all of them. The scan graph crops the same tiles (GetImageSize, then a*4//7 and a - a*4//7).
+ */
+export function scanTiles(width: number, height: number): Box[] {
+ const tw = Math.floor((width * 4) / 7);
+ const th = Math.floor((height * 4) / 7);
+ return [
+ [0, 0],
+ [width - tw, 0],
+ [0, height - th],
+ [width - tw, height - th],
+ ].map(([x, y]) => [x, y, x + tw, y + th] as Box);
+}
+
+interface ScanItem {
+ label: string;
+ box: Box;
+ type: OverlayType;
+ confidence: number;
+ background: string;
+}
+
+const boxArea = (b: Box) => Math.max(0, b[2] - b[0]) * Math.max(0, b[3] - b[1]);
+const overlap = (a: Box, b: Box) => boxArea([Math.max(a[0], b[0]), Math.max(a[1], b[1]), Math.min(a[2], b[2]), Math.min(a[3], b[3])]);
+
+function scanItems(doc: Record<string, unknown>, src: number, dx: number, dy: number, width: number, height: number): ScanItem[] {
+ const out: ScanItem[] = [];
+ for (const list of [doc.boxes, doc.rejected_boxes]) {
+ if (!Array.isArray(list)) continue;
+ for (const item of list) {
+ if (!item || typeof item !== "object") continue;
+ const it = item as { bbox?: unknown; source_bbox?: unknown; overlay_type?: unknown; label?: unknown; confidence?: unknown; background?: unknown };
+ const b = box4(it.source_bbox) ?? box4(it.bbox);
+ const box = b && ordered([b[0] + dx, b[1] + dy, b[2] + dx, b[3] + dy], width, height);
+ if (!box) continue;
+ out.push({ src, label: cleanLabel(it.label), box, type: normalizeType(it.overlay_type), confidence: finite(it.confidence) ? it.confidence : 0.5, background: cleanLabel(it.background) });
+ }
+ }
+ return out;
+}
+
+/**
+ * One report from the whole-photo scan and its four tiles' scans (in scanTiles order): the tiles' marks moved to the
+ * photo's pixels, a whole-photo box that holds two or more of the tiles' marks (or covers most of the photo while the
+ * tiles found marks in it) dropped for them, and the boxes that overlap (one mark seen twice, or cut by a tile's edge)
+ * joined. Each sure mark gets the scan's margin again. The whole-photo report as it came when a tile can't be read; null
+ * when the whole-photo report can't be read.
+ */
+export function mergeScanReports(full: string | undefined | null, tiles: (string | undefined | null)[]): string | null {
+ if (!full) return null;
+ let doc: Record<string, unknown>;
+ try {
+ doc = JSON.parse(full) as Record<string, unknown>;
+ } catch {
+ return null;
+ }
+ const size = Array.isArray(doc?.image_size) && doc.image_size.length === 2 && doc.image_size.every((n) => finite(n) && n > 0) ? (doc.image_size as [number, number]) : null;
+ if (!size) return null;
+ const [width, height] = size;
+ const grid = scanTiles(width, height);
+ if (tiles.length !== grid.length) return full;
+ const tileDocs: Record<string, unknown>[] = [];
+ for (const t of tiles) {
+ try {
+ const d = t ? (JSON.parse(t) as Record<string, unknown>) : null;
+ if (!d || typeof d !== "object") return full;
+ tileDocs.push(d);
+ } catch {
+ return full;
+ }
+ }
+ const found = [...scanItems(doc, 0, 0, 0, width, height), ...tileDocs.flatMap((d, i) => scanItems(d, i + 1, grid[i][0], grid[i][1], width, height))];
+ const frameArea = (src: number) => (src === 0 ? width * height : boxArea(grid[src - 1]));
+ // A box is one look drawing a single box around several marks when the other looks found two or more separate marks
+ // inside it (each under half its size), or one mark inside a box that fills half of what that look saw: dropped for them.
+ const coarse = (a: ScanItem) => {
+ const marks: Box[] = [];
+ for (const b of found) {
+ if (b.src === a.src || overlap(a.box, b.box) < 0.6 * boxArea(b.box) || boxArea(b.box) >= 0.5 * boxArea(a.box)) continue;
+ if (!marks.some((m) => overlap(m, b.box) >= 0.2 * Math.min(boxArea(m), boxArea(b.box)))) marks.push(b.box);
+ }
+ return marks.length >= 2 || (marks.length === 1 && boxArea(a.box) >= 0.5 * frameArea(a.src));
+ };
+ const kept = found.filter((a) => !coarse(a));
+ // Join what overlaps (a fifth of the smaller box), until nothing more joins.
+ let items = kept;
+ for (let joined = true; joined; ) {
+ joined = false;
+ outer: for (let i = 0; i < items.length; i++) {
+ for (let j = i + 1; j < items.length; j++) {
+ const a = items[i];
+ const b = items[j];
+ if (overlap(a.box, b.box) < 0.2 * Math.min(boxArea(a.box), boxArea(b.box))) continue;
+ items[i] = {
+ label: b.label.length > a.label.length ? b.label : a.label,
+ box: [Math.min(a.box[0], b.box[0]), Math.min(a.box[1], b.box[1]), Math.max(a.box[2], b.box[2]), Math.max(a.box[3], b.box[3])],
+ type: a.type === "unknown" || b.type === "translucent_text_logo" ? b.type : a.type,
+ confidence: Math.max(a.confidence, b.confidence),
+ background: a.background || b.background,
+ };
+ items.splice(j, 1);
+ joined = true;
+ break outer;
+ }
+ }
+ }
+ items = items.sort((a, b) => a.box[1] - b.box[1] || a.box[0] - b.box[0]);
+ const entry = (it: ScanItem, sure: boolean) => ({
+ label: it.label || "watermark",
+ bbox: sure ? padBox(it.box, it.type, width, height) : it.box,
+ source_bbox: it.box,
+ overlay_type: it.type,
+ confidence: Math.round(it.confidence * 1e4) / 1e4,
+ ...(it.background && { background: it.background }),
+ });
+ const boxes = items.filter((it) => it.confidence >= SURE).map((it) => entry(it, true));
+ const rejected = items.filter((it) => it.confidence < SURE).map((it) => entry(it, false));
+ const unread = [doc, ...tileDocs].some((d) => d.status === "indeterminate");
+ const status = boxes.length ? (rejected.length ? "needs_review" : "detected") : rejected.length ? "needs_review" : unread ? "indeterminate" : "no_overlay_detected";
+ return JSON.stringify({ coordinate_space: "pixels", image_size: [width, height], boxes, rejected_boxes: rejected, status, source: "auto_qwen_tiled" });
+}
+
/** The region a tap at (x, y) in pixels picks: the smallest one under it, with a margin so small marks are easy to hit. */
export function regionAt(regions: Region[], x: number, y: number, margin = 0): Region | null {
let best: Region | null = null;
diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.ts
index 5d4dfad6..8137c6da 100644
--- a/src/server/providers/comfyui.ts
+++ b/src/server/providers/comfyui.ts
@@ -45,7 +45,7 @@ import { fpsPlan } from "@/lib/av/fps";
import { resolveWorkflowId } from "@/lib/comfy-variants";
import { MOTION_GRAPHS, motionTransferPrompt, neutralPrompt, WORDS_NEEDED } from "@/lib/comfy-prompts";
import { DECODER_PARAM, editCanvas, GPU_PARAM, LIGHTNING_GRAPHS, lightningSigmas, SPEED_PARAM, ZEN_ADAPTER, ZEN_ENCODER } from "@/lib/qwen21-speed";
-import { checkWatermarkBoxes, COPY as WATERMARK_COPY, MAX_SIDE as MAX_WATERMARK_SIDE, maxSideFor, qualityOf, SCAN_EXPAND as WATERMARK_SCAN_EXPAND, KEPT_EXPAND as WATERMARK_KEPT_EXPAND } from "@/lib/watermark";
+import { checkWatermarkBoxes, COPY as WATERMARK_COPY, MAX_SIDE as MAX_WATERMARK_SIDE, maxSideFor, mergeScanReports, qualityOf, SCAN_EXPAND as WATERMARK_SCAN_EXPAND, KEPT_EXPAND as WATERMARK_KEPT_EXPAND } from "@/lib/watermark";
import { h3Canvas, h3Frames, isH3Graph } from "@/lib/h3-prompt";
import { draftSizeFor, REGEN_COPY, REGEN_WINDOW_SECONDS, REGEN_WORKFLOW, regenFrames, regenOnePassRefusal, regenResolution } from "@/lib/catalog/regenerate";
import { carriesBoxes, LAYOUT_PARAM } from "@/lib/layout-prompt";
@@ -519,11 +519,14 @@ export function collectOutputs(entry: HistoryEntry, manifest: ManifestWorkflow |
.filter((o) => o.role === "quality")
.map((o) => qualityOf(textsOf(outputs[o.node]).join("\n")))
.find(Boolean);
+ // The Watermark Remover's tile scans (the photo's four quarters): merged into the whole photo's report, never results.
+ const tileSpecs = declared.filter((o) => o.role === "scan-tile");
+ const tileReports = tileSpecs.map((o) => textsOf(outputs[o.node]).join("\n") || null);
const files: ComfyOutput[] = [];
const pick = (type: string) => {
for (const nodeId of order) {
const spec: ManifestOutput | undefined = declared.find((o) => o.node === nodeId);
- if (spec?.role === "language" || spec?.role === "frame" || spec?.role === "quality") continue;
+ if (spec?.role === "language" || spec?.role === "frame" || spec?.role === "quality" || spec?.role === "scan-tile") continue;
const ui = outputs[nodeId] ?? {};
const texts = textsOf(ui);
const found: { key: string; f: HistoryFile }[] = [];
@@ -538,7 +541,8 @@ export function collectOutputs(entry: HistoryEntry, manifest: ManifestWorkflow |
}
// A text output with no file (PreviewAny): keep the words.
if (!found.length && type === "output" && spec?.kind === "text" && texts.length) {
- const text = texts.join("\n");
+ const joined = texts.join("\n");
+ const text = spec.role === "report" && tileSpecs.length ? (mergeScanReports(joined, tileReports) ?? joined) : joined;
files.push(textOutput({ url: dataUrl(Buffer.from(text), "text/plain"), kind: "text", contentType: "text/plain" }, text, spec, language));
continue;
}
diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.ts
index 1cb779c9..d8d5424e 100644
--- a/tests/comfy-library-4.test.ts
+++ b/tests/comfy-library-4.test.ts
@@ -68,6 +68,8 @@ const ROLES: NonNullable<ManifestOutput["role"]>[] = [
"orbit",
// Watermark Remover: the repair's verdict, folded into the picture's meta.
"quality",
+ // Watermark Remover: the four tiles' scan reports, merged into the whole photo's report.
+ "scan-tile",
];
describe("round-4 ComfyUI workflows", () => {
diff --git a/tests/watermark-remover.test.ts b/tests/watermark-remover.test.ts
index 02af8893..bc79e74f 100644
--- a/tests/watermark-remover.test.ts
+++ b/tests/watermark-remover.test.ts
@@ -127,7 +127,7 @@ describe("3. the ops", () => {
describe("4. the manifest entries", () => {
it("binds the picture, both seeds, the kept marks, the mode, the size and (brush) the mask", () => {
- expect(entry(SCAN)).toMatchObject({ capability: "watermark-scan", bindings: { image: [{ node: "1", input: "image" }] }, outputs: [{ node: "23", kind: "text", role: "report" }] });
+ expect(entry(SCAN)).toMatchObject({ capability: "watermark-scan", bindings: { image: [{ node: "1", input: "image" }] }, outputs: [{ node: "23", kind: "text", role: "report" }, ...["70", "71", "72", "73"].map((node) => ({ node, kind: "text", role: "scan-tile" }))] });
for (const id of [REMOVE, BRUSH]) {
const e = entry(id);
expect(e.capability).toBe("watermark-remove");
@@ -152,7 +152,7 @@ describe("4. the manifest entries", () => {
describe("5. the graph files", () => {
it("keep only the declared outputs, run the int8 UNET, and route the brush's mask to QWMDetect", () => {
const outputsOf = (g: ComfyWorkflow) => Object.entries(g).filter(([, n]) => /^(SaveImage|PreviewImage|PreviewAny|MaskPreview)$/.test(n.class_type)).map(([id]) => id).sort();
- expect(outputsOf(graph(SCAN))).toEqual(["23"]);
+ expect(outputsOf(graph(SCAN))).toEqual(["23", "70", "71", "72", "73"]);
expect(graph(SCAN)["23"].inputs.source).toEqual(["3", 1]);
for (const id of [REMOVE, BRUSH]) {
const g = graph(id);
@@ -395,6 +395,114 @@ describe("10. the scan report, read into regions", () => {
});
});
+describe("10b. the tiled scan, merged", () => {
+ const rep = (w: number, h: number, boxes: { b: number[]; c?: number; t?: string }[], status = "detected") =>
+ JSON.stringify({
+ coordinate_space: "pixels",
+ image_size: [w, h],
+ boxes: boxes.filter((x) => (x.c ?? 0.9) >= 0.65).map((x) => ({ label: "lumastock", bbox: x.b, source_bbox: x.b, overlay_type: x.t ?? "translucent_text_logo", confidence: x.c ?? 0.9 })),
+ rejected_boxes: boxes.filter((x) => (x.c ?? 0.9) < 0.65).map((x) => ({ label: "lumastock", bbox: x.b, source_bbox: x.b, overlay_type: x.t ?? "text_logo", confidence: x.c })),
+ status,
+ });
+
+ it("cuts the photo in four quarters of 4/7, as the graph does (a*4//7)", () => {
+ expect(W.scanTiles(1536, 1152)).toEqual([
+ [0, 0, 877, 658],
+ [659, 0, 1536, 658],
+ [0, 494, 877, 1152],
+ [659, 494, 1536, 1152],
+ ]);
+ const n = graph("image-watermark-scan-qwen3vl");
+ expect(n["41"].inputs.expression).toBe("a * 4 // 7");
+ expect(n["43"].inputs.expression).toBe("a - a * 4 // 7");
+ expect(["60", "61", "62", "63"].map((id) => n[id].class_type)).toEqual(["QWMDetect", "QWMDetect", "QWMDetect", "QWMDetect"]);
+ expect(entry("image-watermark-scan-qwen3vl").outputs.filter((o) => o.role === "scan-tile").map((o) => o.node)).toEqual(["70", "71", "72", "73"]);
+ });
+
+ it("drops a whole-photo box over the copies for the copies the tiles found, each with the scan's margin", () => {
+ const full = rep(1536, 1152, [{ b: [0, 0, 1536, 1151] }, { b: [1340, 1000, 1500, 1120], t: "text_logo" }]);
+ const tiles = [
+ rep(877, 658, [{ b: [69, 127, 346, 247] }, { b: [591, 127, 868, 247] }]),
+ rep(877, 658, [{ b: [454, 127, 731, 247] }]),
+ rep(877, 658, [{ b: [69, 370, 346, 490] }]),
+ rep(877, 658, [{ b: [681, 506, 841, 626], t: "text_logo" }]),
+ ];
+ const merged = JSON.parse(W.mergeScanReports(full, tiles)!);
+ const tight = merged.boxes.map((b: { source_bbox: number[] }) => b.source_bbox);
+ expect(tight).toEqual([
+ [69, 127, 346, 247],
+ [591, 127, 868, 247],
+ [1113, 127, 1390, 247],
+ [69, 864, 346, 984],
+ [1340, 1000, 1500, 1120],
+ ]);
+ expect(merged.boxes[0].bbox).toEqual(W.padBox([69, 127, 346, 247], "translucent_text_logo", 1536, 1152));
+ expect(merged.status).toBe("detected");
+ const regions = W.parseScanReport(W.mergeScanReports(full, tiles))!.regions;
+ expect(regions.every((r) => r.on)).toBe(true);
+ });
+
+ it("drops a tile's one box over the copies the photo's scan found apart (a 3072 px photo, GPU run)", () => {
+ const six = [
+ [261, 315, 876, 604],
+ [1704, 338, 2320, 604],
+ [906, 1214, 1521, 1480],
+ [2196, 1214, 2811, 1480],
+ [261, 1928, 876, 2194],
+ [1704, 1928, 2320, 2194],
+ ];
+ const full = rep(3072, 2304, six.map((b) => ({ b })));
+ const tiles = [
+ rep(1755, 1316, [{ b: [266, 329, 864, 582] }, { b: [1065, 1151, 1492, 1316] }]),
+ rep(1755, 1316, [{ b: [386, 318, 1141, 602] }, { b: [1140, 1154, 1492, 1315] }]),
+ rep(1755, 1316, [{ b: [907, 180, 1496, 461] }, { b: [273, 921, 855, 1202] }]),
+ rep(1755, 1316, [{ b: [0, 180, 1755, 1315] }]),
+ ];
+ const merged = JSON.parse(W.mergeScanReports(full, tiles)!);
+ const tight: number[][] = merged.boxes.map((b: { source_bbox: number[] }) => b.source_bbox);
+ expect(tight).toHaveLength(6);
+ for (const b of six) expect(tight.some((t) => t[0] <= b[0] && t[1] <= b[1] && t[2] >= b[2] && t[3] >= b[3] && (t[2] - t[0]) * (t[3] - t[1]) < 2 * (b[2] - b[0]) * (b[3] - b[1]))).toBe(true);
+ });
+
+ it("joins a mark cut by a tile's edge and seen whole by the photo's scan", () => {
+ const full = rep(1536, 1152, [{ b: [600, 130, 860, 250] }]);
+ const tiles = [rep(877, 658, [{ b: [600, 130, 877, 250] }]), rep(877, 658, [{ b: [0, 130, 201, 250] }]), rep(877, 658, []), rep(877, 658, [])];
+ const merged = JSON.parse(W.mergeScanReports(full, tiles)!);
+ expect(merged.boxes.map((b: { source_bbox: number[] }) => b.source_bbox)).toEqual([[600, 130, 877, 250]]);
+ });
+
+ it("keeps a less sure mark off, and a photo with no marks clean", () => {
+ const none = rep(1000, 800, [], "no_overlay_detected");
+ const tiles = W.scanTiles(1000, 800).map(([x0, y0, x1, y1]) => rep(x1 - x0, y1 - y0, []));
+ expect(JSON.parse(W.mergeScanReports(none, tiles)!)).toMatchObject({ boxes: [], rejected_boxes: [], status: "no_overlay_detected" });
+ const unsure = [rep(571, 457, [{ b: [10, 10, 60, 40], c: 0.5 }]), ...tiles.slice(1)];
+ const merged = JSON.parse(W.mergeScanReports(none, unsure)!);
+ expect(merged).toMatchObject({ boxes: [], status: "needs_review" });
+ expect(W.parseScanReport(JSON.stringify(merged))!.regions.map((r) => r.on)).toEqual([false]);
+ });
+
+ it("gives the photo's report back as it came when a tile can't be read, and null without one", () => {
+ const full = rep(1536, 1152, [{ b: [10, 10, 100, 60] }]);
+ expect(W.mergeScanReports(full, [null, null, null, null])).toBe(full);
+ expect(W.mergeScanReports(full, ["{", "", "x", "y"])).toBe(full);
+ expect(W.mergeScanReports(null, [full, full, full, full])).toBeNull();
+ });
+
+ it("the provider merges the tiles into the one report the page reads", () => {
+ const full = rep(1536, 1152, [{ b: [0, 0, 1536, 1151] }]);
+ const t = (b: number[][]) => ({ text: [rep(877, 658, b.map((x) => ({ b: x })))] });
+ const outs = collectOutputs(
+ { outputs: { "23": { text: [full] }, "70": t([[69, 127, 346, 247]]), "71": t([[454, 127, 731, 247]]), "72": t([]), "73": t([]) } },
+ entry("image-watermark-scan-qwen3vl"),
+ );
+ expect(outs).toHaveLength(1);
+ expect(W.parseScanReport(outs[0].text)!.regions.map((r) => r.box)).toEqual([
+ [69, 127, 346, 247],
+ [1113, 127, 1390, 247],
+ ]);
+ });
+});
+
describe("11. the repair's verdict and the Library", () => {
it("folds QWMFinal's report into the picture's meta, never a result of its own", () => {
const outs = collectOutputs(
diff --git a/workflows/comfyui/image-watermark-scan-qwen3vl.json b/workflows/comfyui/image-watermark-scan-qwen3vl.json
index 77e78827..92c53019 100644
--- a/workflows/comfyui/image-watermark-scan-qwen3vl.json
+++ b/workflows/comfyui/image-watermark-scan-qwen3vl.json
@@ -47,5 +47,333 @@
1
]
}
+ },
+ "40": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "The photo's size"
+ }
+ },
+ "41": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a * 4 // 7",
+ "values.a": [
+ "40",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Tile width (4/7 of the photo)"
+ }
+ },
+ "42": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a * 4 // 7",
+ "values.a": [
+ "40",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Tile height (4/7 of the photo)"
+ }
+ },
+ "43": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a - a * 4 // 7",
+ "values.a": [
+ "40",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Right tiles' left edge"
+ }
+ },
+ "44": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a - a * 4 // 7",
+ "values.a": [
+ "40",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom tiles' top edge"
+ }
+ },
+ "50": {
+ "class_type": "ImageCrop",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "width": [
+ "41",
+ 1
+ ],
+ "height": [
+ "42",
+ 1
+ ],
+ "x": 0,
+ "y": 0
+ },
+ "_meta": {
+ "title": "Top left tile"
+ }
+ },
+ "51": {
+ "class_type": "ImageCrop",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "width": [
+ "41",
+ 1
+ ],
+ "height": [
+ "42",
+ 1
+ ],
+ "x": [
+ "43",
+ 1
+ ],
+ "y": 0
+ },
+ "_meta": {
+ "title": "Top right tile"
+ }
+ },
+ "52": {
+ "class_type": "ImageCrop",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "width": [
+ "41",
+ 1
+ ],
+ "height": [
+ "42",
+ 1
+ ],
+ "x": 0,
+ "y": [
+ "44",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom left tile"
+ }
+ },
+ "53": {
+ "class_type": "ImageCrop",
+ "inputs": {
+ "image": [
+ "1",
+ 0
+ ],
+ "width": [
+ "41",
+ 1
+ ],
+ "height": [
+ "42",
+ 1
+ ],
+ "x": [
+ "43",
+ 1
+ ],
+ "y": [
+ "44",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom right tile"
+ }
+ },
+ "60": {
+ "class_type": "QWMDetect",
+ "inputs": {
+ "image": [
+ "50",
+ 0
+ ],
+ "clip": [
+ "2",
+ 0
+ ],
+ "mode": "auto_qwen",
+ "boxes_json": "{\"coordinate_space\":\"pixels\",\"boxes\":[]}",
+ "detection_side": 1536,
+ "expand": 20,
+ "max_tokens": 2048,
+ "hint": "",
+ "edit_prompt": "",
+ "padding_ratio": 0.35,
+ "manual_mask": [
+ "1",
+ 1
+ ],
+ "min_confidence": 0.65
+ },
+ "_meta": {
+ "title": "Find the marks: top left tile"
+ }
+ },
+ "61": {
+ "class_type": "QWMDetect",
+ "inputs": {
+ "image": [
+ "51",
+ 0
+ ],
+ "clip": [
+ "2",
+ 0
+ ],
+ "mode": "auto_qwen",
+ "boxes_json": "{\"coordinate_space\":\"pixels\",\"boxes\":[]}",
+ "detection_side": 1536,
+ "expand": 20,
+ "max_tokens": 2048,
+ "hint": "",
+ "edit_prompt": "",
+ "padding_ratio": 0.35,
+ "manual_mask": [
+ "1",
+ 1
+ ],
+ "min_confidence": 0.65
+ },
+ "_meta": {
+ "title": "Find the marks: top right tile"
+ }
+ },
+ "62": {
+ "class_type": "QWMDetect",
+ "inputs": {
+ "image": [
+ "52",
+ 0
+ ],
+ "clip": [
+ "2",
+ 0
+ ],
+ "mode": "auto_qwen",
+ "boxes_json": "{\"coordinate_space\":\"pixels\",\"boxes\":[]}",
+ "detection_side": 1536,
+ "expand": 20,
+ "max_tokens": 2048,
+ "hint": "",
+ "edit_prompt": "",
+ "padding_ratio": 0.35,
+ "manual_mask": [
+ "1",
+ 1
+ ],
+ "min_confidence": 0.65
+ },
+ "_meta": {
+ "title": "Find the marks: bottom left tile"
+ }
+ },
+ "63": {
+ "class_type": "QWMDetect",
+ "inputs": {
+ "image": [
+ "53",
+ 0
+ ],
+ "clip": [
+ "2",
+ 0
+ ],
+ "mode": "auto_qwen",
+ "boxes_json": "{\"coordinate_space\":\"pixels\",\"boxes\":[]}",
+ "detection_side": 1536,
+ "expand": 20,
+ "max_tokens": 2048,
+ "hint": "",
+ "edit_prompt": "",
+ "padding_ratio": 0.35,
+ "manual_mask": [
+ "1",
+ 1
+ ],
+ "min_confidence": 0.65
+ },
+ "_meta": {
+ "title": "Find the marks: bottom right tile"
+ }
+ },
+ "70": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "60",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Top left tile's report"
+ }
+ },
+ "71": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "61",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Top right tile's report"
+ }
+ },
+ "72": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "62",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom left tile's report"
+ }
+ },
+ "73": {
+ "class_type": "PreviewAny",
+ "inputs": {
+ "source": [
+ "63",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Bottom right tile's report"
+ }
}
}
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index d68a7d57..8cdce0ec 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -10869,6 +10869,26 @@
"node": "23",
"kind": "text",
"role": "report"
+ },
+ {
+ "node": "70",
+ "kind": "text",
+ "role": "scan-tile"
+ },
+ {
+ "node": "71",
+ "kind": "text",
+ "role": "scan-tile"
+ },
+ {
+ "node": "72",
+ "kind": "text",
+ "role": "scan-tile"
+ },
+ {
+ "node": "73",
+ "kind": "text",
+ "role": "scan-tile"
}
],
"defaults": {},
@@ -10893,7 +10913,7 @@
"vramGb": 10,
"license": "Qwen3-VL 8B Apache-2.0; ComfyUI-Qwen-Watermark nodes MIT",
"validated": false,
- "notes": "The pack's detect-only workflow (qwen_watermark_detection.api.json) without its preview and save nodes: QWMDetect auto_qwen reads the picture once with Qwen3-VL 8B (int8, detection side 1536, up to 2048 tokens so a mark tiled over the photo comes back one box per copy, expand 20, padding 0.35, min confidence 0.65) and PreviewAny shows its report, the only output: JSON {coordinate_space: \"pixels\", image_size, boxes: [{label, bbox (padded repair box), source_bbox (tight), overlay_type, mask_method, confidence}], rejected_boxes (below 0.65), status}. The app draws source_bbox and sends the kept boxes to image-watermark-remove-qwen21. The GPU pre-flight also checks image-watermark-remove-qwen21 for a scan (its companion graph)."
+ "notes": "The pack's detect-only workflow (qwen_watermark_detection.api.json) without its preview and save nodes: QWMDetect auto_qwen reads the picture once with Qwen3-VL 8B (int8, detection side 1536, up to 2048 tokens, expand 20, padding 0.35, min confidence 0.65) and PreviewAny shows its report: JSON {coordinate_space: \"pixels\", image_size, boxes: [{label, bbox (padded repair box), source_bbox (tight), overlay_type, mask_method, confidence}], rejected_boxes (below 0.65), status}. Four more QWMDetect read the photo in quarters (ImageCrop, each 4/7 of the width and height from GetImageSize and ComfyMathExpression a * 4 // 7, so a mark repeated over the photo comes back copy by copy); their reports (role scan-tile) are merged into the report by the provider (mergeScanReports). The app draws source_bbox and sends the kept boxes to image-watermark-remove-qwen21. The GPU pre-flight also checks image-watermark-remove-qwen21 for a scan (its companion graph)."
},
{
"id": "image-watermark-remove-qwen21",
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index 4cd6c094..0d584a3b 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,6 +1,6 @@
{
"v": 1,
- "hash": "c9059f92fe47c41dfb1b7d7eca6d04f107f0efac575ee3d74fc1d13a5aa84db9",
+ "hash": "f4e61609c9cdefb652319e233bc4934e80f0b013f2b138105844d90a682be4d8",
"comfyui": {"min":"0.42.0","testedCommit":"5841c187"},
"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","sams","text_encoders","thinksound","upscale_models","vae"],
"sentinels": ["AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","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","H3AdvancedSwapPlan","H3CharacterSwapAssemble","H3CharacterSwapController","H3CharacterSwapExpandMask","H3CharacterSwapModels","H3CharacterSwapPrepareVideo","H3CharacterSwapRecoverMasks","H3CharacterSwapSelectSubject","H3CharacterSwapSettings","H3CharacterSwapShot","H3CharacterSwapWindowPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FaceMaskSAM","H3FaceStitch","H3FaceTrackCrop","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RelayAppendWindow","H3RelayApplyEditMask","H3RelayApplyHistory","H3RelayExpandMask","H3RelayFinishWindows","H3RelayPrepareSource","H3RelayRecoverMasks","H3RelayReviewWindows","H3RelaySamplingMemory","H3RelaySelectMask","H3RelayTextMemory","H3RelayWindowInputs","H3RelayWindowPlan","H3RoleMask","H3SLAAttention","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles","HunyuanDependenciesLoader","HunyuanFoleySampler","HunyuanModelLoader","INTConstant","Ideogram4Scheduler","ImageBatchExtendWithOverlap","ImageDetailContrast","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","Metric3D-NormalMapPreprocessor","MiniMaxH3ChainAssemble","MiniMaxH3ChainContext","MiniMaxH3ChainCurrent","MiniMaxH3ChainLoopEnd","MiniMaxH3ChainLoopStart","MiniMaxH3ChainPlanModern","MiniMaxH3ChainReview","MiniMaxH3ChainSegmentSave","MiniMaxH3ContexMaskedTarget","MiniMaxH3FantasticVideoEditLatent","MiniMaxH3GenerationProfile","MiniMaxH3LoopTrim","MiniMaxH3SourceTimeline","MiniMaxH3TurboLoRA","MiniMaxH3TurboSampler","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","OpenH3RegenFastVAEDecode","OpenH3RegenFinish","OpenH3RegenLora","OpenH3RegenPrepareDraft","OpenH3RegenRefineLatent","OpenH3RegenSigmas","OpenH3RegenUpscale","OpenH3SaveRefinedLatent","Orion4D_FXMax_DCTLToneMapper","PasteBackFuobeLive","QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect","Qwen21EncodeFuobeLive","Qwen21ReferenceFuobeLive","QwenImage21Cache","REUSEEnhance","REUSELoader","RIFE VFI","RMBG","ReActorFaceSwap","RemoveBackground","SAM3_Detect","SAM3_TrackToMask","SAM3_VideoTrack","SAMLoader","SaveImageFuobeLive","SeedVR2Conditioning","SeedVR2PostProcessing","SeedVR2Preprocess","SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas","TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO","TextEncodeFibo2","TextEncodeKrea2OstrisEdit","TextEncodeQwenImage21","ThinkSoundFeatureUtilsLoader","ThinkSoundModelLoader","ThinkSoundSampler","Trellis2Conditioning","Trellis2ShapeStage","Trellis2TextureStage","Trellis2UpsampleStage","VHS_BatchManager","VHS_LoadAudioUpload","VHS_LoadVideo","VHS_SelectEveryNthImage","VHS_VideoCombine","VHS_VideoInfo","VHS_VideoInfoLoaded","VRAM_Debug","VideoDepthAnythingOutput","VideoDepthAnythingProcess","VideoLengthAdjuster","ViggleTurboLora","ViggleTurboSigmas","VoxCPM2_Clone","VoxCPM2_TTS","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoDecode","WanVideoEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader","ZenImage21AdapterLoader","ZenImage21TextEncode"],
@@ -329,7 +329,7 @@
"image-vectorize-vtracer": {"core":["LoadImage","SaveSVGNode"],"packs":{"ComfyUI-ToSVG":["TS_ImageToSVGStringColor_Vtracer","TS_SVGStringToSVGBytesIO"]},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"image-watermark-remove-qwen21": {"core":["CLIPLoader","KSampler","LoadImage","ModelAttentionBackend","PreviewAny","QwenImage21Cache","SaveImage","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{"ComfyUI-Qwen-Watermark":["QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","sams/sam_vit_b_01ec64.pth","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":[],"vramGb":20,"isolated":false,"firstRun":[]},
"image-watermark-remove-qwen21-brush": {"core":["CLIPLoader","KSampler","LoadImage","LoadImageMask","ModelAttentionBackend","PreviewAny","QwenImage21Cache","SaveImage","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{"ComfyUI-Qwen-Watermark":["QWMComposite","QWMDetect","QWMFinal","QWMPrepare","QWMRefineMask","QWMResidualDetect"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","sams/sam_vit_b_01ec64.pth","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":[],"vramGb":20,"isolated":false,"firstRun":[]},
- "image-watermark-scan-qwen3vl": {"core":["CLIPLoader","LoadImage","PreviewAny"],"packs":{"ComfyUI-Qwen-Watermark":["QWMDetect"]},"files":["text_encoders/qwen3vl_8b_int8_convrot.safetensors"],"optional":[],"vramGb":10,"isolated":false,"firstRun":[]},
+ "image-watermark-scan-qwen3vl": {"core":["CLIPLoader","ComfyMathExpression","GetImageSize","ImageCrop","LoadImage","PreviewAny"],"packs":{"ComfyUI-Qwen-Watermark":["QWMDetect"]},"files":["text_encoders/qwen3vl_8b_int8_convrot.safetensors"],"optional":[],"vramGb":10,"isolated":false,"firstRun":[]},
"infinitetalk-native": {"core":["AudioEncoderEncode","AudioEncoderLoader","BasicScheduler","BatchImagesNode","CFGGuider","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","CreateVideo","KSamplerSelect","LoadAudio","LoadImage","LoraLoaderModelOnly","ModelPatchLoader","PrimitiveInt","RandomNoise","SamplerCustomAdvanced","SaveVideo","UNETLoader","VAEDecode","VAELoader","WanInfiniteTalkToVideo"],"packs":{},"files":["audio_encoders/wav2vec2-chinese-base_fp16.safetensors","diffusion_models/Wan2_1-I2V-14B-480p_fp8_e4m3fn_scaled_KJ.safetensors","loras/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","model_patches/wan2.1_infiniteTalk_single_fp16.safetensors","text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors","vae/Wan2_1_VAE_bf16.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
"infinitetalk-wanwrapper": {"core":["CLIPVisionLoader","LoadAudio","LoadImage"],"packs":{"ComfyUI-KJNodes":["GetImageSizeAndCount","INTConstant","ImageResizeKJv2"],"ComfyUI-VideoHelperSuite":["VHS_VideoCombine"],"ComfyUI-WanVideoWrapper":["DownloadAndLoadWav2VecModel","MultiTalkModelLoader","MultiTalkWav2VecEmbeds","WanVideoBlockSwap","WanVideoClipVisionEncode","WanVideoImageToVideoMultiTalk","WanVideoLoraSelect","WanVideoModelLoader","WanVideoPassImagesFromSamples","WanVideoSampler","WanVideoTextEncodeCached","WanVideoVAELoader"]},"files":["clip_vision/clip_vision_h.safetensors","diffusion_models/Wan2_1-InfiniteTalk_Single_Q8.gguf","diffusion_models/wan2.1-i2v-14b-480p-Q8_0.gguf","loras/lightx2v_I2V_14B_480p_cfg_step_distill_rank64_bf16.safetensors","text_encoders/umt5-xxl-enc-bf16.safetensors","vae/Wan2_1_VAE_bf16.safetensors"],"optional":["loras/Wan2.1_I2V_14B_FusionX_LoRA.safetensors"],"vramGb":16,"isolated":false,"firstRun":["DownloadAndLoadWav2VecModel downloads TencentGameMate/chinese-wav2vec2-base into models/transformers on first run"],"validated":true},
"interpolate-film": {"core":["ComfyMathExpression","CreateVideo","FrameInterpolate","FrameInterpolationModelLoader","GetVideoComponents","LoadVideo","PrimitiveInt","SaveVideo"],"packs":{},"files":["frame_interpolation/film_net_fp16.safetensors"],"optional":[],"vramGb":4,"isolated":false,"firstRun":[],"validated":true},