Skip to content

One-click character swap for videos: an open-source, local Higgsfield Genjutsu alternative built on ComfyUI and MiniMax H3, with FLUX.3 Klein relighting.

Use Comfy Kitchen attention for From picture video

D3voz84360c05c6bf
diff --git a/lib/picture.ts b/lib/picture.ts
index 57c7d23..1860b61 100644
--- a/lib/picture.ts
+++ b/lib/picture.ts
@@ -64,5 +64,5 @@ export function applyPictureVideoSettings(graph: ApiGraph, settings: PictureVide
graph[id] = { class_type: "LoraLoaderModelOnly", inputs: { model, lora_name: lora.name, strength_model: lora.strength }, _meta: { title: `LoRA ${index + 1}` } };
model = [id, 0];
});
- graph["52"].inputs.model = model;
+ graph["49"].inputs.model = model;
}
diff --git a/test/picture-settings.test.ts b/test/picture-settings.test.ts
index 468e504..f76133b 100644
--- a/test/picture-settings.test.ts
+++ b/test/picture-settings.test.ts
@@ -38,11 +38,13 @@ test("LoRAs are applied in order, disabled entries are skipped, and turning them
assert.deepEqual(value["picture_lora_0"].inputs.model, ["50", 0]);
assert.deepEqual(value["picture_lora_1"].inputs.model, ["picture_lora_0", 0]);
assert.equal(value["picture_lora_1"].inputs.lora_name, "last.safetensors");
- assert.deepEqual(value["52"].inputs.model, ["picture_lora_1", 0]);
+ assert.deepEqual(value["49"].inputs.model, ["picture_lora_1", 0]);
+ assert.deepEqual(value["52"].inputs.model, ["49", 0]);
assert.ok(!value["51"]); assert.equal(value["60"].inputs.steps, 25);
const plain = graph();
applyPictureVideoSettings(plain, { ...settings, useLoras: false }, 768, 1376);
- assert.deepEqual(plain["52"].inputs.model, ["50", 0]);
+ assert.deepEqual(plain["49"].inputs.model, ["50", 0]);
+ assert.deepEqual(plain["52"].inputs.model, ["49", 0]);
assert.ok(!Object.values(plain).some((node) => node.class_type === "LoraLoaderModelOnly"));
});
@@ -56,3 +58,16 @@ test("default settings keep the tested canvas, length and DMAD configuration", (
assert.equal(value["60"].inputs.steps, 6);
assert.ok(!Object.values(value).some((node) => /Chain|Loop/.test(node.class_type)));
});
+
+
+test("picture rendering uses the same Comfy Kitchen attention backend as the other tabs", () => {
+ for (const useLoras of [true, false]) {
+ const value = graph();
+ applyPictureVideoSettings(value, parsePictureVideoSettings({ useLoras }), 768, 1376);
+ assert.equal(value["49"].class_type, "ModelAttentionBackend");
+ assert.equal(value["49"].inputs.attention, "comfy kitchen attention");
+ assert.deepEqual(value["52"].inputs.model, ["49", 0]);
+ assert.deepEqual(value["57"].inputs.model, ["52", 0]);
+ assert.deepEqual(value["60"].inputs.model, ["52", 0]);
+ }
+});
diff --git a/workflows/build/openjutsu_picture_pipeline.py b/workflows/build/openjutsu_picture_pipeline.py
index 1a1fd3d..4d9bdd8 100644
--- a/workflows/build/openjutsu_picture_pipeline.py
+++ b/workflows/build/openjutsu_picture_pipeline.py
@@ -79,7 +79,8 @@ def motion(prepared, width=480, height=864, frames=141):
"36": node("H3SoundtrackOrSilence", "Original soundtrack / silence when absent", audio=["1", 2], video_info=["1", 3]),
"50": node("UNETLoader", "H3 Diffusion Model", unet_name="minimax_h3_ref2va_pruned_int8_convrot.safetensors", weight_dtype="default"),
"51": node("LoraLoaderModelOnly", "DMAD LoRA", model=["50", 0], lora_name="minimax_h3_DMAD_4step_full_lora_avg_rank_39_bf16.safetensors", strength_model=1.0),
- "52": node("MiniMaxH3SigmaShift", "H3 Sigma Shift", model=["51", 0], shift_video=12.0, shift_audio=2.0),
+ "49": node("ModelAttentionBackend", "Comfy Kitchen Attention", model=["51", 0], attention="comfy kitchen attention"),
+ "52": node("MiniMaxH3SigmaShift", "H3 Sigma Shift", model=["49", 0], shift_video=12.0, shift_audio=2.0),
"53": node("CLIPLoader", "H3 Text Encoder", clip_name="qwen3vl_32b_minimax_h3_int4_convrot.safetensors", type="minimax", device="default"),
"54": node("VAELoader", "H3 Video VAE", vae_name="minimax_h3_video_vae_int8_convrot.safetensors"),
"55": node("VAELoader", "H3 Audio VAE", vae_name="minimax_h3_audio_vae_fp32.safetensors"),
diff --git a/workflows/picture/README.md b/workflows/picture/README.md
index 74cfc50..2361534 100644
--- a/workflows/picture/README.md
+++ b/workflows/picture/README.md
@@ -40,3 +40,5 @@ python workflows/build/openjutsu_picture_pipeline.py --video "video.mp4" --pictu
Names refer to files in ComfyUI's `input` directory. The generated defaults use the current Instagram test clip and original café character picture; choose your own files after importing.
Validated locally: image preparation → review → explicit video render completed in the app. The saved preview and H3's picture input were byte-identical. The result contains 141 frames at 480×864 and 24 fps, with audio, and the app supports video seeking. Temporary server outages and page refreshes preserve pending jobs. Automated tests, TypeScript checking and the production build pass. The café stayed consistent; precise pose and framing remain approximate.
+
+H3 video rendering selects Comfy Kitchen INT8 attention, matching the other video tabs. The backend change applies to newly submitted jobs.
diff --git a/workflows/picture/from_picture_motion_flux3.api.json b/workflows/picture/from_picture_motion_flux3.api.json
index 9e94adc..c9e1aef 100644
--- a/workflows/picture/from_picture_motion_flux3.api.json
+++ b/workflows/picture/from_picture_motion_flux3.api.json
@@ -435,6 +435,19 @@
"title": "Original soundtrack / silence when absent"
}
},
+ "49": {
+ "class_type": "ModelAttentionBackend",
+ "inputs": {
+ "model": [
+ "51",
+ 0
+ ],
+ "attention": "comfy kitchen attention"
+ },
+ "_meta": {
+ "title": "Comfy Kitchen Attention"
+ }
+ },
"50": {
"class_type": "UNETLoader",
"inputs": {
@@ -463,7 +476,7 @@
"class_type": "MiniMaxH3SigmaShift",
"inputs": {
"model": [
- "51",
+ "49",
0
],
"shift_video": 12.0,