Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Remove object: remove a person on MiniMax H3 (H3 Relay's Person Removal, Akatz Labs' Person Remover LoRA)

Claude1b4f832f3bd3
diff --git a/scripts/comfy/README.md b/scripts/comfy/README.md
index d1d4fba1..4951f904 100644
--- a/scripts/comfy/README.md
+++ b/scripts/comfy/README.md
@@ -288,17 +288,19 @@ node validate-workflows.mjs image-to-3d-trellis2-multiview image-to-3d-trellis2
### Genjutsu Character swap (o/genjutsu-original, 2026-10-27)
-Two hand-built entries for Genjutsu's Character swap on MiniMax H3 (docs/research/openjutsu-6.md):
+Two hand-built entries for Genjutsu's Character swap on MiniMax H3, and one for Remove object's person removal on the same
+model (docs/research/openjutsu-6.md):
```bash
-npm run build -- video-character-swap-h3 video-character-swap-h3-relay
-node validate-workflows.mjs video-character-swap-h3 video-character-swap-h3-relay --shared
+npm run build -- video-character-swap-h3 video-character-swap-h3-relay video-person-remove-h3-relay
+node validate-workflows.mjs video-character-swap-h3 video-character-swap-h3-relay video-person-remove-h3-relay --shared
```
| id | capability | what | validated here |
|---|---|---|---|
| `video-character-swap-h3` | video-character-swap | Openjutsu's `swap.api.json` (Akatz Labs' H3 Character Swap graph at `0670e4f` with a `Video Slice` in front): the part (start + length, 5–15 s, longer continues window by window), quality as the unpatched pack's string (`"480"` / `"768"`), H3 reference tags in the prompt, who to swap (SAM 3.1 words, largest / leftmost / rightmost / index, or clicks as JSON points on H3's canvas), the anchor first frame as `image2` (absent: its loader and fit are deleted and the shot's `use_anchor` is off), the swap LoRA release (V1.5, V1, or none: the Turbo LoRA alone) | no: `missing_node_type` (the `h3_character_swap` nodes are not on this server; its 22 core nodes are in `object_info.subset.json`) |
| `video-character-swap-h3-relay` | video-character-swap | H3 Relay 2.0's character-swap example (akatz-ai/h3-relay at `e2a7665b`) with a `Video Slice`: the same part, quality, words, seed and who; no anchor | no: `missing_node_type` (`H3RelayAppendWindow`) |
+| `video-person-remove-h3-relay` | remove-object | H3 Relay 2.0's Person Removal example with Akatz Labs' Person Remover V1 LoRA (`akatz-ai/MiniMax-H3-Person-Remover-LoRA` at `fe136b3`): SAM 3.1 marks the person you name in green, H3 rebuilds the background in 22-frame windows from a clean first frame (`image`, fitted to the video's size by an added `ImageScale`). Remove object's "H3 Person Removal" eraser fits the part to 24 fps on the 32-pixel grid, makes the clean frame with Qwen-Image-Edit and puts the sound back | no: `missing_node_type` (`H3RelayAppendWindow`) |
- **Node packs**: `h3_character_swap` (GPL-3.0) is copied out of `akatz-labs/h3-character-swap-tool` at
`0670e4fdf95adf2262caa4b81afed2a9c4ae4b7b` by `install-comfyui.sh` (`H3_PACK=0` skips it; it needs FFmpeg and FFprobe on
diff --git a/scripts/comfy/hand-built/video-person-remove-h3-relay.json b/scripts/comfy/hand-built/video-person-remove-h3-relay.json
new file mode 100644
index 00000000..e26383cb
--- /dev/null
+++ b/scripts/comfy/hand-built/video-person-remove-h3-relay.json
@@ -0,0 +1,764 @@
+{
+ "model": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "UNETLoader"
+ }
+ },
+ "shift": {
+ "class_type": "MiniMaxH3SigmaShift",
+ "inputs": {
+ "model": [
+ "model",
+ 0
+ ],
+ "shift_video": 12.0,
+ "shift_audio": 3.0
+ },
+ "_meta": {
+ "title": "MiniMaxH3SigmaShift"
+ }
+ },
+ "attention": {
+ "class_type": "ModelAttentionBackend",
+ "inputs": {
+ "model": [
+ "shift",
+ 0
+ ],
+ "attention": "comfy kitchen attention"
+ },
+ "_meta": {
+ "title": "ModelAttentionBackend"
+ }
+ },
+ "text": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
+ "type": "minimax",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "CLIPLoader"
+ }
+ },
+ "text_device": {
+ "class_type": "SelectCLIPDevice",
+ "inputs": {
+ "clip": [
+ "text",
+ 0
+ ],
+ "device": "gpu:0"
+ },
+ "_meta": {
+ "title": "SelectCLIPDevice"
+ }
+ },
+ "text_memory": {
+ "class_type": "H3RelayTextMemory",
+ "inputs": {
+ "clip": [
+ "text_device",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "H3RelayTextMemory"
+ }
+ },
+ "video_vae": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "VAELoader"
+ }
+ },
+ "audio_vae": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"
+ },
+ "_meta": {
+ "title": "VAELoader"
+ }
+ },
+ "adapter": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "attention",
+ 0
+ ],
+ "lora_name": "H3-Person-Remover-V1.safetensors",
+ "strength_model": 1.0
+ },
+ "_meta": {
+ "title": "LoraLoaderModelOnly"
+ }
+ },
+ "source": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "source.mp4"
+ },
+ "_meta": {
+ "title": "Source video (24 fps, sides on the 32 grid)"
+ }
+ },
+ "components": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "source",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "GetVideoComponents"
+ }
+ },
+ "dimensions": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "components",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "GetImageSize"
+ }
+ },
+ "anchor": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "clean-first-frame.png"
+ },
+ "_meta": {
+ "title": "Clean first frame (made by the app)"
+ }
+ },
+ "green": {
+ "class_type": "EmptyImage",
+ "inputs": {
+ "width": [
+ "dimensions",
+ 0
+ ],
+ "height": [
+ "dimensions",
+ 1
+ ],
+ "batch_size": 1,
+ "color": 65280
+ },
+ "_meta": {
+ "title": "EmptyImage"
+ }
+ },
+ "sam": {
+ "class_type": "CheckpointLoaderSimple",
+ "inputs": {
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "CheckpointLoaderSimple"
+ }
+ },
+ "subject": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "sam",
+ 1
+ ],
+ "text": "person"
+ },
+ "_meta": {
+ "title": "Who to remove (SAM 3.1 words)"
+ }
+ },
+ "first_frame": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "components",
+ 0
+ ],
+ "batch_index": 0,
+ "length": 1
+ },
+ "_meta": {
+ "title": "ImageFromBatch"
+ }
+ },
+ "detect": {
+ "class_type": "SAM3_Detect",
+ "inputs": {
+ "model": [
+ "sam",
+ 0
+ ],
+ "image": [
+ "first_frame",
+ 0
+ ],
+ "conditioning": [
+ "subject",
+ 0
+ ],
+ "threshold": 0.4,
+ "refine_iterations": 2,
+ "individual_masks": false
+ },
+ "_meta": {
+ "title": "SAM3_Detect"
+ }
+ },
+ "track": {
+ "class_type": "SAM3_VideoTrack",
+ "inputs": {
+ "model": [
+ "sam",
+ 0
+ ],
+ "images": [
+ "components",
+ 0
+ ],
+ "initial_mask": [
+ "detect",
+ 0
+ ],
+ "conditioning": [
+ "subject",
+ 0
+ ],
+ "detection_threshold": 0.5,
+ "max_objects": 1,
+ "detect_interval": 12
+ },
+ "_meta": {
+ "title": "SAM3_VideoTrack"
+ }
+ },
+ "mask": {
+ "class_type": "SAM3_TrackToMask",
+ "inputs": {
+ "track_data": [
+ "track",
+ 0
+ ],
+ "object_indices": ""
+ },
+ "_meta": {
+ "title": "SAM3_TrackToMask"
+ }
+ },
+ "binary_mask": {
+ "class_type": "ThresholdMask",
+ "inputs": {
+ "mask": [
+ "mask",
+ 0
+ ],
+ "value": 0.5
+ },
+ "_meta": {
+ "title": "ThresholdMask"
+ }
+ },
+ "grow_mask": {
+ "class_type": "GrowMask",
+ "inputs": {
+ "mask": [
+ "binary_mask",
+ 0
+ ],
+ "expand": 5,
+ "tapered_corners": false
+ },
+ "_meta": {
+ "title": "GrowMask"
+ }
+ },
+ "green_guide": {
+ "class_type": "ImageCompositeMasked",
+ "inputs": {
+ "destination": [
+ "components",
+ 0
+ ],
+ "source": [
+ "green",
+ 0
+ ],
+ "mask": [
+ "grow_mask",
+ 0
+ ],
+ "x": 0,
+ "y": 0,
+ "resize_source": false
+ },
+ "_meta": {
+ "title": "ImageCompositeMasked"
+ }
+ },
+ "plan": {
+ "class_type": "H3RelayWindowPlan",
+ "inputs": {
+ "source_frames": [
+ "dimensions",
+ 2
+ ],
+ "window_frames": "22",
+ "history_frames": "18",
+ "seed": 904234,
+ "schedule": "removal_v1",
+ "seed_mode": "increment",
+ "seed_overrides": "{}"
+ },
+ "_meta": {
+ "title": "Plan source-aligned windows"
+ }
+ },
+ "start": {
+ "class_type": "StartLoop",
+ "inputs": {
+ "mode": "simple",
+ "mode.num_iterations": [
+ "review",
+ 2
+ ],
+ "cache_iterations": false,
+ "initial_iteration_value": [
+ "review",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Native loop · one H3 window"
+ }
+ },
+ "window": {
+ "class_type": "H3RelayWindowInputs",
+ "inputs": {
+ "source": [
+ "review",
+ 4
+ ],
+ "window": [
+ "review",
+ 3
+ ],
+ "iteration_index": [
+ "start",
+ 0
+ ],
+ "previous": [
+ "start",
+ 4
+ ],
+ "reference_history": false,
+ "fps": [
+ "components",
+ 2
+ ],
+ "resize_anchor": false,
+ "history_audio_mode": "generated",
+ "anchor": [
+ "anchor_fit",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "H3RelayWindowInputs"
+ }
+ },
+ "reference_conditioning": {
+ "class_type": "MiniMaxH3ReferenceToVideo",
+ "inputs": {
+ "clip": [
+ "text_memory",
+ 0
+ ],
+ "prompt": "Remove the green-masked person and reconstruct the background. Preserve the rest of the video, including its camera motion and frame timing.",
+ "width": [
+ "dimensions",
+ 0
+ ],
+ "height": [
+ "dimensions",
+ 1
+ ],
+ "length": [
+ "window",
+ 8
+ ],
+ "ref_image_size": "match",
+ "ref_videos.ref_video_0": [
+ "window",
+ 5
+ ],
+ "ref_images.ref_image_0": [
+ "window",
+ 11
+ ]
+ },
+ "_meta": {
+ "title": "Native H3 reference conditioning"
+ }
+ },
+ "history": {
+ "class_type": "H3RelayApplyHistory",
+ "inputs": {
+ "positive": [
+ "reference_conditioning",
+ 0
+ ],
+ "latent": [
+ "reference_conditioning",
+ 1
+ ],
+ "vae": [
+ "video_vae",
+ 0
+ ],
+ "audio_vae": [
+ "audio_vae",
+ 0
+ ],
+ "frames": [
+ "window",
+ 3
+ ],
+ "history_frames": [
+ "window",
+ 7
+ ],
+ "first_frame_guide": false,
+ "target_audio_guide": false,
+ "audio": [
+ "window",
+ 4
+ ]
+ },
+ "_meta": {
+ "title": "H3RelayApplyHistory"
+ }
+ },
+ "guide": {
+ "class_type": "MiniMaxH3AddGuide",
+ "inputs": {
+ "positive": [
+ "history",
+ 0
+ ],
+ "latent": [
+ "history",
+ 1
+ ],
+ "frame_idx": 0,
+ "vae": [
+ "video_vae",
+ 0
+ ],
+ "image": [
+ "window",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Native target guide"
+ }
+ },
+ "sampling_memory": {
+ "class_type": "H3RelaySamplingMemory",
+ "inputs": {
+ "model": [
+ "adapter",
+ 0
+ ],
+ "latent": [
+ "history",
+ 1
+ ],
+ "conditioning": [
+ "guide",
+ 0
+ ],
+ "activation_memory_gib": 4.0
+ },
+ "_meta": {
+ "title": "H3RelaySamplingMemory"
+ }
+ },
+ "noise": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": [
+ "window",
+ 10
+ ]
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "guider": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "sampling_memory",
+ 0
+ ],
+ "positive": [
+ "guide",
+ 0
+ ],
+ "negative": [
+ "guide",
+ 0
+ ],
+ "cfg": 1.0
+ },
+ "_meta": {
+ "title": "CFGGuider"
+ }
+ },
+ "sampler": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "er_sde"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "schedule": {
+ "class_type": "BasicScheduler",
+ "inputs": {
+ "model": [
+ "adapter",
+ 0
+ ],
+ "scheduler": "simple",
+ "steps": 12,
+ "denoise": 1.0
+ },
+ "_meta": {
+ "title": "BasicScheduler"
+ }
+ },
+ "sample": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "noise",
+ 0
+ ],
+ "guider": [
+ "guider",
+ 0
+ ],
+ "sampler": [
+ "sampler",
+ 0
+ ],
+ "sigmas": [
+ "schedule",
+ 0
+ ],
+ "latent_image": [
+ "history",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "separate": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "sample",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVSeparateAVLatent"
+ }
+ },
+ "decode": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "separate",
+ 0
+ ],
+ "vae": [
+ "video_vae",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAEDecode"
+ }
+ },
+ "append": {
+ "class_type": "H3RelayAppendWindow",
+ "inputs": {
+ "frames": [
+ "decode",
+ 0
+ ],
+ "window": [
+ "window",
+ 12
+ ],
+ "previous": [
+ "start",
+ 4
+ ],
+ "audio": [
+ "decode_audio",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "H3RelayAppendWindow"
+ }
+ },
+ "end": {
+ "class_type": "EndLoop",
+ "inputs": {
+ "output_value": [
+ "append",
+ 0
+ ],
+ "next_iteration_value": [
+ "append",
+ 0
+ ],
+ "accumulate": false
+ },
+ "_meta": {
+ "title": "EndLoop"
+ }
+ },
+ "finish": {
+ "class_type": "H3RelayFinishWindows",
+ "inputs": {
+ "state": [
+ "end",
+ 0
+ ],
+ "audio_mode": "none"
+ },
+ "_meta": {
+ "title": "H3RelayFinishWindows"
+ }
+ },
+ "video": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "finish",
+ 0
+ ],
+ "fps": [
+ "finish",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "CreateVideo"
+ }
+ },
+ "save": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "video",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-person-remove-h3-relay",
+ "format": "mp4",
+ "format.codec": "h264",
+ "format.codec.encoding": "re-encode",
+ "format.codec.encoding.crf": 16
+ },
+ "_meta": {
+ "title": "SaveVideo"
+ }
+ },
+ "review": {
+ "class_type": "H3RelayReviewWindows",
+ "inputs": {
+ "windows": [
+ "plan",
+ 0
+ ],
+ "source": [
+ "green_guide",
+ 0
+ ],
+ "anchor": [
+ "anchor_fit",
+ 0
+ ],
+ "window_controls": "{}"
+ },
+ "_meta": {
+ "title": "H3RelayReviewWindows"
+ }
+ },
+ "decode_audio": {
+ "class_type": "VAEDecodeAudio",
+ "inputs": {
+ "samples": [
+ "separate",
+ 1
+ ],
+ "vae": [
+ "audio_vae",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAEDecodeAudio"
+ }
+ },
+ "anchor_fit": {
+ "class_type": "ImageScale",
+ "inputs": {
+ "upscale_method": "lanczos",
+ "width": [
+ "dimensions",
+ 0
+ ],
+ "height": [
+ "dimensions",
+ 1
+ ],
+ "crop": "center",
+ "image": [
+ "anchor",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Clean first frame at the video's exact size"
+ }
+ }
+}
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 2e6f86d3..d485362f 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -193,6 +193,7 @@ export const KNOWN_MODELS = {
'minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors': { folder: 'loras', url: 'https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/3ec17a324ced54151364f24f8b5fb6bf7e26414f/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors' },
'h3_character_swap_v1.5.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/resolve/d06323b7c8e70e97cdab48b78a1e05f786c8cba9/h3_character_swap_v1.5.safetensors' },
'h3_character_swap_pro4500_1000.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/resolve/a665bb7e3bb9804e487d2925f67744f554c8ad49/h3_character_swap_pro4500_1000.safetensors' },
+ 'H3-Person-Remover-V1.safetensors': { folder: 'loras', url: 'https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/fe136b3dc93aea993b9f194d48ea9859fdc2de14/H3-Person-Remover-V1.safetensors' },
'depth_anything_3_mono_large.safetensors': { folder: 'geometry_estimation', url: 'https://huggingface.co/Comfy-Org/Depth-Anything-3/resolve/main/geometry_estimation/depth_anything_3_mono_large.safetensors' },
// comfyui-oss-3 additions (docs/research/comfyui-oss-3.json, sizes from the Hugging Face tree API)
'z_image_turbo_bf16.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_bf16.safetensors' },
@@ -2859,6 +2860,32 @@ export const SPEC = [
'Bindings as video-character-swap-h3 without an anchor frame or a masked-generation switch; lora "none" deletes the adapter and feeds its users from the Turbo LoRA. H3 Relay registers HTTP routes and an in-memory H3 layout compatibility layer on import: run it on the isolated worker if you prefer (install-comfyui.sh installs it with H3_RELAY=1). ' +
'Needs FFmpeg and FFprobe on PATH. Not validated here: the pack is not installed on this server.',
},
+ // Remove object's "Remove a person (H3)" (docs/research/openjutsu-6.md §4.4, §11.1 item 9): H3 Relay 2.0's Person Removal
+ // example (akatz-ai/h3-relay @ e2a7665b, GPL-3.0) with Akatz Labs' Person Remover V1 LoRA, started from a clean first
+ // frame the app makes (the person already gone). The clip comes in at 24 fps on the 32-pixel grid (Fuobe's fit step).
+ {
+ id: 'video-person-remove-h3-relay',
+ title: 'Remove a person on H3 Relay 2.0: SAM 3.1 marks them green, MiniMax H3 + the Person Remover LoRA rebuilds the background from a clean first frame (h3-relay pack)',
+ capability: 'remove-object',
+ handBuilt: 'hand-built/video-person-remove-h3-relay.json',
+ packs: ['h3-relay'],
+ modelUrls: { 'sam3.1_multiplex_fp16.safetensors': 'https://huggingface.co/Comfy-Org/sam3.1/resolve/7bb8374780a725b4353ed31f3a9395c9742b5621/checkpoints/sam3.1_multiplex_fp16.safetensors' },
+ bindings: {
+ video: [b('source', 'file')], image: [b('anchor', 'image')],
+ maskPrompt: [b('subject', 'text')], maskGrow: [b('grow_mask', 'expand')], seed: [b('plan', 'seed')], steps: [b('schedule', 'steps')],
+ windowFrames: [b('plan', 'window_frames')], historyFrames: [b('plan', 'history_frames')],
+ lora: [b('adapter', 'lora_name')], loraStrength: [b('adapter', 'strength_model')], filenamePrefix: [b('save', 'filename_prefix')],
+ },
+ outputs: [{ node: 'save', kind: 'video' }],
+ defaults: { maskPrompt: 'person', maskGrow: 5, steps: 12, windowFrames: '22', historyFrames: '18', lora: 'H3-Person-Remover-V1.safetensors', loraStrength: 1 },
+ limits: { maxDurationSec: 60, maxFrames: 3592 },
+ vramGb: 24,
+ license: 'MiniMax H3 Community License (H3 Ref2VA, its video and audio VAEs, the packaged Qwen3-VL text encoder, Akatz Labs\' Person Remover V1 LoRA): territory EXCLUDES the US, the EU, the UK and South Korea; commercial use above US$20M yearly revenue needs MiniMax\'s written authorization; show "MiniMax H3" on the product\'s interface; no outputs used to improve other AI models · Qwen3-VL-32B base Apache-2.0 · SAM 3.1 under Meta\'s SAM License (commercial use allowed under its terms) · H3 Relay nodes GPL-3.0 (Sendy Software LLC and contributors; vendored Context Loop and Spectrum GPL-3.0); the graph is H3 Relay\'s example workflow (GPL-3.0 repository)',
+ notes:
+ 'H3 Relay\'s toolkit H3-Person-Removal.api.json at e2a7665b (Akatz Labs\' tool ships the same file). Changed: the clean first frame goes through an ImageScale (centre crop) to the video\'s exact size, so an edit that came back a little larger or smaller still fits; SAM 3.1\'s words default to "person"; the save prefix. ' +
+ 'video = the part already fitted to 24 fps on the 32-pixel grid (oss-fit-clip), image = the clean first frame (the app makes it with Qwen-Image-Edit from the part\'s first frame). 22-frame windows with 18 of history, 12 steps, er_sde / simple, CFG 1, LoRA 1.0, mask grown 5 px, seed 904234 by default (Akatz\'s settings). The output is silent: the app puts the clip\'s sound back. ' +
+ 'Needs the h3-relay pack (H3_RELAY=1) and FFmpeg. Not validated here: the pack is not installed on this server.',
+ },
// ---- Faceless "Frame by frame": Ken Burns over a still ------------------------------
{
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index 89732f4a..350e4e70 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -725,6 +725,12 @@
"error": null,
"at": "2026-10-18T07:29:29.488Z"
},
+ "video-person-remove-h3-relay": {
+ "sha256": "5ba6ab867836433b4af7b00e507c1bc031483afebb8680e10a9d41903c6de2f0",
+ "validated": false,
+ "error": "HTTP 400: missing_node_type: Node 'H3RelayAppendWindow' not found. The custom node may not be installed. (Node ID '#append')",
+ "at": "2026-10-27T09:34:44.790Z"
+ },
"video-reframe-wan22-fun-vace": {
"sha256": "3d97f02a5da7badd11df1f1334de2924b4fc930c8976597b25c231d342b629de",
"validated": true,
diff --git a/src/lib/catalog/character-swap.ts b/src/lib/catalog/character-swap.ts
index 9bbbdae3..c57d79be 100644
--- a/src/lib/catalog/character-swap.ts
+++ b/src/lib/catalog/character-swap.ts
@@ -104,11 +104,23 @@ export const TURBO_LORA: LoraRef = {
/** The ComfyUI workflows of the Character swap. */
export const H3_WORKFLOWS = ["video-character-swap-h3", "video-character-swap-h3-relay"] as const;
+/** Remove object's "Remove a person (H3)": H3 Relay's Person Removal graph (docs/research/openjutsu-6.md §4.4). */
+export const H3_REMOVAL_WORKFLOW = "video-person-remove-h3-relay";
+
+/** Akatz Labs' Person Remover V1 LoRA (Hugging Face akatz-ai/MiniMax-H3-Person-Remover-LoRA at the researched revision). */
+export const PERSON_REMOVER_LORA: LoraRef = {
+ file: "H3-Person-Remover-V1.safetensors",
+ url: "https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/fe136b3dc93aea993b9f194d48ea9859fdc2de14/H3-Person-Remover-V1.safetensors",
+ version: "fe136b3dc93aea993b9f194d48ea9859fdc2de14",
+ licence: { commercial: true, hostedOk: true, snapshotDate: "2026-10-27", name: "MiniMax H3 Community License" },
+};
+
/**
* The LoRA files a Character swap graph loads itself (not injected: its own loaders name them), so a run can download
* the ones ComfyUI lacks before it starts: the Turbo LoRA and the swap LoRA's release (none: only Turbo).
*/
export function graphLoras(endpoint: string, extra: Record<string, unknown> | undefined): LoraRef[] {
+ if (endpoint === H3_REMOVAL_WORKFLOW) return [PERSON_REMOVER_LORA];
if (!(H3_WORKFLOWS as readonly string[]).includes(endpoint)) return [];
const lora = extra?.lora;
return lora === "none" ? [TURBO_LORA] : [TURBO_LORA, swapLoraRef(lora === "v1" ? "v1" : "v1.5")];
@@ -472,7 +484,7 @@ export interface CharacterLicence {
const H3_LICENCE_URL = "https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/42ed227ee7df40d41602854ae760620d6eb651fe/LICENSE";
export const MINIMAX_H3_LICENCE: CharacterLicence = {
- item: "MiniMax H3 (diffusion model, VAEs, packaged text encoder) and Akatz Labs' Character Swap LoRA V1 / V1.5",
+ item: "MiniMax H3 (diffusion model, VAEs, packaged text encoder), Akatz Labs' Character Swap LoRA V1 / V1.5 and Person Remover V1",
name: "MiniMax H3 Community License",
class: "regions",
url: H3_LICENCE_URL,
@@ -541,6 +553,8 @@ export const CHARACTER_LORAS: { file: string; name: string; url: string; licence
{ file: SWAP_LORAS["v1.5"].file, name: "H3 Character Swap LoRA V1.5 (Akatz Labs)", url: SWAP_LORAS["v1.5"].url, licence: MINIMAX_H3_LICENCE },
{ file: SWAP_LORAS.v1.file, name: "H3 Character Swap LoRA V1 (Akatz Labs)", url: SWAP_LORAS.v1.url, licence: MINIMAX_H3_LICENCE },
{ file: TURBO_LORA.file, name: "MiniMax H3 FL2V Turbo 8-step (lightx2v)", url: TURBO_LORA.url!, licence: TURBO_LICENCE },
+ // Remove object's "Remove a person (H3)".
+ { file: PERSON_REMOVER_LORA.file, name: "H3 Person Remover V1 (Akatz Labs)", url: PERSON_REMOVER_LORA.url!, licence: MINIMAX_H3_LICENCE },
];
export const characterLora = (file: string) => CHARACTER_LORAS.find((l) => l.file === file);
diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.ts
index 3b885bc6..7f314839 100644
--- a/src/lib/catalog/models.ts
+++ b/src/lib/catalog/models.ts
@@ -695,6 +695,19 @@ const open: ModelDef[] = [
routes: [comfy("video-swap", "video-character-swap-h3-relay", "H3 Relay toolkit: SAM 3.1 subject, 124-frame windows with 18 frames of history, the clip's sound kept")],
options: { seed: true, resolutions: ["480p", "768p"], maxImages: 1 },
}),
+ // Remove object's "Remove a person (H3)" (docs/research/openjutsu-6.md §11.1): H3 Relay's Person Removal with Akatz
+ // Labs' Person Remover LoRA, from a clean first frame (Remove object makes it, fits the clip to 24 fps, puts the sound back).
+ o({
+ id: "oss-h3-person-remove",
+ name: "H3 Person Removal · Relay 2.0",
+ vendor: "MiniMax × Akatz Labs",
+ family: "minimax-h3",
+ kind: "video",
+ tagline: "Name the person to remove: SAM 3.1 marks them, MiniMax H3 with Akatz Labs' Person Remover LoRA rebuilds what was behind them from a clean first frame · 24 GB GPU with offloading (Video tools → Remove object makes the clean frame and keeps the sound)",
+ badges: ["new"],
+ routes: [comfy("remove-object", "video-person-remove-h3-relay", "H3 Relay Person Removal: the person painted green, 22-frame windows with 18 of history from the clean first frame (image), 12 steps, silent")],
+ options: { seed: true, maxImages: 1 },
+ }),
o({
id: "oss-qwen-relight",
name: "Qwen-Image-Edit Relight",
diff --git a/src/lib/catalog/remove-object.ts b/src/lib/catalog/remove-object.ts
index 86a8b05c..b45f305c 100644
--- a/src/lib/catalog/remove-object.ts
+++ b/src/lib/catalog/remove-object.ts
@@ -10,6 +10,7 @@
* shared by the page, the server (src/server/remove-object.ts) and the tests.
* Research: docs/research/higgsfield-delta-4.md §4.1, paid-model-apis-4.md §3 and §10, comfyui-oss-4.md §b.
*/
+import { h3Canvas } from "./character-swap";
import { joinGroups, type PlanStep } from "./shorts";
import type { ChainSlot, Engine, GenerationRequest, PixelPoint } from "./types";
@@ -82,6 +83,11 @@ export interface Eraser {
everyone?: boolean;
/** Each side of the picture must be within this many pixels (Kling O3 edit: 720–3840). */
sides?: { min: number; max: number };
+ /**
+ * Removes a person you name, starting from a clean first frame (the person already gone, made by an image edit) on a
+ * clip fitted to 24 fps on the 32-pixel grid: H3 Relay's Person Removal (Akatz Labs' Person Remover LoRA).
+ */
+ cleanFrame?: boolean;
}
/**
@@ -181,6 +187,15 @@ export const ERASERS: Eraser[] = [
window: VACE_PAINTED_WINDOW,
keepsSound: true,
},
+ {
+ id: "oss-h3-person-remove",
+ engine: "open",
+ modes: ["type"],
+ label: "H3 Person Removal",
+ note: "People only: a clean first frame first, then MiniMax H3 with Akatz Labs' Person Remover LoRA rebuilds what was behind them · 24 GB GPU with offloading · MiniMax H3 Community License",
+ keepsSound: false,
+ cleanFrame: true,
+ },
{
id: "oss-void-remove",
engine: "open",
@@ -602,6 +617,7 @@ function eraseRequest(input: RemovalPlanInput, p: Piece): Partial<GenerationRequ
* - then the pieces are joined (folded when the join takes fewer clips) and the clip's own sound put back.
*/
export function planRemoval(input: RemovalPlanInput): RemovalPlan {
+ if (input.eraser.cleanFrame) return planPersonRemoval(input);
const e = input.eraser;
const t = REMOVE_TOOLS[input.engine];
const pieces = planPieces(e, input.source, input.range);
@@ -715,6 +731,78 @@ export function planRemoval(input: RemovalPlanInput): RemovalPlan {
return { steps, final, pieces, sound, tracked };
}
+/** The tools the H3 person removal prepares its inputs with (all on your GPU). */
+export const PERSON_REMOVAL_TOOLS = { fit: "oss-fit-clip", frame: "oss-extract-frame", clean: "oss-qwen-edit" } as const;
+
+/** H3 Relay's Person Removal works at 24 fps (its windows are counted in frames of the clip as it comes in). */
+export const PERSON_REMOVAL_FPS = 24;
+
+/** The clean first frame's edit: the person gone, the scene behind them continued, everything else as it was. */
+export function cleanFramePrompt(words: string | undefined): string {
+ const who = targetPhrase(words ?? "") || "the person";
+ return (
+ `Remove ${who} from the picture completely, with their shadow and anything they hold, and fill the space with what was behind them: ` +
+ "the background continues naturally, matching the light, texture and perspective. Keep everything else exactly as it is: the other people, the framing, the lighting and the size of the picture."
+ );
+}
+
+/**
+ * Remove a person on H3 (docs/research/openjutsu-6.md §4.4): the part fitted to 24 fps on the 32-pixel grid (the size
+ * H3's pixel budget gives the clip at "768"), its first frame, a clean copy of that frame with the person gone
+ * (Qwen-Image-Edit), then H3 Relay's Person Removal from the clean frame; its output is silent, so the clip's sound is
+ * put back.
+ */
+function planPersonRemoval(input: RemovalPlanInput): RemovalPlan {
+ const e = input.eraser;
+ const base = { feature: REMOVE.feature, batchTitle: input.title };
+ const helper = { feature: REMOVE.stepFeature, batchTitle: input.title };
+ const seed = input.seed !== undefined ? { seed: input.seed } : {};
+ const size = h3Canvas(input.source.width ?? 1280, input.source.height ?? 720, "768p");
+ const sound = !!input.source.hasAudio;
+ const label = (what: string, index: number) => ({ label: what, index, of: 4 });
+ const steps: PlanStep[] = [
+ {
+ key: "fit",
+ request: {
+ ...helper,
+ modelId: PERSON_REMOVAL_TOOLS.fit,
+ op: "trim",
+ inputs: { video: input.source.url },
+ params: { startTime: r3(input.range.start), endTime: r3(input.range.end), fps: PERSON_REMOVAL_FPS, extra: { width: size.width, height: size.height } },
+ step: label(`Fit the part (24 fps, ${size.width}×${size.height})`, 0),
+ },
+ },
+ {
+ key: "frame",
+ request: { ...helper, modelId: PERSON_REMOVAL_TOOLS.frame, op: "frame", params: { startTime: 0, endTime: 0.5, extra: { frameIndex: 0 } }, step: label("Its first frame", 1) },
+ after: ["fit"],
+ chain: [{ slot: "video" }],
+ },
+ {
+ key: "clean",
+ request: { ...helper, modelId: PERSON_REMOVAL_TOOLS.clean, op: "edit", prompt: cleanFramePrompt(input.prompt), ...(input.seed !== undefined ? { params: { ...seed } } : {}), step: label("A clean first frame (Qwen-Image-Edit)", 2) },
+ after: ["frame"],
+ chain: [{ slot: "images", position: "first" }],
+ },
+ {
+ key: "erase0",
+ request: {
+ ...(sound ? helper : { ...base, title: input.title }),
+ modelId: e.id,
+ op: "remove-object",
+ prompt: targetPhrase(input.prompt ?? "") || "person",
+ ...(input.seed !== undefined ? { params: { ...seed } } : {}),
+ step: label("Remove the person (MiniMax H3)", 3),
+ },
+ after: ["fit", "clean"],
+ chain: [{ slot: "video" }, { slot: "images", position: "first" }],
+ },
+ ];
+ const piece: Piece = { index: 0, start: input.range.start, end: input.range.end };
+ const final = joinWithSound(steps, { engine: "open", title: input.title, base, helper, source: input.source, range: input.range, pieces: ["erase0"], sound });
+ return { steps, final, pieces: [piece], sound, tracked: false };
+}
+
export interface JoinInput {
engine: Engine;
title: string;
diff --git a/src/server/remove-object.ts b/src/server/remove-object.ts
index 74a600df..35904fff 100644
--- a/src/server/remove-object.ts
+++ b/src/server/remove-object.ts
@@ -1,6 +1,7 @@
import "server-only";
import { z } from "zod";
import { getModel } from "@/lib/catalog";
+import { characterLicenceLine, PERSON_REMOVER_LORA } from "@/lib/catalog/character-swap";
import {
chooseEraser,
paintedPoints,
@@ -25,7 +26,8 @@ import type { PlanStep } from "@/lib/catalog/shorts";
import type { Engine, GenParams, Generation, PixelPoint } from "@/lib/catalog/types";
import { createPipeline } from "./chains";
import { previewChained } from "./generations";
-import { isOffered } from "./model-access";
+import { ACCESS_PLACE } from "@/lib/model-access";
+import { isOffered, offeredLoras } from "./model-access";
import { decodePng } from "./png";
import { engineMode } from "./settings";
import { probeSource, ShortsError } from "./shorts";
@@ -167,7 +169,9 @@ async function planInput(body: RemovalBody, opts: { probe: boolean; preview?: bo
if (problem) throw new ShortsError(problem, 422);
let points: PixelPoint[] | undefined;
- if (body.mode === "type" && !eraser.everyone && !body.prompt?.trim()) throw new ShortsError("Say what to remove, e.g. “the coffee cup in her hand”");
+ if (body.mode === "type" && !eraser.everyone && !body.prompt?.trim()) throw new ShortsError(eraser.cleanFrame ? "Say who to remove, e.g. “the man in the grey shirt”" : "Say what to remove, e.g. “the coffee cup in her hand”");
+ // The Person Remover LoRA is what the H3 graph loads: switched off in Settings → Models & licences, it can't run.
+ if (eraser.cleanFrame && offeredLoras([PERSON_REMOVER_LORA]).dropped.length) throw new ShortsError(`The H3 Person Remover LoRA is switched off in ${ACCESS_PLACE} — turn it on, or pick Wan 2.1 VACE + SAM 3.1`, 422);
// Kling O3 edit takes 2500 characters, its template included: refused here, not after the cuts have run.
if ((body.prompt?.trim().length ?? 0) > REMOVE.maxPromptChars) throw new ShortsError(`Say what to remove in up to ${REMOVE.maxPromptChars} characters`, 422);
if (body.mode === "click") {
@@ -200,7 +204,14 @@ async function planInput(body: RemovalBody, opts: { probe: boolean; preview?: bo
notes.push(`${eraserName} works on ${eraser.window?.cap} frames at a time (${per.toFixed(1)} s of this clip): the clip runs as ${count} windows, joined with its own sound. Seams between windows aren't tested on a GPU yet`);
if (eraser.modes.includes("paint")) notes.push("SAM 3.1 hands what you painted on from window to window (each starts on the last frame of the one before), so the windows run one after another");
}
- notes.push(eraser.effects ? "VOID needs a 24–40 GB GPU (unverified). Its CogVideoX base is licensed for commercial use only after registering, up to 1 million visits a month" : "Wan 2.1 VACE 14B needs a 24 GB GPU · Apache-2.0 (SAM 3.1: Meta's SAM License)");
+ if (eraser.cleanFrame) {
+ notes.push(
+ "Qwen-Image-Edit first makes a clean copy of the part's first frame with the person gone; MiniMax H3 with Akatz Labs' Person Remover LoRA then rebuilds what was behind them, 22 frames at a time from it, and the clip's sound goes back on",
+ "People only — for an object, pick Wan 2.1 VACE + SAM 3.1",
+ "Needs the H3 Relay nodes on your ComfyUI (scripts/comfy/install-comfyui.sh with H3_RELAY=1) and 24 GB of VRAM with offloading (64–128 GB of RAM); the part runs at 24 fps",
+ characterLicenceLine("open", "fuobe-character-swap").replace("nodes GPL-3.0", "H3 Relay nodes GPL-3.0"),
+ );
+ } else notes.push(eraser.effects ? "VOID needs a 24–40 GB GPU (unverified). Its CogVideoX base is licensed for commercial use only after registering, up to 1 million visits a month" : "Wan 2.1 VACE 14B needs a 24 GB GPU · Apache-2.0 (SAM 3.1: Meta's SAM License)");
} else {
const max = pieceSeconds(eraser, source.fps);
const limit = eraser.window ? `up to ${eraser.window.cap} frames (${max.toFixed(1)} s of this clip)` : max < 5 ? "clips under 5 s" : `up to ${Math.floor(max)} s`;
diff --git a/tests/character-swap.test.ts b/tests/character-swap.test.ts
index 0e9b4950..6f92655a 100644
--- a/tests/character-swap.test.ts
+++ b/tests/character-swap.test.ts
@@ -277,6 +277,7 @@ describe("Character swap: licences are information", () => {
["h3_character_swap_v1.5.safetensors", "regions"],
["h3_character_swap_pro4500_1000.safetensors", "regions"],
[TURBO_LORA.file, "commercial"],
+ ["H3-Person-Remover-V1.safetensors", "regions"],
]);
});
diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.ts
index 60d5dc98..59165f39 100644
--- a/tests/comfy-library-4.test.ts
+++ b/tests/comfy-library-4.test.ts
@@ -82,9 +82,9 @@ describe("round-4 ComfyUI workflows", () => {
it("keeps the whole library validated, and every output role is a typed role", () => {
expect(manifest.workflows.length).toBeGreaterThanOrEqual(132);
expect(new Set(manifest.workflows.map((w) => w.id)).size).toBe(manifest.workflows.length);
- // Only the Character swap graphs wait on node packs this server doesn't have (h3_character_swap, H3 Relay): never
+ // Only the MiniMax H3 graphs wait on node packs this server doesn't have (h3_character_swap, H3 Relay): never
// installed here, so their /prompt check names a missing node (tests/comfy-character-swap.test.ts).
- expect(manifest.workflows.filter((w) => !w.validated).map((w) => w.id)).toEqual(["video-character-swap-h3", "video-character-swap-h3-relay"]);
+ expect(manifest.workflows.filter((w) => !w.validated).map((w) => w.id)).toEqual(["video-character-swap-h3", "video-character-swap-h3-relay", "video-person-remove-h3-relay"]);
for (const w of manifest.workflows) for (const o of w.outputs) if (o.role) expect(ROLES, `${w.id} ${o.role}`).toContain(o.role);
});
diff --git a/tests/model-access-listings.test.ts b/tests/model-access-listings.test.ts
index 17081828..a4e9cfac 100644
--- a/tests/model-access-listings.test.ts
+++ b/tests/model-access-listings.test.ts
@@ -94,9 +94,9 @@ describe("Models & licences in listings and picks", () => {
it("lists every model, LoRA and node pack with its licence, and flips switches through the settings API", async () => {
const list = (await (await settingsRoute.GET()).json()) as import("@/lib/model-access").AccessList;
expect(list.models.length).toBeGreaterThan(300);
- // The library's 114 LoRAs, the preset LoRA map's files that aren't library files, and the Character swap's three
- // (Akatz Labs' swap LoRA V1.5 and V1, lightx2v's H3 Turbo), each once.
- expect(list.loras.length).toBe(169);
+ // The library's 114 LoRAs, the preset LoRA map's files that aren't library files, and MiniMax H3's four (Akatz Labs'
+ // swap LoRA V1.5 and V1 and Person Remover V1, lightx2v's H3 Turbo), each once.
+ expect(list.loras.length).toBe(170);
expect(list.loras.find((l) => l.file === "h3_character_swap_v1.5.safetensors")).toMatchObject({ group: "adapter", base: "MiniMax H3", on: true, licence: { name: "MiniMax H3 Community License", class: "regions" } });
expect(list.packs.find((p) => p.name === "h3_character_swap")).toMatchObject({ licence: { name: "GPL-3.0" }, on: true });
expect(new Set(list.loras.map((l) => l.file)).size).toBe(list.loras.length);
diff --git a/tests/person-remove-h3.test.ts b/tests/person-remove-h3.test.ts
new file mode 100644
index 00000000..4c379a62
--- /dev/null
+++ b/tests/person-remove-h3.test.ts
@@ -0,0 +1,131 @@
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { afterAll, describe, expect, it } from "vitest";
+import { getModel, getPreset } from "@/lib/catalog";
+import { graphLoras, h3Canvas, H3_REMOVAL_WORKFLOW, PERSON_REMOVER_LORA } from "@/lib/catalog/character-swap";
+import { planGeneration } from "@/lib/catalog/plan";
+import { chooseEraser, cleanFramePrompt, erasersFor, getEraser, PERSON_REMOVAL_FPS, planRemoval, REMOVE, type RemovalPlanInput } from "@/lib/catalog/remove-object";
+import type { GenInput } from "@/lib/catalog/types";
+import type { ManifestWorkflow } from "@/lib/comfy";
+import { licenceInfo, nodePack } from "@/lib/licences";
+import type { MediaInfo } from "@/lib/media-probe";
+
+// Remove object's "Remove a person (H3)" (docs/research/openjutsu-6.md §4.4, §11.1 item 9): H3 Relay's Person Removal
+// graph with Akatz Labs' Person Remover LoRA, from a clean first frame, on a clip fitted to 24 fps on the 32 grid.
+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-person-remove-"));
+process.env.FUOBE_DATA_DIR = tmp;
+process.env.COMFYUI_URL = "http://comfy.test:8188";
+const { prepareWorkflow } = await import("@/server/providers/comfyui");
+afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));
+
+const manifest = JSON.parse(fs.readFileSync(path.join(__dirname, "../workflows/comfyui/manifest.json"), "utf8")) as { workflows: (ManifestWorkflow & { validationError?: string })[] };
+const entry = manifest.workflows.find((w) => w.id === H3_REMOVAL_WORKFLOW)!;
+const src = { url: "/api/files/uploads/clip.mp4", duration: 12, fps: 30, width: 1280, height: 720, hasAudio: true };
+const eraser = getEraser("oss-h3-person-remove")!;
+const input = (over: Partial<RemovalPlanInput> = {}): RemovalPlanInput => ({
+ engine: "open",
+ mode: "type",
+ eraser,
+ title: "Remove · the man in the grey shirt",
+ source: src,
+ range: { start: 2, end: 9 },
+ prompt: "Remove the man in the grey shirt",
+ ...over,
+});
+
+describe("H3 person removal: the eraser", () => {
+ it("is an open eraser you type at, a catalog model on the Person Removal graph; VACE stays the default", () => {
+ expect(erasersFor("open", "type").map((e) => e.id)).toContain("oss-h3-person-remove");
+ expect(eraser).toMatchObject({ engine: "open", modes: ["type"], cleanFrame: true, keepsSound: false });
+ const model = getModel("oss-h3-person-remove")!;
+ expect(model.routes).toEqual([expect.objectContaining({ op: "remove-object", provider: "comfyui", endpoint: H3_REMOVAL_WORKFLOW })]);
+ expect(chooseEraser({ engine: "open", mode: "type" })).toMatchObject({ eraser: { id: "oss-vace-remove" } });
+ expect(chooseEraser({ engine: "open", mode: "type", modelId: "oss-h3-person-remove" })).toMatchObject({ eraser: { id: "oss-h3-person-remove" } });
+ });
+});
+
+describe("H3 person removal: the plan", () => {
+ it("fits the part to 24 fps on the 32 grid, takes its first frame, cleans it, removes the person, puts the sound back", () => {
+ const p = planRemoval(input({ seed: 7 }));
+ expect(p.steps.map((s) => s.key)).toEqual(["fit", "frame", "clean", "erase0", "sound", "final"]);
+ const size = h3Canvas(1280, 720, "768p");
+ expect(size).toEqual({ width: 1344, height: 736 });
+ const step = (k: string) => p.steps.find((s) => s.key === k)!;
+ expect(step("fit").request).toMatchObject({ modelId: "oss-fit-clip", op: "trim", inputs: { video: src.url }, params: { startTime: 2, endTime: 9, fps: PERSON_REMOVAL_FPS, extra: size } });
+ expect(step("frame").request).toMatchObject({ modelId: "oss-extract-frame", op: "frame", params: { startTime: 0, extra: { frameIndex: 0 } } });
+ expect(step("frame").chain).toEqual([{ slot: "video" }]);
+ expect(step("clean").request).toMatchObject({ modelId: "oss-qwen-edit", op: "edit", params: { seed: 7 } });
+ expect(step("clean").request.prompt).toBe(cleanFramePrompt("Remove the man in the grey shirt"));
+ expect(step("clean").request.prompt).toMatch(/^Remove the man in the grey shirt from the picture completely/);
+ // The removal reads the fitted part and the clean frame; SAM 3.1 gets the person's words.
+ expect(step("erase0").request).toMatchObject({ modelId: "oss-h3-person-remove", op: "remove-object", prompt: "the man in the grey shirt", feature: REMOVE.stepFeature, params: { seed: 7 } });
+ expect(step("erase0").after).toEqual(["fit", "clean"]);
+ expect(step("erase0").chain).toEqual([{ slot: "video" }, { slot: "images", position: "first" }]);
+ // The graph's output is silent: the part's own sound goes back on.
+ expect(step("sound").request).toMatchObject({ modelId: "oss-trim", params: { startTime: 2, endTime: 9 } });
+ expect(step("final").request).toMatchObject({ modelId: "oss-mux", op: "mux", feature: REMOVE.feature });
+ expect(p.final).toBe("final");
+ expect(p.sound).toBe(true);
+ });
+
+ it("a silent clip: the removal is the result", () => {
+ const p = planRemoval(input({ source: { ...src, hasAudio: false } }));
+ expect(p.steps.map((s) => s.key)).toEqual(["fit", "frame", "clean", "erase0"]);
+ expect(p.steps.at(-1)!.request).toMatchObject({ feature: REMOVE.feature, title: "Remove · the man in the grey shirt" });
+ expect(p.final).toBe("erase0");
+ });
+
+ it("every step is a request the catalog accepts", () => {
+ for (const s of planRemoval(input()).steps) {
+ const chained: Record<string, unknown> = {};
+ for (const c of s.chain ?? []) chained[c.slot] = c.slot === "images" ? ["/api/files/x.png"] : "/api/files/x.mp4";
+ expect(() => planGeneration({ ...s.request, inputs: { ...s.request.inputs, ...chained } }, getModel, getPreset), s.key).not.toThrow();
+ }
+ });
+});
+
+describe("H3 person removal: the graph", () => {
+ const clip: MediaInfo = { container: "mp4", hasVideo: true, hasAudio: false, duration: 7, videoDuration: 7, width: 1344, height: 736, fps: 24, frames: 168 };
+ type Graph = Record<string, { class_type: string; inputs: Record<string, unknown> }>;
+ const prepare = (over: Partial<GenInput>) =>
+ prepareWorkflow(H3_REMOVAL_WORKFLOW, { video: "fit.mp4", images: ["clean.png"], ...over } as GenInput, { generationId: "g1", op: "remove-object", upload: async (_d, _t, name) => `up_${name}`, media: (n) => (n === "fit.mp4" ? clip : undefined) }).then(
+ (r) => r.workflow as Graph,
+ );
+ const at = (wf: Graph, node: string, input: string) => wf[node]?.inputs[input];
+
+ it("binds the fitted part, the clean first frame (fitted to the video's size), the person's words and the seed", async () => {
+ const wf = await prepare({ prompt: "the man in the grey shirt", seed: 11 });
+ expect(at(wf, "source", "file")).toBe("fit.mp4");
+ expect(at(wf, "anchor", "image")).toBe("clean.png");
+ expect(at(wf, "subject", "text")).toBe("the man in the grey shirt");
+ expect(at(wf, "plan", "seed")).toBe(11);
+ // The clean frame reaches the windows at the video's exact size.
+ expect(wf.anchor_fit).toMatchObject({ class_type: "ImageScale", inputs: { image: ["anchor", 0], width: ["dimensions", 0], height: ["dimensions", 1], crop: "center" } });
+ expect([at(wf, "window", "anchor"), at(wf, "review", "anchor")]).toEqual([
+ ["anchor_fit", 0],
+ ["anchor_fit", 0],
+ ]);
+ // Akatz's settings: the Person Remover LoRA at 1.0, 22-frame windows with 18 of history, 12 steps, mask grown 5 px.
+ expect([at(wf, "adapter", "lora_name"), at(wf, "adapter", "strength_model")]).toEqual(["H3-Person-Remover-V1.safetensors", 1]);
+ expect([at(wf, "plan", "window_frames"), at(wf, "plan", "history_frames"), at(wf, "schedule", "steps"), at(wf, "grow_mask", "expand")]).toEqual(["22", "18", 12, 5]);
+ expect(wf.save.class_type).toBe("SaveVideo");
+ await expect(prepare({ prompt: "" })).rejects.toThrow(/Say what to remove/);
+ });
+
+ it("downloads the Person Remover LoRA before it runs", () => {
+ expect(graphLoras(H3_REMOVAL_WORKFLOW, {})).toEqual([PERSON_REMOVER_LORA]);
+ expect(PERSON_REMOVER_LORA.url).toBe("https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/fe136b3dc93aea993b9f194d48ea9859fdc2de14/H3-Person-Remover-V1.safetensors");
+ });
+
+ it("is in the library with its pinned files, its pack and its licence; not validated here (the pack isn't installed)", () => {
+ expect(entry).toMatchObject({ capability: "remove-object", validated: false, vramGb: 24 });
+ expect(entry.validationError).toMatch(/missing_node_type/);
+ expect(entry.customNodes).toEqual([{ name: "h3-relay", repo: "https://github.com/akatz-ai/h3-relay/tree/e2a7665b6eb8ea37a88c0de2c9c6b69a8f7c9220" }]);
+ expect(nodePack("h3-relay")?.licence.name).toBe("GPL-3.0");
+ const lora = entry.models.find((m) => m.file === "H3-Person-Remover-V1.safetensors")!;
+ expect(lora).toMatchObject({ folder: "loras", url: PERSON_REMOVER_LORA.url, sizeGb: 0.16 });
+ expect(entry.models.map((m) => m.file)).toEqual(expect.arrayContaining(["minimax_h3_ref2va_pruned_int8_convrot.safetensors", "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors", "sam3.1_multiplex_fp16.safetensors"]));
+ expect(licenceInfo(entry.license!)).toMatchObject({ name: "MiniMax H3 Community License", class: "regions", notices: ["MiniMax H3"] });
+ });
+});
diff --git a/tests/remove-object-api.test.ts b/tests/remove-object-api.test.ts
index bcabe386..a03e3262 100644
--- a/tests/remove-object-api.test.ts
+++ b/tests/remove-object-api.test.ts
@@ -155,6 +155,24 @@ describe("Remove object: estimates", () => {
expect(effects.notes.join(" ")).toMatch(/CogVideoX/);
});
+ it("open engine, H3 person removal: the clean first frame, H3 Relay and the GPU said; the LoRA switched off refuses", async () => {
+ const h3 = (over: Record<string, unknown> = {}) => estimateRoute.POST(json(body({ engine: "open", modelId: "oss-h3-person-remove", prompt: "the skater", source: { url: clip, duration: 12, fps: 16, width: 72, height: 128, hasAudio: true }, ...over })));
+ const e = await (await h3()).json();
+ expect(e).toMatchObject({ modelId: "oss-h3-person-remove", pieces: 1, costUsd: 0 });
+ const notes = e.notes.join(" ");
+ expect(notes).toMatch(/clean copy of the part's first frame with the person gone/);
+ expect(notes).toMatch(/H3_RELAY=1/);
+ expect(notes).toMatch(/People only/);
+ expect(notes).toMatch(/MiniMax H3 Community License — not licensed in the US, the EU, the UK and South Korea/);
+ expect((await (await h3({ prompt: " " })).json()).error).toMatch(/Say who to remove/);
+ const { changeAccess } = await import("@/server/model-access");
+ changeAccess([{ kind: "lora", id: "H3-Person-Remover-V1.safetensors", on: false }]);
+ const off = await h3();
+ expect(off.status).toBe(422);
+ expect((await off.json()).error).toMatch(/Person Remover LoRA is switched off in Settings → Models & licences/);
+ changeAccess([{ kind: "reset" }]);
+ });
+
it("says what's missing", async () => {
const click = await estimateRoute.POST(json(body({ engine: "open", mode: "click", source: { url: clip, duration: 12, fps: 16 } })));
expect(click.status).toBe(422);
@@ -262,6 +280,23 @@ describe("Remove object: runs", () => {
expect(final.request.params).toMatchObject({ startTime: 0, endTime: 2.8125 });
});
+ it("open engine, H3 person removal: fit, first frame, clean frame, H3 removal, then the sound put back", async () => {
+ const res = await createRoute.POST(json(body({ engine: "open", modelId: "oss-h3-person-remove", prompt: "the skater", range: { start: 1, end: 7 } })));
+ const out = (await res.json()) as { final: Generation; items: Generation[] };
+ expect(res.status).toBe(201);
+ const rows = batchOf(out.final.id);
+ expect(rows.map((r) => r.model_id)).toEqual(expect.arrayContaining(["oss-fit-clip", "oss-extract-frame", "oss-qwen-edit", "oss-h3-person-remove", "oss-trim", "oss-mux"]));
+ expect(out.final).toMatchObject({ modelId: "oss-mux", feature: REMOVE.feature });
+ expect((await settle(out.final.id)).status).toBe("succeeded");
+ const removal = gens.getGeneration(rows.find((r) => r.model_id === "oss-h3-person-remove")!.id)!;
+ const clean = gens.getGeneration(rows.find((r) => r.model_id === "oss-qwen-edit")!.id)!;
+ const fit = gens.getGeneration(rows.find((r) => r.model_id === "oss-fit-clip")!.id)!;
+ // The removal read the fitted part and the clean first frame the steps before it made.
+ expect(removal.request.inputs?.video).toBe(fit.outputs[0].url);
+ expect(removal.request.inputs?.images).toEqual([clean.outputs[0].url]);
+ expect(removal.request.prompt).toBe("the skater");
+ });
+
it("mask preview: SAM 3.1 on the first 2 s (cloud), the SAM 3 matte (open)", async () => {
const cloud = (await (await previewRoute.POST(json(body({ requestId: "preview-cloud-1" })))).json()) as Generation;
expect(cloud).toMatchObject({ feature: REMOVE.previewFeature, modelId: "sam-3-1-video-mask", op: "bg-remove-video", prompt: "the skateboard" });
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 6b036be7..59264e32 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "generatedAt": "2026-10-27T09:15:03.709Z",
+ "generatedAt": "2026-10-27T09:34:34.799Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",
@@ -13485,6 +13485,149 @@
"notes": "Akatz Labs' newer route for the same swap (h3-relay @ e2a7665b, 2.0.1; example_workflows/toolkit/H3-Character-Swap.api.json, which Akatz's tool ships at 5f83374). Changed: a Trim Video node picks the part, the mask preview is removed, the adapter loads the V1.5 file by its Hugging Face name. Bindings as video-character-swap-h3 without an anchor frame or a masked-generation switch; lora \"none\" deletes the adapter and feeds its users from the Turbo LoRA. H3 Relay registers HTTP routes and an in-memory H3 layout compatibility layer on import: run it on the isolated worker if you prefer (install-comfyui.sh installs it with H3_RELAY=1). Needs FFmpeg and FFprobe on PATH. Not validated here: the pack is not installed on this server.",
"validationError": "HTTP 400: missing_node_type: Node 'H3RelayAppendWindow' not found. The custom node may not be installed. (Node ID '#append')"
},
+ {
+ "id": "video-person-remove-h3-relay",
+ "title": "Remove a person on H3 Relay 2.0: SAM 3.1 marks them green, MiniMax H3 + the Person Remover LoRA rebuilds the background from a clean first frame (h3-relay pack)",
+ "capability": "remove-object",
+ "file": "video-person-remove-h3-relay.json",
+ "source": "hand-built (scripts/comfy/hand-built/video-person-remove-h3-relay.json)",
+ "bindings": {
+ "video": [
+ {
+ "node": "source",
+ "input": "file"
+ }
+ ],
+ "image": [
+ {
+ "node": "anchor",
+ "input": "image"
+ }
+ ],
+ "maskPrompt": [
+ {
+ "node": "subject",
+ "input": "text"
+ }
+ ],
+ "maskGrow": [
+ {
+ "node": "grow_mask",
+ "input": "expand"
+ }
+ ],
+ "seed": [
+ {
+ "node": "plan",
+ "input": "seed"
+ }
+ ],
+ "steps": [
+ {
+ "node": "schedule",
+ "input": "steps"
+ }
+ ],
+ "windowFrames": [
+ {
+ "node": "plan",
+ "input": "window_frames"
+ }
+ ],
+ "historyFrames": [
+ {
+ "node": "plan",
+ "input": "history_frames"
+ }
+ ],
+ "lora": [
+ {
+ "node": "adapter",
+ "input": "lora_name"
+ }
+ ],
+ "loraStrength": [
+ {
+ "node": "adapter",
+ "input": "strength_model"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "save",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "save",
+ "kind": "video"
+ }
+ ],
+ "defaults": {
+ "steps": 12,
+ "loraStrength": 1,
+ "maskGrow": 5,
+ "maskPrompt": "person",
+ "windowFrames": "22",
+ "historyFrames": "18",
+ "lora": "H3-Person-Remover-V1.safetensors"
+ },
+ "limits": {
+ "maxDurationSec": 60,
+ "maxFrames": 3592
+ },
+ "models": [
+ {
+ "file": "H3-Person-Remover-V1.safetensors",
+ "folder": "loras",
+ "url": "https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/fe136b3dc93aea993b9f194d48ea9859fdc2de14/H3-Person-Remover-V1.safetensors",
+ "sizeGb": 0.16
+ },
+ {
+ "file": "minimax_h3_audio_vae_fp32.safetensors",
+ "folder": "vae",
+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_audio_vae_fp32.safetensors",
+ "sizeGb": 0.61
+ },
+ {
+ "file": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
+ "folder": "diffusion_models",
+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors",
+ "sizeGb": 20.97
+ },
+ {
+ "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
+ },
+ {
+ "file": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
+ "folder": "text_encoders",
+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
+ "sizeGb": 15.69
+ },
+ {
+ "file": "minimax_h3_video_vae_fp16.safetensors",
+ "folder": "vae",
+ "url": "https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/1c41cfca8ebba91d0af792a05c5761fb2c3a7975/vae/minimax_h3_video_vae_fp16.safetensors",
+ "sizeGb": 5.21
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "h3-relay",
+ "repo": "https://github.com/akatz-ai/h3-relay/tree/e2a7665b6eb8ea37a88c0de2c9c6b69a8f7c9220"
+ }
+ ],
+ "vramGb": 24,
+ "license": "MiniMax H3 Community License (H3 Ref2VA, its video and audio VAEs, the packaged Qwen3-VL text encoder, Akatz Labs' Person Remover V1 LoRA): territory EXCLUDES the US, the EU, the UK and South Korea; commercial use above US$20M yearly revenue needs MiniMax's written authorization; show \"MiniMax H3\" on the product's interface; no outputs used to improve other AI models · Qwen3-VL-32B base Apache-2.0 · SAM 3.1 under Meta's SAM License (commercial use allowed under its terms) · H3 Relay nodes GPL-3.0 (Sendy Software LLC and contributors; vendored Context Loop and Spectrum GPL-3.0); the graph is H3 Relay's example workflow (GPL-3.0 repository)",
+ "validated": false,
+ "notes": "H3 Relay's toolkit H3-Person-Removal.api.json at e2a7665b (Akatz Labs' tool ships the same file). Changed: the clean first frame goes through an ImageScale (centre crop) to the video's exact size, so an edit that came back a little larger or smaller still fits; SAM 3.1's words default to \"person\"; the save prefix. video = the part already fitted to 24 fps on the 32-pixel grid (oss-fit-clip), image = the clean first frame (the app makes it with Qwen-Image-Edit from the part's first frame). 22-frame windows with 18 of history, 12 steps, er_sde / simple, CFG 1, LoRA 1.0, mask grown 5 px, seed 904234 by default (Akatz's settings). The output is silent: the app puts the clip's sound back. Needs the h3-relay pack (H3_RELAY=1) and FFmpeg. Not validated here: the pack is not installed on this server.",
+ "validationError": "HTTP 400: missing_node_type: Node 'H3RelayAppendWindow' not found. The custom node may not be installed. (Node ID '#append')"
+ },
{
"id": "kenburns-still",
"title": "Ken Burns pan and zoom over a still for N seconds at F fps (core loops, chunk-encoded, no model)",
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index 1a43467a..5bd8b3cc 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -5979,6 +5979,7 @@
"H3RelayFinishWindows": null,
"H3RelayPrepareSource": null,
"H3RelayRecoverMasks": null,
+ "H3RelayReviewWindows": null,
"H3RelaySamplingMemory": null,
"H3RelaySelectMask": null,
"H3RelayTextMemory": null,
@@ -18208,6 +18209,61 @@
"has_intermediate_output": false,
"search_aliases": []
},
+ "ThresholdMask": {
+ "input": {
+ "required": {
+ "mask": [
+ "MASK",
+ {}
+ ],
+ "value": [
+ "FLOAT",
+ {
+ "default": 0.5,
+ "min": 0,
+ "max": 1,
+ "step": 0.01
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "mask",
+ "value"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "MASK"
+ ],
+ "output_is_list": [
+ false
+ ],
+ "output_name": [
+ "MASK"
+ ],
+ "output_tooltips": [
+ null
+ ],
+ "output_matchtypes": null,
+ "name": "ThresholdMask",
+ "display_name": "Threshold Mask",
+ "description": "",
+ "python_module": "comfy_extras.nodes_mask",
+ "category": "image/mask",
+ "output_node": false,
+ "deprecated": false,
+ "experimental": false,
+ "dev_only": false,
+ "api_node": false,
+ "price_badge": null,
+ "search_aliases": [
+ "binary mask"
+ ],
+ "essentials_category": null,
+ "has_intermediate_output": false
+ },
"Trellis2Conditioning": {
"input": {
"required": {
diff --git a/workflows/comfyui/video-person-remove-h3-relay.json b/workflows/comfyui/video-person-remove-h3-relay.json
new file mode 100644
index 00000000..804e158b
--- /dev/null
+++ b/workflows/comfyui/video-person-remove-h3-relay.json
@@ -0,0 +1,764 @@
+{
+ "adapter": {
+ "class_type": "LoraLoaderModelOnly",
+ "inputs": {
+ "model": [
+ "attention",
+ 0
+ ],
+ "lora_name": "H3-Person-Remover-V1.safetensors",
+ "strength_model": 1
+ },
+ "_meta": {
+ "title": "LoraLoaderModelOnly"
+ }
+ },
+ "anchor": {
+ "class_type": "LoadImage",
+ "inputs": {
+ "image": "clean-first-frame.png"
+ },
+ "_meta": {
+ "title": "Clean first frame (made by the app)"
+ }
+ },
+ "anchor_fit": {
+ "class_type": "ImageScale",
+ "inputs": {
+ "upscale_method": "lanczos",
+ "width": [
+ "dimensions",
+ 0
+ ],
+ "height": [
+ "dimensions",
+ 1
+ ],
+ "crop": "center",
+ "image": [
+ "anchor",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Clean first frame at the video's exact size"
+ }
+ },
+ "append": {
+ "class_type": "H3RelayAppendWindow",
+ "inputs": {
+ "frames": [
+ "decode",
+ 0
+ ],
+ "window": [
+ "window",
+ 12
+ ],
+ "previous": [
+ "start",
+ 4
+ ],
+ "audio": [
+ "decode_audio",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "H3RelayAppendWindow"
+ }
+ },
+ "attention": {
+ "class_type": "ModelAttentionBackend",
+ "inputs": {
+ "model": [
+ "shift",
+ 0
+ ],
+ "attention": "comfy kitchen attention"
+ },
+ "_meta": {
+ "title": "ModelAttentionBackend"
+ }
+ },
+ "audio_vae": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "minimax_h3_audio_vae_fp32.safetensors"
+ },
+ "_meta": {
+ "title": "VAELoader"
+ }
+ },
+ "binary_mask": {
+ "class_type": "ThresholdMask",
+ "inputs": {
+ "mask": [
+ "mask",
+ 0
+ ],
+ "value": 0.5
+ },
+ "_meta": {
+ "title": "ThresholdMask"
+ }
+ },
+ "components": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "source",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "GetVideoComponents"
+ }
+ },
+ "decode": {
+ "class_type": "VAEDecode",
+ "inputs": {
+ "samples": [
+ "separate",
+ 0
+ ],
+ "vae": [
+ "video_vae",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAEDecode"
+ }
+ },
+ "decode_audio": {
+ "class_type": "VAEDecodeAudio",
+ "inputs": {
+ "samples": [
+ "separate",
+ 1
+ ],
+ "vae": [
+ "audio_vae",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "VAEDecodeAudio"
+ }
+ },
+ "detect": {
+ "class_type": "SAM3_Detect",
+ "inputs": {
+ "model": [
+ "sam",
+ 0
+ ],
+ "image": [
+ "first_frame",
+ 0
+ ],
+ "conditioning": [
+ "subject",
+ 0
+ ],
+ "threshold": 0.4,
+ "refine_iterations": 2,
+ "individual_masks": false
+ },
+ "_meta": {
+ "title": "SAM3_Detect"
+ }
+ },
+ "dimensions": {
+ "class_type": "GetImageSize",
+ "inputs": {
+ "image": [
+ "components",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "GetImageSize"
+ }
+ },
+ "end": {
+ "class_type": "EndLoop",
+ "inputs": {
+ "output_value": [
+ "append",
+ 0
+ ],
+ "next_iteration_value": [
+ "append",
+ 0
+ ],
+ "accumulate": false
+ },
+ "_meta": {
+ "title": "EndLoop"
+ }
+ },
+ "finish": {
+ "class_type": "H3RelayFinishWindows",
+ "inputs": {
+ "state": [
+ "end",
+ 0
+ ],
+ "audio_mode": "none"
+ },
+ "_meta": {
+ "title": "H3RelayFinishWindows"
+ }
+ },
+ "first_frame": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "components",
+ 0
+ ],
+ "batch_index": 0,
+ "length": 1
+ },
+ "_meta": {
+ "title": "ImageFromBatch"
+ }
+ },
+ "green": {
+ "class_type": "EmptyImage",
+ "inputs": {
+ "width": [
+ "dimensions",
+ 0
+ ],
+ "height": [
+ "dimensions",
+ 1
+ ],
+ "batch_size": 1,
+ "color": 65280
+ },
+ "_meta": {
+ "title": "EmptyImage"
+ }
+ },
+ "green_guide": {
+ "class_type": "ImageCompositeMasked",
+ "inputs": {
+ "destination": [
+ "components",
+ 0
+ ],
+ "source": [
+ "green",
+ 0
+ ],
+ "mask": [
+ "grow_mask",
+ 0
+ ],
+ "x": 0,
+ "y": 0,
+ "resize_source": false
+ },
+ "_meta": {
+ "title": "ImageCompositeMasked"
+ }
+ },
+ "grow_mask": {
+ "class_type": "GrowMask",
+ "inputs": {
+ "mask": [
+ "binary_mask",
+ 0
+ ],
+ "expand": 5,
+ "tapered_corners": false
+ },
+ "_meta": {
+ "title": "GrowMask"
+ }
+ },
+ "guide": {
+ "class_type": "MiniMaxH3AddGuide",
+ "inputs": {
+ "positive": [
+ "history",
+ 0
+ ],
+ "latent": [
+ "history",
+ 1
+ ],
+ "frame_idx": 0,
+ "vae": [
+ "video_vae",
+ 0
+ ],
+ "image": [
+ "window",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Native target guide"
+ }
+ },
+ "guider": {
+ "class_type": "CFGGuider",
+ "inputs": {
+ "model": [
+ "sampling_memory",
+ 0
+ ],
+ "positive": [
+ "guide",
+ 0
+ ],
+ "negative": [
+ "guide",
+ 0
+ ],
+ "cfg": 1
+ },
+ "_meta": {
+ "title": "CFGGuider"
+ }
+ },
+ "history": {
+ "class_type": "H3RelayApplyHistory",
+ "inputs": {
+ "positive": [
+ "reference_conditioning",
+ 0
+ ],
+ "latent": [
+ "reference_conditioning",
+ 1
+ ],
+ "vae": [
+ "video_vae",
+ 0
+ ],
+ "audio_vae": [
+ "audio_vae",
+ 0
+ ],
+ "frames": [
+ "window",
+ 3
+ ],
+ "history_frames": [
+ "window",
+ 7
+ ],
+ "first_frame_guide": false,
+ "target_audio_guide": false,
+ "audio": [
+ "window",
+ 4
+ ]
+ },
+ "_meta": {
+ "title": "H3RelayApplyHistory"
+ }
+ },
+ "mask": {
+ "class_type": "SAM3_TrackToMask",
+ "inputs": {
+ "track_data": [
+ "track",
+ 0
+ ],
+ "object_indices": ""
+ },
+ "_meta": {
+ "title": "SAM3_TrackToMask"
+ }
+ },
+ "model": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "UNETLoader"
+ }
+ },
+ "noise": {
+ "class_type": "RandomNoise",
+ "inputs": {
+ "noise_seed": [
+ "window",
+ 10
+ ]
+ },
+ "_meta": {
+ "title": "RandomNoise"
+ }
+ },
+ "plan": {
+ "class_type": "H3RelayWindowPlan",
+ "inputs": {
+ "source_frames": [
+ "dimensions",
+ 2
+ ],
+ "window_frames": "22",
+ "history_frames": "18",
+ "seed": 904234,
+ "schedule": "removal_v1",
+ "seed_mode": "increment",
+ "seed_overrides": "{}"
+ },
+ "_meta": {
+ "title": "Plan source-aligned windows"
+ }
+ },
+ "reference_conditioning": {
+ "class_type": "MiniMaxH3ReferenceToVideo",
+ "inputs": {
+ "clip": [
+ "text_memory",
+ 0
+ ],
+ "prompt": "Remove the green-masked person and reconstruct the background. Preserve the rest of the video, including its camera motion and frame timing.",
+ "width": [
+ "dimensions",
+ 0
+ ],
+ "height": [
+ "dimensions",
+ 1
+ ],
+ "length": [
+ "window",
+ 8
+ ],
+ "ref_image_size": "match",
+ "ref_videos.ref_video_0": [
+ "window",
+ 5
+ ],
+ "ref_images.ref_image_0": [
+ "window",
+ 11
+ ]
+ },
+ "_meta": {
+ "title": "Native H3 reference conditioning"
+ }
+ },
+ "review": {
+ "class_type": "H3RelayReviewWindows",
+ "inputs": {
+ "windows": [
+ "plan",
+ 0
+ ],
+ "source": [
+ "green_guide",
+ 0
+ ],
+ "anchor": [
+ "anchor_fit",
+ 0
+ ],
+ "window_controls": "{}"
+ },
+ "_meta": {
+ "title": "H3RelayReviewWindows"
+ }
+ },
+ "sam": {
+ "class_type": "CheckpointLoaderSimple",
+ "inputs": {
+ "ckpt_name": "sam3.1_multiplex_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "CheckpointLoaderSimple"
+ }
+ },
+ "sample": {
+ "class_type": "SamplerCustomAdvanced",
+ "inputs": {
+ "noise": [
+ "noise",
+ 0
+ ],
+ "guider": [
+ "guider",
+ 0
+ ],
+ "sampler": [
+ "sampler",
+ 0
+ ],
+ "sigmas": [
+ "schedule",
+ 0
+ ],
+ "latent_image": [
+ "history",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "SamplerCustomAdvanced"
+ }
+ },
+ "sampler": {
+ "class_type": "KSamplerSelect",
+ "inputs": {
+ "sampler_name": "er_sde"
+ },
+ "_meta": {
+ "title": "KSamplerSelect"
+ }
+ },
+ "sampling_memory": {
+ "class_type": "H3RelaySamplingMemory",
+ "inputs": {
+ "model": [
+ "adapter",
+ 0
+ ],
+ "latent": [
+ "history",
+ 1
+ ],
+ "conditioning": [
+ "guide",
+ 0
+ ],
+ "activation_memory_gib": 4
+ },
+ "_meta": {
+ "title": "H3RelaySamplingMemory"
+ }
+ },
+ "save": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "video",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-person-remove-h3-relay",
+ "format": "mp4",
+ "format.codec": "h264",
+ "format.codec.encoding": "re-encode",
+ "format.codec.encoding.crf": 16
+ },
+ "_meta": {
+ "title": "SaveVideo"
+ }
+ },
+ "schedule": {
+ "class_type": "BasicScheduler",
+ "inputs": {
+ "model": [
+ "adapter",
+ 0
+ ],
+ "scheduler": "simple",
+ "steps": 12,
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "BasicScheduler"
+ }
+ },
+ "separate": {
+ "class_type": "LTXVSeparateAVLatent",
+ "inputs": {
+ "av_latent": [
+ "sample",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "LTXVSeparateAVLatent"
+ }
+ },
+ "shift": {
+ "class_type": "MiniMaxH3SigmaShift",
+ "inputs": {
+ "model": [
+ "model",
+ 0
+ ],
+ "shift_video": 12,
+ "shift_audio": 3
+ },
+ "_meta": {
+ "title": "MiniMaxH3SigmaShift"
+ }
+ },
+ "source": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "source.mp4"
+ },
+ "_meta": {
+ "title": "Source video (24 fps, sides on the 32 grid)"
+ }
+ },
+ "start": {
+ "class_type": "StartLoop",
+ "inputs": {
+ "mode": "simple",
+ "mode.num_iterations": [
+ "review",
+ 2
+ ],
+ "cache_iterations": false,
+ "initial_iteration_value": [
+ "review",
+ 1
+ ]
+ },
+ "_meta": {
+ "title": "Native loop · one H3 window"
+ }
+ },
+ "subject": {
+ "class_type": "CLIPTextEncode",
+ "inputs": {
+ "clip": [
+ "sam",
+ 1
+ ],
+ "text": "person"
+ },
+ "_meta": {
+ "title": "Who to remove (SAM 3.1 words)"
+ }
+ },
+ "text": {
+ "class_type": "CLIPLoader",
+ "inputs": {
+ "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors",
+ "type": "minimax",
+ "device": "default"
+ },
+ "_meta": {
+ "title": "CLIPLoader"
+ }
+ },
+ "text_device": {
+ "class_type": "SelectCLIPDevice",
+ "inputs": {
+ "clip": [
+ "text",
+ 0
+ ],
+ "device": "gpu:0"
+ },
+ "_meta": {
+ "title": "SelectCLIPDevice"
+ }
+ },
+ "text_memory": {
+ "class_type": "H3RelayTextMemory",
+ "inputs": {
+ "clip": [
+ "text_device",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "H3RelayTextMemory"
+ }
+ },
+ "track": {
+ "class_type": "SAM3_VideoTrack",
+ "inputs": {
+ "model": [
+ "sam",
+ 0
+ ],
+ "images": [
+ "components",
+ 0
+ ],
+ "initial_mask": [
+ "detect",
+ 0
+ ],
+ "conditioning": [
+ "subject",
+ 0
+ ],
+ "detection_threshold": 0.5,
+ "max_objects": 1,
+ "detect_interval": 12
+ },
+ "_meta": {
+ "title": "SAM3_VideoTrack"
+ }
+ },
+ "video": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "finish",
+ 0
+ ],
+ "fps": [
+ "finish",
+ 2
+ ]
+ },
+ "_meta": {
+ "title": "CreateVideo"
+ }
+ },
+ "video_vae": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "minimax_h3_video_vae_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "VAELoader"
+ }
+ },
+ "window": {
+ "class_type": "H3RelayWindowInputs",
+ "inputs": {
+ "source": [
+ "review",
+ 4
+ ],
+ "window": [
+ "review",
+ 3
+ ],
+ "iteration_index": [
+ "start",
+ 0
+ ],
+ "previous": [
+ "start",
+ 4
+ ],
+ "reference_history": false,
+ "fps": [
+ "components",
+ 2
+ ],
+ "resize_anchor": false,
+ "history_audio_mode": "generated",
+ "anchor": [
+ "anchor_fit",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "H3RelayWindowInputs"
+ }
+ }
+}