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.

Apps: Steam It presses a creased outfit and keeps everything else

Adarsh1b2b1b5104fd
diff --git a/scripts/comfy/hand-built/steam-it-qwen-image-21.json b/scripts/comfy/hand-built/steam-it-qwen-image-21.json
new file mode 100644
index 00000000..b2331d2d
--- /dev/null
+++ b/scripts/comfy/hand-built/steam-it-qwen-image-21.json
@@ -0,0 +1,291 @@
+{
+ "1": {
+ "inputs": {
+ "unet_name": "qwen_image_2.1_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "class_type": "UNETLoader",
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "2": {
+ "inputs": {
+ "clip_name": "qwen3vl_8b_int8_convrot.safetensors",
+ "type": "qwen_image",
+ "device": "default"
+ },
+ "class_type": "CLIPLoader",
+ "_meta": {
+ "title": "Load CLIP (Qwen3-VL 8B)"
+ }
+ },
+ "3": {
+ "inputs": {
+ "vae_name": "qwen_image_2.1_vae_bf16.safetensors"
+ },
+ "class_type": "VAELoader",
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "4": {
+ "inputs": {
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
+ },
+ "class_type": "CheckpointLoaderSimple",
+ "_meta": {
+ "title": "SAM 3.1"
+ }
+ },
+ "10": {
+ "inputs": {
+ "image": "image.png"
+ },
+ "class_type": "LoadImage",
+ "_meta": {
+ "title": "Load Image - The outfit"
+ }
+ },
+ "11": {
+ "inputs": {
+ "text": "clothing",
+ "clip": [
+ "4",
+ 1
+ ]
+ },
+ "class_type": "CLIPTextEncode",
+ "_meta": {
+ "title": "What to find (text)"
+ }
+ },
+ "12": {
+ "inputs": {
+ "threshold": 0.4,
+ "refine_iterations": 2,
+ "individual_masks": false,
+ "model": [
+ "4",
+ 0
+ ],
+ "image": [
+ "10",
+ 0
+ ],
+ "conditioning": [
+ "11",
+ 0
+ ]
+ },
+ "class_type": "SAM3_Detect",
+ "_meta": {
+ "title": "SAM 3.1 - Every garment, one mask"
+ }
+ },
+ "13": {
+ "inputs": {
+ "expand": 16,
+ "tapered_corners": true,
+ "mask": [
+ "12",
+ 0
+ ]
+ },
+ "class_type": "GrowMask",
+ "_meta": {
+ "title": "Grow Mask - Room for a hem or sleeve to settle"
+ }
+ },
+ "20": {
+ "inputs": {
+ "context_factor": 1.3,
+ "blend_pixels": 8,
+ "output_multiple": 32,
+ "target_width": 0,
+ "target_height": 0,
+ "mask_grow": 0,
+ "mask_blur": 0,
+ "invert_mask": false,
+ "context_pixels": 0,
+ "target_megapixels": 2,
+ "rescale_algorithm": "bicubic",
+ "extend_left": 0,
+ "extend_right": 0,
+ "extend_up": 0,
+ "extend_down": 0,
+ "keep_inside": true,
+ "image": [
+ "10",
+ 0
+ ],
+ "mask": [
+ "13",
+ 0
+ ]
+ },
+ "class_type": "AUSBOSS_NODES_CropForInpaint",
+ "_meta": {
+ "title": "Crop For Inpaint - Crop around the clothes"
+ }
+ },
+ "23": {
+ "inputs": {
+ "prompt": "",
+ "negative_prompt": "",
+ "resolution": 0,
+ "clip": [
+ "2",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ],
+ "images.image_1": [
+ "20",
+ 0
+ ]
+ },
+ "class_type": "TextEncodeQwenImage21",
+ "_meta": {
+ "title": "Text Encode Qwen Image 2.1 - The crop and the instruction"
+ }
+ },
+ "24": {
+ "inputs": {
+ "pixels": [
+ "20",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "class_type": "VAEEncode",
+ "_meta": {
+ "title": "VAE Encode - The crop as the starting point"
+ }
+ },
+ "25": {
+ "inputs": {
+ "samples": [
+ "24",
+ 0
+ ],
+ "mask": [
+ "20",
+ 1
+ ]
+ },
+ "class_type": "SetLatentNoiseMask",
+ "_meta": {
+ "title": "Set Latent Noise Mask - Only the clothes may change"
+ }
+ },
+ "26": {
+ "inputs": {
+ "device": "auto",
+ "dtype": "default",
+ "model": [
+ "1",
+ 0
+ ]
+ },
+ "class_type": "QwenImage21Cache",
+ "_meta": {
+ "title": "Reference cache"
+ }
+ },
+ "27": {
+ "inputs": {
+ "seed": 0,
+ "steps": 25,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1,
+ "model": [
+ "26",
+ 0
+ ],
+ "positive": [
+ "23",
+ 0
+ ],
+ "negative": [
+ "23",
+ 1
+ ],
+ "latent_image": [
+ "25",
+ 0
+ ]
+ },
+ "class_type": "KSampler",
+ "_meta": {
+ "title": "Sampler - CFG 1, euler"
+ }
+ },
+ "28": {
+ "inputs": {
+ "samples": [
+ "27",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "class_type": "VAEDecode",
+ "_meta": {
+ "title": "Decode"
+ }
+ },
+ "29": {
+ "inputs": {
+ "image": [
+ "28",
+ 0
+ ]
+ },
+ "class_type": "SplitImageWithAlpha",
+ "_meta": {
+ "title": "Drop the alpha"
+ }
+ },
+ "30": {
+ "inputs": {
+ "fix_edge_halo": false,
+ "color_match": 0,
+ "seam": "classic",
+ "stitcher": [
+ "20",
+ 2
+ ],
+ "inpainted": [
+ "29",
+ 0
+ ]
+ },
+ "class_type": "AUSBOSS_NODES_StitchInpaint",
+ "_meta": {
+ "title": "Stitch Inpaint - Put the pressed clothes back"
+ }
+ },
+ "90": {
+ "inputs": {
+ "filename_prefix": "fuobe/steam-it-qwen-image-21",
+ "images": [
+ "30",
+ 0
+ ]
+ },
+ "class_type": "SaveImage",
+ "_meta": {
+ "title": "Save Image"
+ }
+ }
+}
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 099528fd..319e8919 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -3295,6 +3295,25 @@ export const SPEC = [
'The small-GPU edit, as zen-image-edit-comfyui\'s edit_api.json: ZenImage21TextEncode with the VAE linked (the DiT splices the references in as latents), resolution 1024 (references resized to about 1 MP on the 32 grid, the geometry adapter v12 was tuned at), ' +
'image_1 the picture to change (the canvas follows it), image_2-4 optional references (left out when not given). Same sampler as qwen-image-21-t2i-small. English prompts only.' + QWEN21_CLEAN_NOTE,
},
+ // ---- Apps: Steam It (a creased outfit, pressed; nothing else changes) ---------------------------
+ {
+ id: 'steam-it-qwen-image-21',
+ title: 'Steam It: the clothes pressed, everything else kept (SAM 3.1 clothing mask + Qwen-Image 2.1 inpaint)',
+ capability: 'edit',
+ handBuilt: 'hand-built/steam-it-qwen-image-21.json',
+ bindings: { prompt: [b('23', 'prompt')], image: [b('10', 'image')], seed: [b('27', 'seed')], steps: [b('27', 'steps')] },
+ outputs: [{ node: '90', kind: 'image' }],
+ vramGb: 20,
+ license:
+ 'Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; SAM 3.1 under Meta\'s SAM License (commercial use allowed under its terms); 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:
+ 'The Steam It app\'s graph: qwen-image-21-inpaint with the mask found instead of painted. SAM3_Detect with the word "clothing" (threshold 0.4, 2 refine passes, every garment in one mask; works on a worn outfit ' +
+ 'and on a flat-lay or a hanger) -> GrowMask 16 px on the full picture, so a hem or a sleeve can settle past its old outline and the paste-back follows the same mask -> Crop For Inpaint (context 1.3, ' +
+ 'blend 8 px, multiple 32, 2 MP, bicubic) -> TextEncodeQwenImage21 with the crop as image 1 (resolution 0) and the app\'s instruction as the prompt -> VAEEncode of the crop + SetLatentNoiseMask -> ' +
+ 'QwenImage21Cache -> KSampler 25 steps, cfg 1, euler, simple -> SplitImageWithAlpha -> Stitch Inpaint (classic, no colour match): every pixel outside the grown mask and its 8 px blend is the upload\'s own. ' +
+ 'No clothing found: the empty mask selects the whole picture and the stitch gives it back unchanged. The prompt names only the finished state (smooth, pressed fabric) and what stays the same.',
+ },
// ---- Owner's SOTA image families: Ideogram 4 -------------------------------------------
{
id: 'ideogram4-t2i',
diff --git a/src/lib/catalog/apps.ts b/src/lib/catalog/apps.ts
index a1185e5b..40455757 100644
--- a/src/lib/catalog/apps.ts
+++ b/src/lib/catalog/apps.ts
@@ -1076,6 +1076,31 @@ export const APPS: Preset[] = [
open: { modelId: RECOLOR.modelId, op: "edit" },
parity: "Runs on your own GPU. Only the piece you tap changes.",
}),
+ app({
+ name: "Steam It",
+ category: "Fashion",
+ description: "A creased outfit, pressed and crisp",
+ icon: "Shirt",
+ hue: 200,
+ badges: ["new"],
+ inputs: [{ key: "image", label: "Outfit", hint: "A photo of the outfit, worn, laid flat or on a hanger", accept: "image", required: true }],
+ options: [
+ {
+ ...opt("finish", "Finish", [
+ ["Steamed", "smooth and freshly steamed, falling in soft, clean drapes"],
+ ["Pressed", "crisp and freshly pressed, smooth and flat with sharp, clean seams"],
+ ["Tailored", "crisp and tailor-pressed, with knife-sharp trouser creases, a crisp collar and cuffs, and smooth, taut panels"],
+ ]),
+ default: "pressed",
+ },
+ ],
+ // Only the finished state is named. On your GPU only the clothes are repainted (SAM 3.1 finds them) and every
+ // other pixel is the upload's own.
+ prompt:
+ "Steam and press the clothing so the fabric is {option:finish}. Keep the same garments with their exact colour, print, weave, seams, buttons and fit, and keep the person, pose, face, hair, background and light exactly as in the picture.",
+ open: { modelId: "oss-steam-it", op: "edit" },
+ parity: "Presses only the clothes. The person, the pose and the background stay as they were.",
+ }),
// ---------------- Style & art
app({
name: "Sketch to Real",
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 3cc51b00..c9cf2469 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -2280,6 +2280,18 @@ const open: ModelDef[] = [
routes: [comfy("edit", "product-shot-qwen-edit-2509", "BiRefNet cut-out on white → Qwen-Image-Edit 2509 + White_to_Scene LoRA")],
options: { seed: true, negativePrompt: true, maxImages: 1, requires: { prompt: true, msg: "Describe the scene to put the product in, e.g. “on a marble counter, morning light”" } },
}),
+ // Steam It (the open route of the Steam It app): the clothes found and pressed, every other pixel kept.
+ o({
+ id: "oss-steam-it",
+ name: "Qwen-Image 2.1 Steam It",
+ vendor: "Alibaba Qwen",
+ family: "qwen-image",
+ kind: "image",
+ tagline: "Finds the clothes and presses them smooth; the person, pose and background stay exactly as they were · 20 GB GPU · non-commercial weights",
+ routes: [{ ...comfy("edit", "steam-it-qwen-image-21", "SAM 3.1 finds the clothes; Qwen-Image 2.1 repaints only them, 25 steps, pasted back"), unsized: true, maxImages: 1 }],
+ options: { seed: true, maxImages: 1, requires: { images: 1, msg: "Add a photo of the outfit" } },
+ hidden: true,
+ }),
// Cinema Studio grid and Soul Cast (used by those studios)
o({
id: "oss-zimage-grid",
diff --git a/src/lib/catalog/preset-recipe-routes.ts b/src/lib/catalog/preset-recipe-routes.ts
index 8718a904..a22d64a9 100644
--- a/src/lib/catalog/preset-recipe-routes.ts
+++ b/src/lib/catalog/preset-recipe-routes.ts
@@ -49,6 +49,7 @@ export type RecipeKind = "h3" | "orbit" | "qwen";
* - Clean up voice: a tool of its own (RE-USE), with nothing to recast.
* - Any Angle: a tool of its own (a 3D view of the photo, then each angle from it on the GPU).
* - Tap to Recolor: a tool of its own, whose taps make the mask its graph repaints.
+ * - Steam It: its own graph finds the clothes and repaints only them, so every other pixel stays the upload's.
*/
export const OWN_ROUTE_APPS: ReadonlySet<string> = new Set([
"app-fuobe-angles",
@@ -67,6 +68,7 @@ export const OWN_ROUTE_APPS: ReadonlySet<string> = new Set([
"app-clean-up-voice",
"app-any-angle",
"app-tap-to-recolor",
+ "app-steam-it",
]);
/**
diff --git a/src/lib/preset-featured.ts b/src/lib/preset-featured.ts
index 2e35e6b3..7ea58039 100644
--- a/src/lib/preset-featured.ts
+++ b/src/lib/preset-featured.ts
@@ -15,7 +15,7 @@ const ORDER: Record<"app" | "motion" | "effect", string[]> = {
app-video-face-swap app-video-background-remover app-clean-up-voice app-breakdown
`,
`
- app-hairstyle-try-on app-fuobe-angles app-any-angle app-product-placement app-link-to-video-ad app-style-snap app-urban-cuts
+ app-hairstyle-try-on app-fuobe-angles app-any-angle app-product-placement app-link-to-video-ad app-style-snap app-steam-it app-urban-cuts
app-signboard app-j-poster app-giallo-horror app-face-swap app-character-swap app-headshot-generator
app-skin-enhancer app-zooms app-what-s-next app-packshot app-billboard-ad app-macro-scene app-asmr-promo
app-ai-stylist app-colorize app-bring-to-life app-dance app-clipcut app-sticker-match-cut app-latex app-sand-worm
diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.ts
index 452c730f..7787f214 100644
--- a/tests/comfy-library-4.test.ts
+++ b/tests/comfy-library-4.test.ts
@@ -136,6 +136,8 @@ describe("round-4 ComfyUI workflows", () => {
"qwen-image-21-next-scene",
"qwen-image-21-t2i-small",
"qwen-image-21-edit-small",
+ // Steam It: its first run is on the GPU.
+ "steam-it-qwen-image-21",
"ideogram4-t2i",
"krea2-realism-t2i",
"krea2-turbo-t2i",
diff --git a/tests/preset-recipes.test.ts b/tests/preset-recipes.test.ts
index 228e3747..e5691910 100644
--- a/tests/preset-recipes.test.ts
+++ b/tests/preset-recipes.test.ts
@@ -67,7 +67,7 @@ describe("which presets get a recipe", () => {
// Graded presets whose clip was graded afterwards and that have no recipe in the book.
const gradesWithoutRecipe = [...MOTIONS, ...EFFECTS].filter((x) => x.grade && !recipeKind(x));
expect(new Set(none.map((x) => x.id))).toEqual(new Set([...gradesWithoutRecipe.map((x) => x.id), ...OWN_ROUTE_APPS]));
- expect(none).toHaveLength(29);
+ expect(none).toHaveLength(30);
for (const x of none) for (const engine of ["open", "cloud"] as const) expect(presetRecipe(x, engine, inCatalog), x.id).toBeUndefined();
});
diff --git a/tests/steam-it.test.ts b/tests/steam-it.test.ts
new file mode 100644
index 00000000..9242c305
--- /dev/null
+++ b/tests/steam-it.test.ts
@@ -0,0 +1,185 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
+import type { Generation, GenInput } from "@/lib/catalog/types";
+import type { ComfyWorkflow } from "@/lib/comfy";
+
+/*
+ * The Steam It app: a creased outfit comes out pressed and crisp, and nothing else changes. On the open engine
+ * SAM 3.1 finds the clothes, Qwen-Image 2.1 repaints only them and every other pixel is pasted back from the upload
+ * (steam-it-qwen-image-21); in the cloud the same words run on the default edit model.
+ */
+
+vi.setConfig({ testTimeout: 60_000 });
+const dir = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-steam-it-"));
+process.env.FUOBE_DATA_DIR = dir;
+process.env.COMFYUI_URL = "http://127.0.0.1:9";
+process.env.OLLAMA_URL = "http://127.0.0.1:9";
+
+const { setSetting } = await import("@/server/settings");
+const gens = await import("@/server/generations");
+const { saveFile } = await import("@/server/storage");
+const { loadManifest, prepareWorkflow } = await import("@/server/providers/comfyui");
+const { getModel, getPreset, MODELS } = await import("@/lib/catalog");
+const { planGeneration } = await import("@/lib/catalog/plan");
+const { appStudio } = await import("@/lib/studios");
+const { withRecipe } = await import("@/lib/catalog/preset-recipes");
+const { buildLicenceList } = await import("@/lib/licences");
+const { guestRead } = await import("@/lib/guest-access");
+
+beforeAll(() => setSetting("demoMode", "auto"));
+afterAll(() => fs.rmSync(dir, { recursive: true, force: true }));
+
+const LIBRARY = path.join(process.cwd(), "workflows/comfyui");
+const WORKFLOW = "steam-it-qwen-image-21";
+const NEGATION = /\b(no|not|never|nothing|none|without|don't|do not|doesn't|avoid)\b/i;
+const png = Buffer.from("89504e470d0a1a0a0000000d49484452000000010000000108060000001f15c4890000000d49444154789c63f8cfc0f01f0005000201a2e2b6a40000000049454e44ae426082", "hex");
+
+async function settle(id: string, ms = 40_000): Promise<Generation> {
+ const end = Date.now() + ms;
+ for (;;) {
+ const g = gens.getGeneration(id)!;
+ if (["succeeded", "failed", "canceled"].includes(g.status)) return g;
+ if (Date.now() > end) throw new Error(`timed out: ${g.status} ${g.message}`);
+ await new Promise((r) => setTimeout(r, 200));
+ }
+}
+
+async function prepare(input: GenInput) {
+ const uploads: string[] = [];
+ const res = await prepareWorkflow(WORKFLOW, { seed: 7, ...input }, {
+ generationId: "gen1",
+ op: "edit",
+ upload: async (_d, _t, name) => {
+ uploads.push(name);
+ return name;
+ },
+ media: () => undefined,
+ serverRam: async () => undefined,
+ });
+ return { ...res, uploads };
+}
+const ofClass = (wf: ComfyWorkflow, cls: string) => Object.entries(wf).filter(([, n]) => n.class_type === cls);
+
+describe("Steam It app", () => {
+ const app = getPreset("app-steam-it")!;
+
+ it("is a Fashion app with one photo, a Finish choice and no typing", () => {
+ expect(app).toMatchObject({
+ type: "app",
+ name: "Steam It",
+ category: "Fashion",
+ description: "A creased outfit, pressed and crisp",
+ userPrompt: "none",
+ cloud: { modelId: "nano-banana-pro", op: "edit" },
+ open: { modelId: "oss-steam-it", op: "edit" },
+ });
+ expect(app.inputs).toEqual([{ key: "image", label: "Outfit", hint: "A photo of the outfit, worn, laid flat or on a hanger", accept: "image", required: true }]);
+ expect(app.options).toHaveLength(1);
+ const finish = app.options![0];
+ expect(finish).toMatchObject({ key: "finish", label: "Finish", default: "pressed" });
+ expect(finish.choices.map((c) => c.label)).toEqual(["Steamed", "Pressed", "Tailored"]);
+ });
+
+ it("its words name only the finished fabric and what stays the same", () => {
+ for (const c of app.options![0].choices) {
+ const words = app.promptTemplate.replace("{option:finish}", c.prompt);
+ expect(words, c.value).not.toMatch(NEGATION);
+ expect(words, c.value).not.toMatch(/wrinkl|rumpl|crumpl/i);
+ expect(words, c.value).toMatch(/^Steam and press the clothing so the fabric is /);
+ expect(words, c.value).toMatch(/exact colour, print, weave, seams, buttons and fit/);
+ expect(words, c.value).toMatch(/person, pose, face, hair, background and light exactly as in the picture\.$/);
+ }
+ });
+
+ it("plans one edit on either engine, and asks for the photo when it is missing", () => {
+ for (const modelId of ["nano-banana-pro", "oss-steam-it"]) {
+ const plan = planGeneration({ feature: "app:app-steam-it", presetId: app.id, modelId, inputs: { images: ["/a.png"] } }, getModel, getPreset);
+ expect(plan.op, modelId).toBe("edit");
+ expect(plan.jobs, modelId).toBe(1);
+ }
+ expect(() => planGeneration({ feature: "app:app-steam-it", presetId: app.id, modelId: "oss-steam-it" }, getModel, getPreset)).toThrow(/Add a photo of the outfit/);
+ const config = withRecipe(appStudio(app), (id) => !!getModel(id));
+ expect(config.appModels?.open).toEqual(["oss-steam-it"]);
+ });
+
+ it("runs its own graph on the open engine: a hidden model, one image", () => {
+ const m = getModel("oss-steam-it")!;
+ expect(m).toMatchObject({ engine: "open", kind: "image", hidden: true, family: "qwen-image" });
+ expect(m.routes.map((r) => [r.op, r.provider, r.endpoint])).toEqual([["edit", "comfyui", WORKFLOW]]);
+ expect(m.options.maxImages).toBe(1);
+ expect(m.tagline).toMatch(/20 GB GPU · non-commercial weights$/);
+ });
+
+ it("the library entry: hand-built, Qwen-Image 2.1 + SAM 3.1 + the AusBoss crop and stitch, listed as not validated", () => {
+ const wf = loadManifest().workflows.find((w) => w.id === WORKFLOW)!;
+ expect(wf).toMatchObject({ capability: "edit", file: `${WORKFLOW}.json`, validated: false, vramGb: 20, defaults: { steps: 25 } });
+ expect(wf.source).toBe(`hand-built (scripts/comfy/hand-built/${WORKFLOW}.json)`);
+ expect(wf.models.map((m) => `${m.folder}/${m.file}`)).toEqual([
+ "diffusion_models/qwen_image_2.1_int8_convrot.safetensors",
+ "text_encoders/qwen3vl_8b_int8_convrot.safetensors",
+ "vae/qwen_image_2.1_vae_bf16.safetensors",
+ "checkpoints/sam3.1_multiplex_fp16.safetensors",
+ ]);
+ expect(wf.models.find((m) => m.file.startsWith("sam3.1"))!.url).toMatch(/\/resolve\/7bb8374780a725b4353ed31f3a9395c9742b5621\//);
+ expect(wf.customNodes).toEqual([{ name: "ausboss-nodes", repo: "https://github.com/ausboss/ComfyUI-AusBoss" }]);
+ expect(wf.license).toMatch(/Qwen Research License.*NON-COMMERCIAL.*SAM License.*AusBoss nodes MIT/);
+ // The library file is the hand-built graph as the build writes it.
+ const built = JSON.parse(fs.readFileSync(path.join(LIBRARY, `${WORKFLOW}.json`), "utf8"));
+ const hand = JSON.parse(fs.readFileSync(path.join(process.cwd(), `scripts/comfy/hand-built/${WORKFLOW}.json`), "utf8"));
+ expect(built).toEqual(hand);
+ // The GPU pre-flight knows its nodes and files.
+ const req = JSON.parse(fs.readFileSync(path.join(LIBRARY, "requirements.json"), "utf8"));
+ expect(req.workflows[WORKFLOW]).toMatchObject({
+ 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"],
+ vramGb: 20,
+ });
+ expect(req.workflows[WORKFLOW].core).toEqual(expect.arrayContaining(["SAM3_Detect", "TextEncodeQwenImage21", "SetLatentNoiseMask", "GrowMask"]));
+ });
+
+ it("binds the photo and the words; SAM 3.1 finds the clothing and only the grown mask is repainted and stitched back", async () => {
+ const { workflow: wf } = await prepare({ prompt: "Steam and press the clothing.", images: ["outfit.png"] });
+ expect(wf["10"]).toMatchObject({ class_type: "LoadImage", inputs: { image: "outfit.png" } });
+ expect(wf["23"]).toMatchObject({ class_type: "TextEncodeQwenImage21", inputs: { prompt: "Steam and press the clothing.", resolution: 0, "images.image_1": ["20", 0] } });
+ expect(wf["27"]).toMatchObject({ class_type: "KSampler", inputs: { seed: 7, steps: 25, cfg: 1, sampler_name: "euler", scheduler: "simple", denoise: 1, latent_image: ["25", 0] } });
+ expect(wf["90"]).toMatchObject({ class_type: "SaveImage", inputs: { filename_prefix: "fuobe/gen1", images: ["30", 0] } });
+ // The mask: SAM 3.1's "clothing", every garment in one mask, grown 16 px before the crop so the paste-back follows it.
+ expect(wf["4"]).toMatchObject({ class_type: "CheckpointLoaderSimple", inputs: { ckpt_name: "sam3.1_multiplex_fp16.safetensors" } });
+ expect(wf["11"]).toMatchObject({ class_type: "CLIPTextEncode", inputs: { text: "clothing", clip: ["4", 1] } });
+ expect(wf["12"]).toMatchObject({ class_type: "SAM3_Detect", inputs: { threshold: 0.4, individual_masks: false, image: ["10", 0], conditioning: ["11", 0] } });
+ expect(wf["13"]).toMatchObject({ class_type: "GrowMask", inputs: { expand: 16, mask: ["12", 0] } });
+ expect(wf["20"]).toMatchObject({ class_type: "AUSBOSS_NODES_CropForInpaint", inputs: { image: ["10", 0], mask: ["13", 0], blend_pixels: 8, target_megapixels: 2 } });
+ expect(wf["25"]).toMatchObject({ class_type: "SetLatentNoiseMask", inputs: { samples: ["24", 0], mask: ["20", 1] } });
+ expect(wf["30"]).toMatchObject({ class_type: "AUSBOSS_NODES_StitchInpaint", inputs: { stitcher: ["20", 2], inpainted: ["29", 0] } });
+ // Nothing else is loaded: no painted mask, no second picture, no LoRA.
+ expect(ofClass(wf, "LoadImage")).toHaveLength(1);
+ expect(ofClass(wf, "LoadImageMask")).toHaveLength(0);
+ expect(ofClass(wf, "LoraLoaderModelOnly")).toHaveLength(0);
+ await expect(prepare({ prompt: "x" })).rejects.toThrow(/Add/);
+ });
+
+ it("is listed in Models & licences as non-commercial", () => {
+ const list = buildLicenceList(MODELS, loadManifest().workflows);
+ const row = list.rows.find((r) => r.id === "oss-steam-it")!;
+ expect(row).toMatchObject({ workflows: [WORKFLOW], inCatalog: true });
+ expect(row.flags).toContain("non-commercial");
+ expect(row.licences.join(" ")).toMatch(/SAM License/);
+ });
+
+ it("a guest opens the app page; a run is the generations route, closed to guests", () => {
+ expect(guestRead("/apps/app-steam-it")).toEqual({ kind: "pass" });
+ expect(guestRead("/api/generations")).toMatchObject({ kind: "empty" });
+ });
+
+ it("a demo run on the open engine finishes with a picture", async () => {
+ const img = saveFile({ data: png, contentType: "image/png", name: "outfit.png", source: "upload" }).url;
+ const [g] = gens.createGenerations({ feature: "app:app-steam-it", presetId: "app-steam-it", modelId: "oss-steam-it", inputs: { images: [img] }, presetOptions: { finish: "steamed" } });
+ expect(g.costUsd).toBe(0);
+ expect(g.prompt).toMatch(/so the fabric is smooth and freshly steamed, falling in soft, clean drapes\./);
+ const done = await settle(g.id);
+ expect(done.status, done.error ?? "").toBe("succeeded");
+ expect(done.outputs[0]).toMatchObject({ kind: "image" });
+ });
+});
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index ca75522d..3ccd1d8e 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -14310,6 +14310,91 @@
"Qwen3.5-0.8B (1.7 GB, Apache-2.0), the text encoder: Fuobe uses the pinned copy in models/text_encoders/qwen3.5_0.8b when it is there (hf download Qwen/Qwen3.5-0.8B --revision 2fc06364715b967f1860aea9cf38778875588b17 --local-dir models/text_encoders/qwen3.5_0.8b); otherwise the loader downloads it from Hugging Face on first run"
]
},
+ {
+ "id": "steam-it-qwen-image-21",
+ "title": "Steam It: the clothes pressed, everything else kept (SAM 3.1 clothing mask + Qwen-Image 2.1 inpaint)",
+ "capability": "edit",
+ "file": "steam-it-qwen-image-21.json",
+ "source": "hand-built (scripts/comfy/hand-built/steam-it-qwen-image-21.json)",
+ "bindings": {
+ "prompt": [
+ {
+ "node": "23",
+ "input": "prompt"
+ }
+ ],
+ "image": [
+ {
+ "node": "10",
+ "input": "image"
+ }
+ ],
+ "seed": [
+ {
+ "node": "27",
+ "input": "seed"
+ }
+ ],
+ "steps": [
+ {
+ "node": "27",
+ "input": "steps"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "90",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "90",
+ "kind": "image"
+ }
+ ],
+ "defaults": {
+ "steps": 25
+ },
+ "limits": {},
+ "models": [
+ {
+ "file": "qwen_image_2.1_int8_convrot.safetensors",
+ "folder": "diffusion_models",
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors",
+ "sizeGb": 7.26
+ },
+ {
+ "file": "qwen3vl_8b_int8_convrot.safetensors",
+ "folder": "text_encoders",
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors",
+ "sizeGb": 9.35
+ },
+ {
+ "file": "qwen_image_2.1_vae_bf16.safetensors",
+ "folder": "vae",
+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors",
+ "sizeGb": 0.68
+ },
+ {
+ "file": "sam3.1_multiplex_fp16.safetensors",
+ "folder": "checkpoints",
+ "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/7bb8374780a725b4353ed31f3a9395c9742b5621/checkpoints/sam3.1_multiplex_fp16.safetensors",
+ "sizeGb": 1.75
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "ausboss-nodes",
+ "repo": "https://github.com/ausboss/ComfyUI-AusBoss"
+ }
+ ],
+ "vramGb": 20,
+ "license": "Qwen Research License Agreement (Qwen-Image 2.1): NON-COMMERCIAL, research and evaluation only; SAM 3.1 under Meta's SAM License (commercial use allowed under its terms); AusBoss nodes MIT",
+ "validated": false,
+ "notes": "The Steam It app's graph: qwen-image-21-inpaint with the mask found instead of painted. SAM3_Detect with the word \"clothing\" (threshold 0.4, 2 refine passes, every garment in one mask; works on a worn outfit and on a flat-lay or a hanger) -> GrowMask 16 px on the full picture, so a hem or a sleeve can settle past its old outline and the paste-back follows the same mask -> Crop For Inpaint (context 1.3, blend 8 px, multiple 32, 2 MP, bicubic) -> TextEncodeQwenImage21 with the crop as image 1 (resolution 0) and the app's instruction as the prompt -> VAEEncode of the crop + SetLatentNoiseMask -> QwenImage21Cache -> KSampler 25 steps, cfg 1, euler, simple -> SplitImageWithAlpha -> Stitch Inpaint (classic, no colour match): every pixel outside the grown mask and its 8 px blend is the upload's own. No clothing found: the empty mask selects the whole picture and the stitch gives it back unchanged. The prompt names only the finished state (smooth, pressed fabric) and what stays the same."
+ },
{
"id": "ideogram4-t2i",
"title": "Ideogram 4 text to image (int8, dual-model guidance, the Quality / Default / Turbo preset table)",
diff --git a/workflows/comfyui/requirements.json b/workflows/comfyui/requirements.json
index 3c507998..a22bcf2f 100644
--- a/workflows/comfyui/requirements.json
+++ b/workflows/comfyui/requirements.json
@@ -1,6 +1,6 @@
{
"v": 1,
- "hash": "fe7611ef2220ab79869f19d13b9f626751d2ca7931771e228b630a1b27de0569",
+ "hash": "2be14f2fa40acf2b061d5fa9a74d7b0f2cb3c34620fd85cf73f652738c7d00bd",
"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_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"],
@@ -414,6 +414,7 @@
"soul-cast-sheet-zimage": {"core":["CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptySD3LatentImage","KSampler","ModelSamplingAuraFlow","SaveImage","StringConcatenate","UNETLoader","VAEDecode","VAELoader"],"packs":{"ComfyUI-KJNodes":["ImageGridtoBatch"]},"files":["diffusion_models/z_image_turbo_bf16.safetensors","text_encoders/qwen_3_4b.safetensors","vae/ae.safetensors"],"optional":[],"vramGb":14,"isolated":false,"firstRun":[],"validated":true},
"soundtrack-remix-dbs": {"core":["AudioAdjustVolume","AudioMerge","LoadAudio","PreviewAny","SaveAudioAdvanced"],"packs":{"ComfyUI-DBS":["DBSLoader","DBSSeparate"]},"files":["dbs/DBS-BSRNN-DnR/config.json","dbs/DBS-BSRNN-DnR/model.safetensors","dbs/DBS-TIGER-DnR/config.json","dbs/DBS-TIGER-DnR/model.safetensors"],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"speech-translate-gemma4": {"core":["CLIPLoader","LoadAudio","SaveText","TextGenerate"],"packs":{},"files":["text_encoders/gemma4_e4b_it_fp8_scaled.safetensors"],"optional":[],"vramGb":12,"isolated":false,"firstRun":[],"validated":true},
+ "steam-it-qwen-image-21": {"core":["CLIPLoader","CLIPTextEncode","CheckpointLoaderSimple","GrowMask","KSampler","LoadImage","QwenImage21Cache","SAM3_Detect","SaveImage","SetLatentNoiseMask","SplitImageWithAlpha","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":[]},
"still-to-clip": {"core":["ComfyMathExpression","CreateVideo","EmptyAudio","ImageScale","LoadImage","PrimitiveFloat","RepeatImageBatch","SaveVideo"],"packs":{},"files":[],"optional":[],"vramGb":0,"isolated":false,"firstRun":[],"validated":true},
"storyboard-qwen-edit-2509-next-scene": {"core":["CFGNorm","CLIPLoader","FluxKontextImageScale","KSampler","LoadImage","LoraLoaderModelOnly","ModelSamplingAuraFlow","PrimitiveFloat","PrimitiveInt","SaveImageAdvanced","StringConcatenate","TextEncodeQwenImageEditPlus","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors","loras/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors","loras/next-scene_lora-v2-3000.safetensors","text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors","vae/qwen_image_vae.safetensors"],"optional":[],"vramGb":24,"isolated":false,"firstRun":[],"validated":true},
"style-ref-flux2-klein-4b": {"core":["CFGGuider","CLIPLoader","CLIPTextEncode","ConditioningZeroOut","EmptyFlux2LatentImage","Flux2Scheduler","ImageScaleToTotalPixels","KSamplerSelect","LoadImage","RandomNoise","ReferenceLatent","SamplerCustomAdvanced","SaveImage","UNETLoader","VAEDecode","VAEEncode","VAELoader"],"packs":{},"files":["diffusion_models/flux-2-klein-4b-fp8.safetensors","text_encoders/qwen_3_4b.safetensors","vae/flux2-vae.safetensors"],"optional":[],"vramGb":10,"isolated":false,"firstRun":[],"validated":true},
diff --git a/workflows/comfyui/steam-it-qwen-image-21.json b/workflows/comfyui/steam-it-qwen-image-21.json
new file mode 100644
index 00000000..b2331d2d
--- /dev/null
+++ b/workflows/comfyui/steam-it-qwen-image-21.json
@@ -0,0 +1,291 @@
+{
+ "1": {
+ "inputs": {
+ "unet_name": "qwen_image_2.1_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "class_type": "UNETLoader",
+ "_meta": {
+ "title": "Load Diffusion Model"
+ }
+ },
+ "2": {
+ "inputs": {
+ "clip_name": "qwen3vl_8b_int8_convrot.safetensors",
+ "type": "qwen_image",
+ "device": "default"
+ },
+ "class_type": "CLIPLoader",
+ "_meta": {
+ "title": "Load CLIP (Qwen3-VL 8B)"
+ }
+ },
+ "3": {
+ "inputs": {
+ "vae_name": "qwen_image_2.1_vae_bf16.safetensors"
+ },
+ "class_type": "VAELoader",
+ "_meta": {
+ "title": "Load VAE"
+ }
+ },
+ "4": {
+ "inputs": {
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
+ },
+ "class_type": "CheckpointLoaderSimple",
+ "_meta": {
+ "title": "SAM 3.1"
+ }
+ },
+ "10": {
+ "inputs": {
+ "image": "image.png"
+ },
+ "class_type": "LoadImage",
+ "_meta": {
+ "title": "Load Image - The outfit"
+ }
+ },
+ "11": {
+ "inputs": {
+ "text": "clothing",
+ "clip": [
+ "4",
+ 1
+ ]
+ },
+ "class_type": "CLIPTextEncode",
+ "_meta": {
+ "title": "What to find (text)"
+ }
+ },
+ "12": {
+ "inputs": {
+ "threshold": 0.4,
+ "refine_iterations": 2,
+ "individual_masks": false,
+ "model": [
+ "4",
+ 0
+ ],
+ "image": [
+ "10",
+ 0
+ ],
+ "conditioning": [
+ "11",
+ 0
+ ]
+ },
+ "class_type": "SAM3_Detect",
+ "_meta": {
+ "title": "SAM 3.1 - Every garment, one mask"
+ }
+ },
+ "13": {
+ "inputs": {
+ "expand": 16,
+ "tapered_corners": true,
+ "mask": [
+ "12",
+ 0
+ ]
+ },
+ "class_type": "GrowMask",
+ "_meta": {
+ "title": "Grow Mask - Room for a hem or sleeve to settle"
+ }
+ },
+ "20": {
+ "inputs": {
+ "context_factor": 1.3,
+ "blend_pixels": 8,
+ "output_multiple": 32,
+ "target_width": 0,
+ "target_height": 0,
+ "mask_grow": 0,
+ "mask_blur": 0,
+ "invert_mask": false,
+ "context_pixels": 0,
+ "target_megapixels": 2,
+ "rescale_algorithm": "bicubic",
+ "extend_left": 0,
+ "extend_right": 0,
+ "extend_up": 0,
+ "extend_down": 0,
+ "keep_inside": true,
+ "image": [
+ "10",
+ 0
+ ],
+ "mask": [
+ "13",
+ 0
+ ]
+ },
+ "class_type": "AUSBOSS_NODES_CropForInpaint",
+ "_meta": {
+ "title": "Crop For Inpaint - Crop around the clothes"
+ }
+ },
+ "23": {
+ "inputs": {
+ "prompt": "",
+ "negative_prompt": "",
+ "resolution": 0,
+ "clip": [
+ "2",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ],
+ "images.image_1": [
+ "20",
+ 0
+ ]
+ },
+ "class_type": "TextEncodeQwenImage21",
+ "_meta": {
+ "title": "Text Encode Qwen Image 2.1 - The crop and the instruction"
+ }
+ },
+ "24": {
+ "inputs": {
+ "pixels": [
+ "20",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "class_type": "VAEEncode",
+ "_meta": {
+ "title": "VAE Encode - The crop as the starting point"
+ }
+ },
+ "25": {
+ "inputs": {
+ "samples": [
+ "24",
+ 0
+ ],
+ "mask": [
+ "20",
+ 1
+ ]
+ },
+ "class_type": "SetLatentNoiseMask",
+ "_meta": {
+ "title": "Set Latent Noise Mask - Only the clothes may change"
+ }
+ },
+ "26": {
+ "inputs": {
+ "device": "auto",
+ "dtype": "default",
+ "model": [
+ "1",
+ 0
+ ]
+ },
+ "class_type": "QwenImage21Cache",
+ "_meta": {
+ "title": "Reference cache"
+ }
+ },
+ "27": {
+ "inputs": {
+ "seed": 0,
+ "steps": 25,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1,
+ "model": [
+ "26",
+ 0
+ ],
+ "positive": [
+ "23",
+ 0
+ ],
+ "negative": [
+ "23",
+ 1
+ ],
+ "latent_image": [
+ "25",
+ 0
+ ]
+ },
+ "class_type": "KSampler",
+ "_meta": {
+ "title": "Sampler - CFG 1, euler"
+ }
+ },
+ "28": {
+ "inputs": {
+ "samples": [
+ "27",
+ 0
+ ],
+ "vae": [
+ "3",
+ 0
+ ]
+ },
+ "class_type": "VAEDecode",
+ "_meta": {
+ "title": "Decode"
+ }
+ },
+ "29": {
+ "inputs": {
+ "image": [
+ "28",
+ 0
+ ]
+ },
+ "class_type": "SplitImageWithAlpha",
+ "_meta": {
+ "title": "Drop the alpha"
+ }
+ },
+ "30": {
+ "inputs": {
+ "fix_edge_halo": false,
+ "color_match": 0,
+ "seam": "classic",
+ "stitcher": [
+ "20",
+ 2
+ ],
+ "inpainted": [
+ "29",
+ 0
+ ]
+ },
+ "class_type": "AUSBOSS_NODES_StitchInpaint",
+ "_meta": {
+ "title": "Stitch Inpaint - Put the pressed clothes back"
+ }
+ },
+ "90": {
+ "inputs": {
+ "filename_prefix": "fuobe/steam-it-qwen-image-21",
+ "images": [
+ "30",
+ 0
+ ]
+ },
+ "class_type": "SaveImage",
+ "_meta": {
+ "title": "Save Image"
+ }
+ }
+}