The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Apps: Tap to Recolor changes only the piece you tap
Adarsh20bf1dfaf3cb
diff --git a/scripts/comfy/hand-built/qwen-image-21-recolor.json b/scripts/comfy/hand-built/qwen-image-21-recolor.jsonindex 5fc85372..acbddf82 100644--- a/scripts/comfy/hand-built/qwen-image-21-recolor.json+++ b/scripts/comfy/hand-built/qwen-image-21-recolor.json@@ -47,54 +47,39 @@"title": "Load Image - The photo"}},- "12": {- "inputs": {- "value": "[{\"x\": 512, \"y\": 512}]"- },- "class_type": "PrimitiveStringMultiline",- "_meta": {- "title": "Taps on the piece (JSON points, photo pixels)"- }- },- "13": {- "inputs": {- "value": ""- },- "class_type": "PrimitiveStringMultiline",- "_meta": {- "title": "Taps to leave out (JSON points, or empty)"- }- },"14": {"inputs": {- "threshold": 0.5,- "refine_iterations": 2,- "individual_masks": false,- "model": [- "4",- 0- ],+ "touches": "{\"v\": 1, \"items\": [{\"t\": \"name\", \"w\": \"clothing\", \"x\": 512, \"y\": 512, \"op\": 1}]}",+ "grow": 0,+ "soften": 0,+ "smooth": 0,+ "fill_holes": true,+ "if_nothing": "empty mask",+ "free_vram": true,+ "invert": false,+ "ask": "",+ "fine_edges": "off","image": ["10",0],- "positive_coords": [- "12",+ "model": [+ "4",0],- "negative_coords": [- "13",- 0+ "clip": [+ "4",+ 1]},- "class_type": "SAM3_Detect",+ "class_type": "AUSBOSS_NODES_MaskByTouch","_meta": {- "title": "SAM 3.1 - The tapped piece, one mask"+ "title": "Mask by Touch - The thing of that name under each tap"}},"15": {"inputs": {- "expand": 4,+ "expand": 1,"tapered_corners": true,"mask": ["14",@@ -109,7 +94,7 @@"20": {"inputs": {"context_factor": 1.4,- "blend_pixels": 8,+ "blend_pixels": 2,"output_multiple": 32,"target_width": 0,"target_height": 0,@@ -237,7 +222,7 @@"27": {"inputs": {"seed": 0,- "steps": 25,+ "steps": 20,"cfg": 1,"sampler_name": "euler","scheduler": "simple",diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex 8bfb44a9..da7e25d8 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -3145,11 +3145,11 @@ export const SPEC = [},{id: 'qwen-image-21-recolor',- title: 'Qwen-Image 2.1 Recolor (SAM 3.1 tap mask, crop, repaint, paste back)',+ title: 'Qwen-Image 2.1 Recolor (tap mask by name, crop, repaint, paste back)',capability: 'recolor',handBuilt: 'hand-built/qwen-image-21-recolor.json',bindings: {- image: [b('10', 'image')], positiveCoords: [b('12', 'value')], negativeCoords: [b('13', 'value')], maskGrow: [b('15', 'expand')],+ image: [b('10', 'image')], touches: [b('14', 'touches')], maskGrow: [b('15', 'expand')],prompt: [b('22', 'values.a')], seed: [b('27', 'seed')], steps: [b('27', 'steps')],},outputs: [{ node: '90', kind: 'image' }],@@ -3157,13 +3157,17 @@ export const SPEC = [license: 'Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Meta SAM License (SAM 3.1); AusBoss nodes MIT',modelUrls: { 'sam3.1_multiplex_fp16.safetensors': 'https://huggingface.co/Comfy-Org/sam3.1/resolve/7bb8374780a725b4353ed31f3a9395c9742b5621/checkpoints/sam3.1_multiplex_fp16.safetensors' },notes:- 'Tap to Recolor: qwen-image-21-inpaint with the mask made in the graph from the taps (the AusBoss example\'s Mask by Touch, on core SAM 3.1). ' +- 'positiveCoords / negativeCoords = JSON point lists [{"x":int,"y":int}] in the photo\'s pixels (PrimitiveStringMultiline -> SAM3_Detect point path, threshold 0.5, refine 2, one merged mask; ' +- 'negativeCoords may be empty) -> GrowMask maskGrow (4) so the anti-aliased edge changes too -> Crop For Inpaint (context 1.4, blend 8 px, multiple 32, 1.5 MP, bicubic) -> ' +- 'GrowMask 8 on the crop\'s mask -> StringFormat "{a} Keep everything else in the picture exactly the same." -> TextEncodeQwenImage21 with the crop as image 1 (resolution 0) -> ' +- 'VAEEncode + SetLatentNoiseMask -> QwenImage21Cache -> KSampler 25 steps, cfg 1, euler, simple -> SplitImageWithAlpha -> Stitch Inpaint (classic, colour match 0: a tone match ' +- 'would pull the new colour back). Only the tapped piece is sampled and pasted, so the rest of the photo stays as it was; a tap that finds nothing gives the photo back unchanged. ' +- 'Prompt: "Change the colour of <the piece> to <colour words (#hex)>. Keep its fabric, weave, folds, seams, stitching, sheen, print and shadows exactly as they are, so only the colour is new."',+ 'Tap to Recolor: qwen-image-21-inpaint with the mask made in the graph from the taps by AusBoss Mask by Touch on core SAM 3.1. ' ++ 'touches = the node\'s JSON {"v":1,"items":[{"t":"name","w":word,"x":int,"y":int,"op":1|0}]} in the photo\'s pixels (src/lib/catalog/recolor.ts recolorTouches): ' ++ 'each tap asks for the smallest thing of the piece\'s name under it (Jacket: jacket + clothing; Auto: clothing, bag, shoe, hat, scarf), a Leave out tap takes away a hand, arm, hair, ' ++ 'belt, bag strap or necklace under it. SAM 3.1\'s point prompt alone (SAM3_Detect) returned the whole person on every GPU test, so taps go through names. If nothing is found ' ++ 'the mask is empty and the photo comes back unchanged (if_nothing "empty mask"); free_vram unloads SAM before the repaint. -> GrowMask maskGrow (1) -> Crop For Inpaint ' ++ '(context 1.4, blend 2 px, multiple 32, 1.5 MP, bicubic: a tight paste, since a wider one showed a blotchy rim on flat studio backgrounds) -> GrowMask 8 on the crop\'s mask ' ++ '(the sampling mask: smaller left old-colour specks at the edge) -> StringFormat "{a} Keep everything else in the picture exactly the same." -> TextEncodeQwenImage21 with ' ++ 'the crop as image 1 (resolution 0) -> VAEEncode + SetLatentNoiseMask -> QwenImage21Cache -> KSampler 20 steps, cfg 1, euler, simple (16 looked the same as 25 on the tests) -> ' ++ 'SplitImageWithAlpha -> Stitch Inpaint (classic, colour match 0: a tone match would pull the new colour back). Outside the piece the photo is bit-identical. ' ++ 'RTX 5090: about 32 s per colour warm at 1.5 MP (target_megapixels 1.0 + 16 steps: 19 s, slightly softer stripes), peak 23 GB. ' ++ 'Prompt: "Change the colour of <the piece> (Auto: the outfit) to <colour words (#hex)>. Keep its fabric, weave, folds, seams, stitching, sheen, print and shadows exactly as they are, so only the colour is new."',},{id: 'qwen-image-21-outpaint',diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.jsonindex a48312aa..38757efc 100644--- a/scripts/comfy/validation-state.json+++ b/scripts/comfy/validation-state.json@@ -407,6 +407,12 @@"error": null,"at": "2026-11-02T01:11:11.304Z"},+ "qwen-image-21-recolor": {+ "sha256": "770927631d3423d8c72a087ec1bcaf9c3ae421415fc398809f47a1921670099f",+ "validated": true,+ "error": null,+ "at": "2026-11-02T09:12:49.843Z"+ },"qwen-image-2512-t2i": {"sha256": "c18da4a3488120bdcee722e4ae7d187385544ec4805753e7dae6946ddb6f6ba5","validated": true,diff --git a/src/lib/catalog/apps.ts b/src/lib/catalog/apps.tsindex fb2c7007..a1185e5b 100644--- a/src/lib/catalog/apps.ts+++ b/src/lib/catalog/apps.ts@@ -1063,7 +1063,7 @@ export const APPS: Preset[] = [badges: ["new"],tool: "recolor",options: [- { key: "item", label: "What is it?", choices: ITEMS.map((i) => ({ value: i.value, label: i.label, prompt: i.words })) },+ { key: "item", label: "What is it?", choices: ITEMS.map((i) => ({ value: i.value, label: i.label, prompt: i.words, extra: { recolorItem: i.value } })) },{key: "colour",label: "Colour",diff --git a/src/lib/catalog/recolor.ts b/src/lib/catalog/recolor.tsindex f9118571..1c6aa67e 100644--- a/src/lib/catalog/recolor.ts+++ b/src/lib/catalog/recolor.ts@@ -1,9 +1,10 @@/**- * Tap to Recolor: tap a piece of clothing (or anything) in a photo and pick a colour; only that piece changes, its- * fabric, folds and sheen kept. On the open engine SAM 3.1 turns the taps into a mask and Qwen-Image 2.1 repaints the- * piece inside it (workflows/comfyui/qwen-image-21-recolor.json), so the rest of the photo stays as it was.+ * Tap to Recolor: tap a piece of clothing (or a bag, shoes, a hat) in a photo and pick a colour; only that piece+ * changes, its fabric, folds and sheen kept. On the open engine SAM 3.1 finds the piece under the taps by its name+ * (AusBoss Mask by Touch) and Qwen-Image 2.1 repaints it inside that mask+ * (workflows/comfyui/qwen-image-21-recolor.json), so the rest of the photo stays as it was.*- * Pure module (the swatches, the words, the taps as SAM's point lists, the request a run sends), shared by the app's+ * Pure module (the swatches, the words, the taps as the mask node's touches, the request a run sends), shared by the app's* page (src/components/recolor), the catalog, the ComfyUI provider and the tests.*/import type { GenerationRequest, PixelPoint } from "./types";@@ -12,7 +13,7 @@ export const RECOLOR = {appId: "app-tap-to-recolor",modelId: "oss-recolor",feature: "app:app-tap-to-recolor",- /** Taps on one photo (SAM 3.1 reads a few points well; more only adds noise). */+ /** Taps of each kind on one photo. */maxPoints: 8,/** Colours one Recolor makes, each its own run. */maxColours: 4,@@ -40,7 +41,7 @@ export const SWATCHES: Swatch[] = [{ value: "camel", label: "Camel", hex: "#B98B5E", words: "warm camel" },{ value: "emerald", label: "Emerald", hex: "#0E6B4F", words: "deep emerald green" },{ value: "sage", label: "Sage", hex: "#9CAF94", words: "muted sage green" },- { value: "cobalt", label: "Cobalt", hex: "#1F48A8", words: "vivid cobalt blue" },+ { value: "cobalt", label: "Cobalt", hex: "#1F48A8", words: "deep cobalt blue" },{ value: "navy", label: "Navy", hex: "#1B2541", words: "dark navy" },{ value: "lilac", label: "Lilac", hex: "#B7A3D9", words: "soft lilac" },];@@ -48,18 +49,27 @@ export const SWATCHES: Swatch[] = [/** The option value a custom colour runs under: its words come in as the run's prompt. */export const CUSTOM_COLOUR = "custom";-export const ITEMS: { value: string; label: string; words: string }[] = [- // The crop the graph repaints is centred on the tapped piece.- { value: "auto", label: "Auto", words: "the piece in the middle of the picture" },- { value: "dress", label: "Dress", words: "the dress" },- { value: "top", label: "Top", words: "the top" },- { value: "jacket", label: "Jacket", words: "the jacket" },- { value: "trousers", label: "Trousers", words: "the trousers" },- { value: "skirt", label: "Skirt", words: "the skirt" },- { value: "bag", label: "Bag", words: "the bag" },- { value: "shoes", label: "Shoes", words: "the shoes" },+/**+ * The pieces a tap can be. `words`: what the repaint model reads. `find`: the names SAM 3.1 looks for under each tap+ * (of the things with that name, the smallest under the tap; a tap's names are joined). SAM's point prompt on its own+ * takes the whole person, so every tap goes through names. A named garment also takes "clothing", so a coat tapped as+ * Jacket is still found.+ */+export const ITEMS: { value: string; label: string; words: string; find: string[] }[] = [+ // The repaint only reaches the masked piece, so words for the whole outfit point the model at it.+ { value: "auto", label: "Auto", words: "the outfit", find: ["clothing", "bag", "shoe", "hat", "scarf"] },+ { value: "dress", label: "Dress", words: "the dress", find: ["dress", "clothing"] },+ { value: "top", label: "Top", words: "the top", find: ["top", "clothing"] },+ { value: "jacket", label: "Jacket", words: "the jacket", find: ["jacket", "clothing"] },+ { value: "trousers", label: "Trousers", words: "the trousers", find: ["trousers", "clothing"] },+ { value: "skirt", label: "Skirt", words: "the skirt", find: ["skirt", "clothing"] },+ { value: "bag", label: "Bag", words: "the bag", find: ["bag", "handbag"] },+ { value: "shoes", label: "Shoes", words: "the shoes", find: ["shoe"] },];+/** What a "Leave out" tap takes away: whichever of these is under it (a hand, hair, a strap or a belt over the piece). */+export const LEAVE_OUT = ["hand", "arm", "hair", "belt", "bag strap", "necklace"];+/** "#abc" / "abc" / "#AABBCC" → "#AABBCC", or null. */export function normaliseHex(s: string): string | null {const m = s.trim().replace(/^#/, "").match(/^([0-9a-f]{3}|[0-9a-f]{6})$/i);@@ -154,12 +164,12 @@ export function colourChip(colour: string): { label: string; hex: string } | nul}/**- * The taps as SAM 3.1's point lists (JSON `[{"x":int,"y":int}]`, the photo's pixels): positive and negative, "" for- * none. `from` is the size of the picture the taps were placed on, `to` the photo's own size when known: taps on a- * smaller copy are scaled up. Points land inside the photo.+ * The taps in the photo's pixels: [add, leave out], at most RECOLOR.maxPoints of each. `from` is the size of the+ * picture the taps were placed on, `to` the photo's own size when known: taps on a smaller copy are scaled up. Points+ * land inside the photo.*/-export function recolorCoords(points: PixelPoint[] | undefined, to?: { width: number; height: number }, from?: { width: number; height: number }): [string, string] {- if (!points?.length) return ["", ""];+export function recolorPoints(points: PixelPoint[] | undefined, to?: { width: number; height: number }, from?: { width: number; height: number }): [{ x: number; y: number }[], { x: number; y: number }[]] {+ if (!points?.length) return [[], []];const kx = to && from && from.width > 0 ? to.width / from.width : 1;const ky = to && from && from.height > 0 ? to.height / from.height : 1;const at = (p: PixelPoint) => {@@ -172,8 +182,29 @@ export function recolorCoords(points: PixelPoint[] | undefined, to?: { width: nureturn { x: Math.max(0, x), y: Math.max(0, y) };};const pick = (neg: boolean) => points.filter((p) => Number.isFinite(p.x) && Number.isFinite(p.y) && (p.label === "negative") === neg).slice(0, RECOLOR.maxPoints).map(at);- const [pos, neg] = [pick(false), pick(true)];- return [pos.length ? JSON.stringify(pos) : "", neg.length ? JSON.stringify(neg) : ""];+ return [pick(false), pick(true)];+}++/**+ * The taps as the mask node's touches (`{"v":1,"items":[{"t":"name","w":word,"x":int,"y":int,"op":1|0}]}`, the photo's+ * pixels): every "Add to it" tap asks for the piece's names under it, then every "Leave out" tap takes away what+ * LEAVE_OUT names under it. "" when no tap adds anything. Sizes as in recolorPoints.+ */+export function recolorTouches(points: PixelPoint[] | undefined, item?: string, to?: { width: number; height: number }, from?: { width: number; height: number }): string {+ const [pos, neg] = recolorPoints(points, to, from);+ if (!pos.length) return "";+ const find = (ITEMS.find((i) => i.value === item) ?? ITEMS[0]).find;+ const items = [+ ...find.flatMap((w) => pos.map((p) => ({ t: "name", w, x: p.x, y: p.y, op: 1 }))),+ ...neg.flatMap((p) => LEAVE_OUT.map((w) => ({ t: "name", w, x: p.x, y: p.y, op: 0 }))),+ ];+ return JSON.stringify({ v: 1, items });+}++/** The piece a run's taps are on (params.extra.recolorItem, set by the "What is it?" choice); Auto when unknown. */+export function recolorItem(extra: Record<string, unknown> | undefined): string {+ const v = String(extra?.recolorItem ?? "");+ return ITEMS.some((i) => i.value === v) ? v : "auto";}/** The size the taps were placed on, as a run carries it (params.extra.frameWidth / frameHeight). */@@ -200,7 +231,7 @@ export function recolorRequest(o: { image: string; points: PixelPoint[]; frame:presetOptions: { item, colour: swatch ? o.colour : CUSTOM_COLOUR },params: {points: o.points.slice(0, RECOLOR.maxPoints * 2).map((p) => ({ x: Math.round(p.x), y: Math.round(p.y), label: p.label === "negative" ? "negative" : "positive" })),- extra: { frameWidth: Math.round(o.frame.width), frameHeight: Math.round(o.frame.height) },+ extra: { frameWidth: Math.round(o.frame.width), frameHeight: Math.round(o.frame.height), recolorItem: item },...(o.seed !== undefined ? { seed: o.seed } : {}),},};diff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.tsindex 5c472d24..44e6df90 100644--- a/src/server/providers/comfyui.ts+++ b/src/server/providers/comfyui.ts@@ -68,7 +68,7 @@ import { RESTORE_EXTRA_KEYS, restoreGraph, restoreJob, type RestoreJob } from "@import { getMaker, makerPrompt, OPEN_TARGET_PROBLEM, ORIGINALS, swapTarget } from "@/lib/catalog/genjutsu";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 { RECOLOR_TAP_FIRST, recolorCoords, tapFrame } from "@/lib/catalog/recolor";+import { RECOLOR_TAP_FIRST, recolorItem, recolorTouches, tapFrame } from "@/lib/catalog/recolor";import type { GenInput, MediaKind, ModelRoute, Operation } from "@/lib/catalog/types";import { imageSize } from "@/lib/image-size";import { probeMedia, type MediaInfo } from "@/lib/media-probe";@@ -1599,14 +1599,14 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,if (!restore.reference) studioLeft.push("image");}// Tap to Recolor: the taps (params.points, in the pixels of the picture they were placed on, params.extra.frameWidth /- // frameHeight) become SAM 3.1's point lists in the photo's own pixels. Only the taps say what changes.+ // frameHeight) and the piece they are on (params.extra.recolorItem) become the mask node's touches in the photo's own+ // pixels: SAM 3.1 takes the thing of that name under each tap. Only the taps say what changes.if (manifest.capability === "recolor") {const photo = ctx.media?.(String(values.image ?? ""));- const [pos, neg] = recolorCoords(input.points, photo?.width && photo.height ? { width: photo.width, height: photo.height } : undefined, tapFrame(extra));- if (!pos) throw new ProviderError(RECOLOR_TAP_FIRST);- values.positiveCoords = pos;- values.negativeCoords = neg;- for (const k of ["frameWidth", "frameHeight", "positiveCoords", "negativeCoords"]) delete extra[k];+ const touches = recolorTouches(input.points, recolorItem(extra), photo?.width && photo.height ? { width: photo.width, height: photo.height } : undefined, tapFrame(extra));+ if (!touches) throw new ProviderError(RECOLOR_TAP_FIRST);+ values.touches = touches;+ for (const k of ["frameWidth", "frameHeight", "recolorItem", "touches"]) delete extra[k];}// Genjutsu's Object swap: SAM 3.1 follows what goes (params.extra.maskPrompt, or the "replace … with" part of the prompt,// as Genjutsu sends it), the reference comes in, the prompt describes the result. Insert: the painted spot and thediff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.tsindex 89c30a82..452c730f 100644--- a/tests/comfy-library-4.test.ts+++ b/tests/comfy-library-4.test.ts@@ -120,7 +120,6 @@ describe("round-4 ComfyUI workflows", () => {"relight-scene-read","qwen-image-21-live-edit","qwen-image-21-inpaint",- "qwen-image-21-recolor","qwen-image-21-outpaint",// Qwen-Image 2.1's speeds, its next scene and its 16 GB route: unvalidated like their base graphs until// they run on a GPU (tests/qwen21-fast.test.ts).diff --git a/tests/recolor.test.ts b/tests/recolor.test.tsindex be8a8de4..399ab15a 100644--- a/tests/recolor.test.ts+++ b/tests/recolor.test.ts@@ -60,9 +60,9 @@ describe("Tap to Recolor in the catalog", () => {expect(m.options.requires).toMatchObject({ images: 1, points: true, msg: R.RECOLOR_TAP_FIRST });});- it("lists the graph with its bindings, its four files and its pack, unvalidated until it runs on a GPU", () => {+ it("lists the graph with its bindings, its four files and its pack, validated", () => {expect(entry.capability).toBe("recolor");- expect(Object.keys(entry.bindings).sort()).toEqual(["filenamePrefix", "image", "maskGrow", "negativeCoords", "positiveCoords", "prompt", "seed", "steps"]);+ expect(Object.keys(entry.bindings).sort()).toEqual(["filenamePrefix", "image", "maskGrow", "prompt", "seed", "steps", "touches"]);expect(entry.models.map((m) => m.file).sort()).toEqual(["qwen3vl_8b_int8_convrot.safetensors","qwen_image_2.1_int8_convrot.safetensors",@@ -71,8 +71,8 @@ describe("Tap to Recolor in the catalog", () => {]);for (const m of entry.models) expect(m.url, m.file).toMatch(/^https:\/\/huggingface\.co\/Comfy-Org\//);expect(entry.customNodes.map((c) => c.name)).toEqual(["ausboss-nodes"]);- expect(entry.validated).toBe(false);- expect(entry.defaults).toMatchObject({ steps: 25, maskGrow: 4 });+ expect(entry.validated).toBe(true);+ expect(entry.defaults).toMatchObject({ steps: 20, maskGrow: 1 });const req = read("requirements.json") as { workflows: Record<string, { files: string[]; packs: Record<string, string[]> }> };expect(req.workflows["qwen-image-21-recolor"].files).toContain("checkpoints/sam3.1_multiplex_fp16.safetensors");expect(Object.keys(req.workflows["qwen-image-21-recolor"].packs)).toEqual(["ausboss-nodes"]);@@ -86,40 +86,53 @@ describe("Tap to Recolor in the catalog", () => {describe("Tap to Recolor's graph", () => {const wf = read("qwen-image-21-recolor.json") as ComfyWorkflow;- it("masks the tapped piece with SAM 3.1's point path, crops around it, repaints it and stitches it back without a tone match", () => {- expect(wf["14"].class_type).toBe("SAM3_Detect");- expect(wf["14"].inputs).toMatchObject({ positive_coords: ["12", 0], negative_coords: ["13", 0], model: ["4", 0], image: ["10", 0] });- expect(wf["14"].inputs.conditioning).toBeUndefined();- expect(wf["20"].inputs.mask).toEqual(["15", 0]);+ it("masks the tapped piece by name with SAM 3.1, crops around it, repaints it and stitches it back tightly without a tone match", () => {+ expect(wf["14"].class_type).toBe("AUSBOSS_NODES_MaskByTouch");+ expect(wf["14"].inputs).toMatchObject({ model: ["4", 0], clip: ["4", 1], image: ["10", 0], if_nothing: "empty mask", free_vram: true, grow: 0 });+ expect(wf["15"].inputs).toMatchObject({ mask: ["14", 0], expand: 1 });+ expect(wf["20"].inputs).toMatchObject({ mask: ["15", 0], blend_pixels: 2 });expect(wf["25"].class_type).toBe("SetLatentNoiseMask");- expect(wf["27"].inputs).toMatchObject({ steps: 25, cfg: 1, sampler_name: "euler", scheduler: "simple", denoise: 1 });+ expect(wf["27"].inputs).toMatchObject({ steps: 20, cfg: 1, sampler_name: "euler", scheduler: "simple", denoise: 1 });expect(wf["30"].class_type).toBe("AUSBOSS_NODES_StitchInpaint");expect(wf["30"].inputs.color_match).toBe(0);expect(wf["90"].inputs.images).toEqual(["30", 0]);});- it("binds the photo, the taps as point lists, the words, the seed and the run's prefix", async () => {- const { workflow } = await prepare({ prompt: "Change the colour of the dress to soft ivory (#F2EBDD).", images: ["photo.png"], points: taps, extra: { frameWidth: 1024, frameHeight: 1280 } } as GenInput);+ it("binds the photo, the taps as named touches, the words, the seed and the run's prefix", async () => {+ const { workflow } = await prepare({ prompt: "Change the colour of the dress to soft ivory (#F2EBDD).", images: ["photo.png"], points: taps, extra: { frameWidth: 1024, frameHeight: 1280, recolorItem: "dress" } } as GenInput);expect(at(workflow, "image")).toEqual(["photo.png"]);- expect(JSON.parse(String(at(workflow, "positiveCoords")[0]))).toEqual([- { x: 400, y: 600 },- { x: 420, y: 700 },+ const touches = JSON.parse(String(at(workflow, "touches")[0])) as { v: number; items: { t: string; w: string; x: number; y: number; op: number }[] };+ expect(touches.v).toBe(1);+ // Each tap asks for a dress, then for any clothing, under it; the Leave out tap takes away a hand, hair, a strap…+ expect(touches.items.filter((i) => i.op === 1)).toEqual([+ { t: "name", w: "dress", x: 400, y: 600, op: 1 },+ { t: "name", w: "dress", x: 420, y: 700, op: 1 },+ { t: "name", w: "clothing", x: 400, y: 600, op: 1 },+ { t: "name", w: "clothing", x: 420, y: 700, op: 1 },]);- expect(JSON.parse(String(at(workflow, "negativeCoords")[0]))).toEqual([{ x: 300, y: 900 }]);+ const out = touches.items.filter((i) => i.op === 0);+ expect(out.map((i) => i.w)).toEqual(R.LEAVE_OUT);+ for (const i of out) expect(i).toMatchObject({ t: "name", x: 300, y: 900 });+ // What a Leave out tap names lies over a piece; it is never the piece itself.+ expect(R.LEAVE_OUT).not.toContain("clothing");expect(at(workflow, "prompt")).toEqual(["Change the colour of the dress to soft ivory (#F2EBDD)."]);expect(at(workflow, "seed")).toEqual([7]);expect(at(workflow, "filenamePrefix")).toEqual(["fuobe/g"]);- // The size the taps came with isn't a graph input.+ // The size the taps came with and the piece's name aren't graph inputs.expect(JSON.stringify(workflow)).not.toContain("frameWidth");+ expect(JSON.stringify(workflow)).not.toContain("recolorItem");});it("moves taps placed on a smaller copy onto the photo's own pixels, inside the picture", async () => {const { workflow } = await prepare({ prompt: "x", images: ["photo.png"], points: [{ x: 512, y: 640 }, { x: 2000, y: -5 }], extra: { frameWidth: 1024, frameHeight: 1280 } } as GenInput, { width: 2048, height: 2560 });- expect(JSON.parse(String(at(workflow, "positiveCoords")[0]))).toEqual([+ const items = JSON.parse(String(at(workflow, "touches")[0])).items as { w: string; x: number; y: number; op: number }[];+ // No piece named: Auto looks for clothing, a bag, shoes, a hat or a scarf under each tap.+ expect([...new Set(items.map((i) => i.w))]).toEqual(R.ITEMS[0].find);+ expect(items.filter((i) => i.w === "clothing").map(({ x, y }) => ({ x, y }))).toEqual([{ x: 1024, y: 1280 },{ x: 2047, y: 0 },]);- expect(at(workflow, "negativeCoords")).toEqual([""]);+ expect(items.every((i) => i.op === 1)).toBe(true);});it("refuses a run with no tap on the piece", async () => {@@ -132,18 +145,20 @@ describe("Tap to Recolor's runs", () => {it("builds one run per colour with the taps, and the words from the swatch", () => {const req = R.recolorRequest({ image: "/api/files/a.png", points: taps, frame, colour: "emerald", item: "dress" });expect(req).toMatchObject({ feature: "app:app-tap-to-recolor", presetId: "app-tap-to-recolor", modelId: "oss-recolor", op: "edit", engine: "open", inputs: { images: ["/api/files/a.png"] } });- expect(req.params?.extra).toEqual({ frameWidth: 1024, frameHeight: 1280 });+ expect(req.params?.extra).toEqual({ frameWidth: 1024, frameHeight: 1280, recolorItem: "dress" });const p = plan(req);expect(p.op).toBe("edit");expect(p.prompt).toBe("Change the colour of the dress to deep emerald green (#0E6B4F). Keep its fabric, weave, folds, seams, stitching, sheen, print and shadows exactly as they are, so only the colour is new.",);expect(p.params.points).toHaveLength(3);+ expect(p.params.extra?.recolorItem).toBe("dress");});- it("names a custom colour by its nearest name with its code, and the piece in the middle when the piece is Auto", () => {+ it("names a custom colour by its nearest name with its code, and the outfit when the piece is Auto", () => {const p = plan(R.recolorRequest({ image: "/api/files/a.png", points: taps, frame, colour: "c98b93" }));- expect(p.prompt).toMatch(/^Change the colour of the piece in the middle of the picture to dusty rose pink \(#C98B93\)\. Keep its fabric/);+ expect(p.prompt).toMatch(/^Change the colour of the outfit to dusty rose pink \(#C98B93\)\. Keep its fabric/);+ expect(p.params.extra?.recolorItem).toBe("auto");});it("asks for a tap before it runs, and for a real colour", () => {@@ -174,7 +189,9 @@ describe("Tap to Recolor's colours", () => {it("keeps at most eight taps of each kind", () => {const many = Array.from({ length: 12 }, (_, i) => ({ x: i, y: i }));- expect(JSON.parse(R.recolorCoords(many)[0])).toHaveLength(R.RECOLOR.maxPoints);+ expect(R.recolorPoints(many)[0]).toHaveLength(R.RECOLOR.maxPoints);+ expect(R.recolorItem({ recolorItem: "jacket" })).toBe("jacket");+ expect(R.recolorItem({ recolorItem: "spaceship" })).toBe("auto");});});diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex 0731148b..7613d582 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -12494,7 +12494,7 @@},{"id": "qwen-image-21-recolor",- "title": "Qwen-Image 2.1 Recolor (SAM 3.1 tap mask, crop, repaint, paste back)",+ "title": "Qwen-Image 2.1 Recolor (tap mask by name, crop, repaint, paste back)","capability": "recolor","file": "qwen-image-21-recolor.json","source": "hand-built (scripts/comfy/hand-built/qwen-image-21-recolor.json)",@@ -12505,16 +12505,10 @@"input": "image"}],- "positiveCoords": [- {- "node": "12",- "input": "value"- }- ],- "negativeCoords": [+ "touches": [{- "node": "13",- "input": "value"+ "node": "14",+ "input": "touches"}],"maskGrow": [@@ -12555,8 +12549,8 @@}],"defaults": {- "steps": 25,- "maskGrow": 4+ "steps": 20,+ "maskGrow": 1},"limits": {},"models": [@@ -12593,8 +12587,8 @@],"vramGb": 20,"license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; Meta SAM License (SAM 3.1); AusBoss nodes MIT",- "validated": false,- "notes": "Tap to Recolor: qwen-image-21-inpaint with the mask made in the graph from the taps (the AusBoss example's Mask by Touch, on core SAM 3.1). positiveCoords / negativeCoords = JSON point lists [{\"x\":int,\"y\":int}] in the photo's pixels (PrimitiveStringMultiline -> SAM3_Detect point path, threshold 0.5, refine 2, one merged mask; negativeCoords may be empty) -> GrowMask maskGrow (4) so the anti-aliased edge changes too -> Crop For Inpaint (context 1.4, blend 8 px, multiple 32, 1.5 MP, bicubic) -> GrowMask 8 on the crop's mask -> StringFormat \"{a} Keep everything else in the picture exactly the same.\" -> TextEncodeQwenImage21 with the crop as image 1 (resolution 0) -> VAEEncode + SetLatentNoiseMask -> QwenImage21Cache -> KSampler 25 steps, cfg 1, euler, simple -> SplitImageWithAlpha -> Stitch Inpaint (classic, colour match 0: a tone match would pull the new colour back). Only the tapped piece is sampled and pasted, so the rest of the photo stays as it was; a tap that finds nothing gives the photo back unchanged. Prompt: \"Change the colour of <the piece> to <colour words (#hex)>. Keep its fabric, weave, folds, seams, stitching, sheen, print and shadows exactly as they are, so only the colour is new.\""+ "validated": true,+ "notes": "Tap to Recolor: qwen-image-21-inpaint with the mask made in the graph from the taps by AusBoss Mask by Touch on core SAM 3.1. touches = the node's JSON {\"v\":1,\"items\":[{\"t\":\"name\",\"w\":word,\"x\":int,\"y\":int,\"op\":1|0}]} in the photo's pixels (src/lib/catalog/recolor.ts recolorTouches): each tap asks for the smallest thing of the piece's name under it (Jacket: jacket + clothing; Auto: clothing, bag, shoe, hat, scarf), a Leave out tap takes away a hand, arm, hair, belt, bag strap or necklace under it. SAM 3.1's point prompt alone (SAM3_Detect) returned the whole person on every GPU test, so taps go through names. If nothing is found the mask is empty and the photo comes back unchanged (if_nothing \"empty mask\"); free_vram unloads SAM before the repaint. -> GrowMask maskGrow (1) -> Crop For Inpaint (context 1.4, blend 2 px, multiple 32, 1.5 MP, bicubic: a tight paste, since a wider one showed a blotchy rim on flat studio backgrounds) -> GrowMask 8 on the crop's mask (the sampling mask: smaller left old-colour specks at the edge) -> StringFormat \"{a} Keep everything else in the picture exactly the same.\" -> TextEncodeQwenImage21 with the crop as image 1 (resolution 0) -> VAEEncode + SetLatentNoiseMask -> QwenImage21Cache -> KSampler 20 steps, cfg 1, euler, simple (16 looked the same as 25 on the tests) -> SplitImageWithAlpha -> Stitch Inpaint (classic, colour match 0: a tone match would pull the new colour back). Outside the piece the photo is bit-identical. RTX 5090: about 32 s per colour warm at 1.5 MP (target_megapixels 1.0 + 16 steps: 19 s, slightly softer stripes), peak 23 GB. Prompt: \"Change the colour of <the piece> (Auto: the outfit) to <colour words (#hex)>. Keep its fabric, weave, folds, seams, stitching, sheen, print and shadows exactly as they are, so only the colour is new.\""},{"id": "qwen-image-21-outpaint",diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.jsonindex 2e5d2448..d9a04675 100644--- a/workflows/comfyui/object_info.subset.json+++ b/workflows/comfyui/object_info.subset.json@@ -1184,6 +1184,192 @@"ausboss"]},+ "AUSBOSS_NODES_MaskByTouch": {+ "input": {+ "required": {+ "image": [+ "IMAGE",+ {+ "tooltip": "The picture to pick from."+ }+ ],+ "model": [+ "MODEL",+ {+ "tooltip": "SAM 3: MODEL from a Load Checkpoint that loads the SAM 3 file."+ }+ ],+ "clip": [+ "CLIP",+ {+ "tooltip": "SAM 3's text reader: CLIP from the same Load Checkpoint."+ }+ ],+ "touches": [+ "STRING",+ {+ "default": "",+ "multiline": false,+ "tooltip": "What you picked on the node's picture. The node writes this itself when you click or paint; Clear on the node empties it."+ }+ ],+ "grow": [+ "INT",+ {+ "default": 0,+ "min": -128,+ "max": 256,+ "step": 1,+ "tooltip": "Grow the picked area by this many pixels. Below zero shrinks it. 0 keeps the exact outline."+ }+ ],+ "soften": [+ "FLOAT",+ {+ "default": 0,+ "min": 0,+ "max": 100,+ "step": 0.1,+ "tooltip": "Soften the mask's edge by this many pixels. 0 keeps a hard edge."+ }+ ],+ "smooth": [+ "INT",+ {+ "default": 0,+ "min": 0,+ "max": 64,+ "step": 1,+ "tooltip": "Round off a ragged outline by this many pixels. 0 leaves the outline as found."+ }+ ],+ "fill_holes": [+ "BOOLEAN",+ {+ "default": true,+ "tooltip": "Closes pinholes inside the picked area. Larger openings stay open, like a mug's handle."+ }+ ],+ "if_nothing": [+ [+ "stop the run",+ "empty mask"+ ],+ {+ "default": "stop the run",+ "tooltip": "When nothing is picked. Stop the run: the workflow stops here with a message, and nothing after this node runs. Empty mask: the run goes on with a mask of nothing."+ }+ ]+ },+ "optional": {+ "free_vram": [+ "BOOLEAN",+ {+ "default": false,+ "tooltip": "Takes SAM 3 out of the graphics card's memory when the workflow has run this node. Turn it on in a workflow that loads a big model after this node."+ }+ ],+ "invert": [+ "BOOLEAN",+ {+ "default": false,+ "tooltip": "Turns the mask round: white everywhere except what you picked. With nothing picked the mask stays empty."+ }+ ],+ "ask": [+ "STRING",+ {+ "default": "",+ "multiline": false,+ "tooltip": "Used by the node's own picture for a single run. Leave it empty: it is never saved with the workflow."+ }+ ],+ "fine_edges": [+ [+ "off",+ "birefnet.safetensors"+ ],+ {+ "default": "off",+ "tooltip": "Hair and fur, strand by strand: where what you picked ends at the outline of the picture's main subject, that outline is taken from ComfyUI's background-removal model. The cut-out also loses the colour of the old background. Off keeps the edge as found. The ? page says where to get the model file."+ }+ ]+ },+ "hidden": {+ "unique_id": "UNIQUE_ID"+ }+ },+ "input_order": {+ "required": [+ "image",+ "model",+ "clip",+ "touches",+ "grow",+ "soften",+ "smooth",+ "fill_holes",+ "if_nothing"+ ],+ "optional": [+ "free_vram",+ "invert",+ "ask",+ "fine_edges"+ ],+ "hidden": [+ "unique_id"+ ]+ },+ "is_input_list": false,+ "output": [+ "MASK",+ "IMAGE",+ "STRING"+ ],+ "output_is_list": [+ false,+ false,+ false+ ],+ "output_name": [+ "mask",+ "cut_out",+ "names"+ ],+ "name": "AUSBOSS_NODES_MaskByTouch",+ "display_name": "Mask by Touch 🆎",+ "description": "Click a thing on the picture, or paint over it, and get its mask. No name to type and no MaskEditor. Moving over the picture lights up what a click would take. A painted stroke takes the thing under it, or exactly the paint. What is lit is what the mask will be. When nothing is picked it stops the run with a plain message, so nothing after it runs on an empty mask (or it can pass an empty mask on: a setting). It uses ComfyUI's own SAM 3: wire model and clip from a Load Checkpoint that loads the SAM 3 file. It also returns the picked area cut out on a see-through background, and the names of what you picked as text.",+ "python_module": "custom_nodes.ausboss-nodes",+ "category": "🆎 AusBoss/Mask",+ "output_node": true,+ "has_intermediate_output": false,+ "output_tooltips": [+ "White where the picked area is. One mask per picture.",+ "The picture with everything but the picked area see-through (RGBA).",+ "The names of the things you picked, in the order you picked them, like: jacket, hat. Empty when nothing you picked has a name."+ ],+ "search_aliases": [+ "quick select",+ "magic wand",+ "click to mask",+ "segment",+ "segment anything",+ "sam",+ "sam3",+ "select",+ "pick",+ "brush mask",+ "inpaint mask",+ "paint mask",+ "point",+ "tap",+ "touch",+ "object mask",+ "auto mask",+ "ausboss"+ ]+ },"AUSBOSS_NODES_StitchInpaint": {"input": {"required": {diff --git a/workflows/comfyui/qwen-image-21-recolor.json b/workflows/comfyui/qwen-image-21-recolor.jsonindex 5fc85372..acbddf82 100644--- a/workflows/comfyui/qwen-image-21-recolor.json+++ b/workflows/comfyui/qwen-image-21-recolor.json@@ -47,54 +47,39 @@"title": "Load Image - The photo"}},- "12": {- "inputs": {- "value": "[{\"x\": 512, \"y\": 512}]"- },- "class_type": "PrimitiveStringMultiline",- "_meta": {- "title": "Taps on the piece (JSON points, photo pixels)"- }- },- "13": {- "inputs": {- "value": ""- },- "class_type": "PrimitiveStringMultiline",- "_meta": {- "title": "Taps to leave out (JSON points, or empty)"- }- },"14": {"inputs": {- "threshold": 0.5,- "refine_iterations": 2,- "individual_masks": false,- "model": [- "4",- 0- ],+ "touches": "{\"v\": 1, \"items\": [{\"t\": \"name\", \"w\": \"clothing\", \"x\": 512, \"y\": 512, \"op\": 1}]}",+ "grow": 0,+ "soften": 0,+ "smooth": 0,+ "fill_holes": true,+ "if_nothing": "empty mask",+ "free_vram": true,+ "invert": false,+ "ask": "",+ "fine_edges": "off","image": ["10",0],- "positive_coords": [- "12",+ "model": [+ "4",0],- "negative_coords": [- "13",- 0+ "clip": [+ "4",+ 1]},- "class_type": "SAM3_Detect",+ "class_type": "AUSBOSS_NODES_MaskByTouch","_meta": {- "title": "SAM 3.1 - The tapped piece, one mask"+ "title": "Mask by Touch - The thing of that name under each tap"}},"15": {"inputs": {- "expand": 4,+ "expand": 1,"tapered_corners": true,"mask": ["14",@@ -109,7 +94,7 @@"20": {"inputs": {"context_factor": 1.4,- "blend_pixels": 8,+ "blend_pixels": 2,"output_multiple": 32,"target_width": 0,"target_height": 0,@@ -237,7 +222,7 @@"27": {"inputs": {"seed": 0,- "steps": 25,+ "steps": 20,"cfg": 1,"sampler_name": "euler","scheduler": "simple",diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.jsonindex 26e2dcd7..3c507998 100644--- a/workflows/comfyui/requirements.json+++ b/workflows/comfyui/requirements.json@@ -1,9 +1,9 @@{"v": 1,- "hash": "d4019ce4a00539396524cb5025a1db8ab85c78594fe1e5358438af8bacf3121b",+ "hash": "fe7611ef2220ab79869f19d13b9f626751d2ca7931771e228b630a1b27de0569","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","text_encoders","thinksound","upscale_models","vae"],- "sentinels": ["AILab_Qwen3ASRSubtitle","AILab_Qwen3TTSVoiceClone_Advanced","AILab_Qwen3TTSVoiceDesign_Advanced","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","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","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"],+ "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","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"],"packs": {"ComfyUI-DBS": {"repo":"https://github.com/hiroki-abe-58/ComfyUI-DBS","commit":"f656e53434b5485c148a2866fbd6ddc6b6152ed6","registry":{"id":"dbs-soundtrack-separation","version":""},"classes":["DBSLoader","DBSSeparate"],"folders":["dbs"],"isolated":false,"requirementsTxt":true,"install":"manual"},"ComfyUI-Fantastic-MiniMaxH3-PromptBuilder": {"repo":"https://github.com/Adudeguyman/ComfyUI-Fantastic-MiniMaxH3-PromptBuilder","commit":"22e719fe89336c628383363182a4da3cb58d4f9b","classes":["MiniMaxH3FantasticVideoEditLatent"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},@@ -37,7 +37,7 @@"Comfyui_Minimax_h3_latent_Upscaler": {"repo":"https://github.com/LBH-123-AI/Comfyui_Minimax_h3_latent_Upscaler","commit":"40316cf008b2fd8663263270669eb4da23f89d2c","classes":[],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},"Orion4D_FXMax": {"repo":"https://github.com/orion4d/Orion4D_FXMax","commit":"7048e8423ad7d1a6a52119d0d4870c2b7fc2885f","classes":["Orion4D_FXMax_DCTLToneMapper"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},"SolarRenderer": {"repo":"https://github.com/Enderfga/SolarRenderer","commit":"0ca4f5e45b062cc9e9aee506de46aabdc22e4c3d","classes":["SolarRendererConditioning","SolarRendererLoraLoader","SolarRendererModel","SolarRendererSigmas"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},- "ausboss-nodes": {"repo":"https://github.com/ausboss/ComfyUI-AusBoss","commit":"bce780f2598f47c239cbf6503ea0984f96229391","registry":{"id":"ausboss-nodes","version":""},"classes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},+ "ausboss-nodes": {"repo":"https://github.com/ausboss/ComfyUI-AusBoss","commit":"bce780f2598f47c239cbf6503ea0984f96229391","registry":{"id":"ausboss-nodes","version":""},"classes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},"comfyui-h3-oneclick-swap": {"repo":"https://github.com/D3voz/comfyui-h3-oneclick-swap","commit":"e44a56e92920000e675d14be484aea0d7498d63e","classes":["H3AdvancedSwapPlan","H3ClipShots","H3FaceChunks","H3FaceJoin","H3FillShots","H3GreyMannequins","H3ObjectSwapPlan","H3PeopleMask","H3RoleMask","H3SoundtrackOrSilence","H3SourceSlice","H3SubjectPrompt","H3TrackCrops","H3TrackRoles"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},"comfyui-image-detail-contrast": {"repo":"https://github.com/D3voz/comfyui-image-detail-contrast","commit":"485a5e246424ce012b998862b45f06d21e8d63b2","classes":["ImageDetailContrast"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},"comfyui-krea2edit": {"repo":"https://github.com/lbouaraba/comfyui-krea2edit","commit":"13ef60f20828949becada815d3cbc371eb5ccaab","registry":{"id":"comfyui-krea2edit","version":""},"classes":["Krea2EditGroundedEncode","Krea2EditModelPatch"],"folders":[],"isolated":false,"requirementsTxt":false,"install":"manual"},@@ -382,7 +382,7 @@"qwen-image-21-outpaint-draft": {"core":["CFGGuider","CLIPLoader","GetImageSize","ImageCompositeMasked","ImageScale","InvertMask","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","RegexReplace","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","StringConcatenate","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-DMD2-2steps-v1.5.safetensors","loras/qwen-image-2.1-outpaint-v2.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},"qwen-image-21-outpaint-fast": {"core":["CFGGuider","CLIPLoader","GetImageSize","ImageCompositeMasked","ImageScale","InvertMask","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","QwenImage21Cache","RandomNoise","RegexReplace","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","StringConcatenate","TextEncodeQwenImage21","TextGenerate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_ImageCropRotatePad","AUSBOSS_NODES_StitchInpaint"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-Lightning-4steps.safetensors","loras/qwen-image-2.1-outpaint-v2.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},"qwen-image-21-qma": {"core":["CLIPLoader","ImageScaleToTotalPixels","KSampler","LoadImage","LoraLoaderModelOnly","QwenImage21Cache","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/qwen-image-2.1-qma-camera-angles.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},- "qwen-image-21-recolor": {"core":["CLIPLoader","CheckpointLoaderSimple","GrowMask","KSampler","LoadImage","PrimitiveStringMultiline","QwenImage21Cache","SAM3_Detect","SaveImage","SetLatentNoiseMask","SplitImageWithAlpha","StringFormat","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_StitchInpaint"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":[],"vramGb":20,"isolated":false,"firstRun":[]},+ "qwen-image-21-recolor": {"core":["CLIPLoader","CheckpointLoaderSimple","GrowMask","KSampler","LoadImage","QwenImage21Cache","SaveImage","SetLatentNoiseMask","SplitImageWithAlpha","StringFormat","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{"ausboss-nodes":["AUSBOSS_NODES_CropForInpaint","AUSBOSS_NODES_MaskByTouch","AUSBOSS_NODES_StitchInpaint"]},"files":["checkpoints/sam3.1_multiplex_fp16.safetensors","diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":[],"vramGb":20,"isolated":false,"firstRun":[],"validated":true},"qwen-image-21-relight": {"core":["BasicGuider","CLIPLoader","KSamplerSelect","LoadImage","QwenImage21Cache","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{"viggle_turbo":["ViggleTurboLora","ViggleTurboSigmas"]},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/Qwen-Image-2.1-viggle-turbo-v0.2.1-6step-lora-r256.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[]},"qwen-image-21-t2i": {"core":["CLIPLoader","EmptyLatentImage","KSampler","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},"qwen-image-21-t2i-details": {"core":["CFGGuider","CLIPLoader","EmptyLatentImage","KSamplerSelect","LoraLoaderModelOnly","ManualSigmas","RandomNoise","SamplerCustomAdvanced","SaveImage","SplitImageWithAlpha","TextEncodeQwenImage21","UNETLoader","VAEDecode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_2.1_int8_convrot.safetensors","loras/p_q_image_2.1_6_steps_upsampled_v0.2_comfyui_bf16.safetensors","text_encoders/qwen3vl_8b_int8_convrot.safetensors","vae/qwen_image_2.1_vae_bf16.safetensors"],"optional":["vae/texture_fix_vae_for_qwen_image_2.1_bf16.safetensors"],"vramGb":20,"isolated":false,"firstRun":[]},