MiniMax-H3-Person-Remover-LoRA / examples /Person-Remover-Window-Reroll-V1.json
akatz-ai's picture
Publish Person Remover V1 LoRA trained for 2000 steps
bbc23bf verified
Raw History Blame Contribute Delete
51.9 kB
{ "id": "6eacff7a-17e7-444f-8557-19d124c465f7", "revision": 0, "last_node_id": 28, "last_link_id": 31, "nodes": [ { "id": 1, "type": "UNETLoader", "pos": [ 1428.2358314377984, 60.945152639708915 ], "size": [ 350, 120 ], "flags": {}, "order": 0, "mode": 0, "inputs": [], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "MODEL", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "slot_index": null, "links": [ 1 ] } ], "properties": { "Node name for S&R": "UNETLoader" }, "widgets_values": [ "minimax_h3_ref2va_pruned_int8_convrot.safetensors", "default" ], "widgets_values_named": { "unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors", "weight_dtype": "default" } }, { "id": 2, "type": "MiniMaxH3SigmaShift", "pos": [ 1858.2358314377984, 60.945152639708915 ], "size": [ 350, 120 ], "flags": {}, "order": 11, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "model", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "link": 1 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "MODEL", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "slot_index": null, "links": [ 2 ] } ], "properties": { "Node name for S&R": "MiniMaxH3SigmaShift" }, "widgets_values": [ 12, 3 ], "widgets_values_named": { "shift_video": 12, "shift_audio": 3 } }, { "id": 3, "type": "ModelAttentionBackend", "pos": [ 1858.2358314377984, 250.94515263970916 ], "size": [ 350, 120 ], "flags": {}, "order": 15, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "model", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "link": 2 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "model", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "slot_index": null, "links": [ 4 ] } ], "properties": { "Node name for S&R": "ModelAttentionBackend" }, "widgets_values": [ "comfy kitchen attention" ], "widgets_values_named": { "attention": "comfy kitchen attention" } }, { "id": 4, "type": "CLIPLoader", "pos": [ 1428.2358314377984, 280.9451526397087 ], "size": [ 350, 120 ], "flags": {}, "order": 1, "mode": 0, "inputs": [], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "CLIP", "nameLocked": null, "removable": null, "type": "CLIP", "pos": null, "slot_index": null, "links": [ 30 ] } ], "properties": { "Node name for S&R": "CLIPLoader" }, "widgets_values": [ "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors", "minimax", "default" ], "widgets_values_named": { "clip_name": "qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors", "type": "minimax", "device": "default" } }, { "id": 5, "type": "VAELoader", "pos": [ 1428.2358314377984, 1010.9451526397087 ], "size": [ 350, 120 ], "flags": {}, "order": 2, "mode": 0, "inputs": [], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "VAE", "nameLocked": null, "removable": null, "type": "VAE", "pos": null, "slot_index": null, "links": [ 19 ] } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "minimax_h3_video_vae_fp16.safetensors" ], "widgets_values_named": { "vae_name": "minimax_h3_video_vae_fp16.safetensors" } }, { "id": 6, "type": "VAELoader", "pos": [ 1428.2358314377984, 1180.9451526397083 ], "size": [ 350, 120 ], "flags": {}, "order": 3, "mode": 0, "inputs": [], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "VAE", "nameLocked": null, "removable": null, "type": "VAE", "pos": null, "slot_index": null, "links": [ 20 ] } ], "properties": { "Node name for S&R": "VAELoader" }, "widgets_values": [ "minimax_h3_audio_vae_fp32.safetensors" ], "widgets_values_named": { "vae_name": "minimax_h3_audio_vae_fp32.safetensors" } }, { "id": 7, "type": "LoadVideo", "pos": [ 0, 40.50132255457223 ], "size": [ 350, 249 ], "flags": {}, "order": 4, "mode": 0, "inputs": [], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "VIDEO", "nameLocked": null, "removable": null, "type": "VIDEO", "pos": null, "slot_index": null, "links": [ 3 ] } ], "properties": { "Node name for S&R": "LoadVideo" }, "widgets_values": [ "source.mp4", "image" ], "widgets_values_named": { "file": "source.mp4", "upload": "image" }, "color": "#254c38", "bgcolor": "#172e24" }, { "id": 8, "type": "GetVideoComponents", "pos": [ 6.7502204257620395, 367.1262123416913 ], "size": [ 350, 120 ], "flags": {}, "order": 13, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "video", "nameLocked": null, "removable": null, "type": "VIDEO", "pos": null, "link": 3 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "images", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "slot_index": null, "links": [ 5, 9, 14 ] }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "audio", "nameLocked": null, "removable": null, "type": "AUDIO", "pos": null, "slot_index": null, "links": null }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "fps", "nameLocked": null, "removable": null, "type": "FLOAT", "pos": null, "slot_index": null, "links": [ 23, 25, 28 ] }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "bit_depth", "nameLocked": null, "removable": null, "type": "COMBO", "pos": null, "slot_index": null, "links": null }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "color_space", "nameLocked": null, "removable": null, "type": "COMBO", "pos": null, "slot_index": null, "links": null } ], "properties": { "Node name for S&R": "GetVideoComponents" } }, { "id": 9, "type": "LoraLoaderModelOnly", "pos": [ 1858.2358314377984, 440.9451526397086 ], "size": [ 350, 120 ], "flags": {}, "order": 17, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "model", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "link": 4 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "MODEL", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "slot_index": null, "links": [ 17 ] } ], "properties": { "Node name for S&R": "LoraLoaderModelOnly" }, "widgets_values": [ "H3-Person-Remover-V1.safetensors", 1 ], "widgets_values_named": { "lora_name": "H3-Person-Remover-V1.safetensors", "strength_model": 1 } }, { "id": 10, "type": "LoadImage", "pos": [ 0, 550 ], "size": [ 350, 314 ], "flags": {}, "order": 5, "mode": 0, "inputs": [], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "IMAGE", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "slot_index": null, "links": [ 22 ] }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "MASK", "nameLocked": null, "removable": null, "type": "MASK", "pos": null, "slot_index": null, "links": null } ], "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "clean-first-frame.png", "image" ], "widgets_values_named": { "image": "clean-first-frame.png", "upload": "image" }, "color": "#254c38", "bgcolor": "#172e24" }, { "id": 11, "type": "CheckpointLoaderSimple", "pos": [ 929.948477955631, 57.174367006204534 ], "size": [ 350, 120 ], "flags": {}, "order": 6, "mode": 0, "inputs": [], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "MODEL", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "slot_index": null, "links": [ 6, 10 ] }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "CLIP", "nameLocked": null, "removable": null, "type": "CLIP", "pos": null, "slot_index": null, "links": [ 16 ] }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "VAE", "nameLocked": null, "removable": null, "type": "VAE", "pos": null, "slot_index": null, "links": null } ], "properties": { "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ "sam3.1_multiplex_fp16.safetensors" ], "widgets_values_named": { "ckpt_name": "sam3.1_multiplex_fp16.safetensors" } }, { "id": 12, "type": "ImageFromBatch", "pos": [ 412.1247428366109, 369.62400808407074 ], "size": [ 350, 120 ], "flags": {}, "order": 16, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "image", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "link": 5 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "IMAGE", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "slot_index": null, "links": [ 7 ] } ], "properties": { "Node name for S&R": "ImageFromBatch" }, "widgets_values": [ 0, 1 ], "widgets_values_named": { "batch_index": 0, "length": 1 } }, { "id": 13, "type": "SAM3_Detect", "pos": [ 929.948477955631, 277.17436700620453 ], "size": [ 350, 206 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "model", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "link": 6 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "image", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "link": 7 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "conditioning", "nameLocked": null, "removable": null, "shape": 7, "type": "CONDITIONING", "pos": null, "link": 8 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "bboxes", "nameLocked": null, "removable": null, "shape": 7, "type": "BOUNDING_BOX", "pos": null, "link": null }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "positive_coords", "nameLocked": null, "removable": null, "shape": 7, "type": "STRING", "pos": null, "link": null }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "negative_coords", "nameLocked": null, "removable": null, "shape": 7, "type": "STRING", "pos": null, "link": null } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "masks", "nameLocked": null, "removable": null, "type": "MASK", "pos": null, "slot_index": null, "links": [ 11 ] }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "bboxes", "nameLocked": null, "removable": null, "type": "BOUNDING_BOX", "pos": null, "slot_index": null, "links": null } ], "properties": { "Node name for S&R": "SAM3_Detect" }, "widgets_values": [ 0.4, 2, false ], "widgets_values_named": { "threshold": 0.4, "refine_iterations": 2, "individual_masks": false } }, { "id": 14, "type": "SAM3_VideoTrack", "pos": [ 929.948477955631, 587.1743670062046 ], "size": [ 350, 166 ], "flags": {}, "order": 19, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "images", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "link": 9 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "model", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "link": 10 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "initial_mask", "nameLocked": null, "removable": null, "shape": 7, "type": "MASK", "pos": null, "link": 11 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "conditioning", "nameLocked": null, "removable": null, "shape": 7, "type": "CONDITIONING", "pos": null, "link": 12 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "track_data", "nameLocked": null, "removable": null, "type": "SAM3_TRACK_DATA", "pos": null, "slot_index": null, "links": [ 13 ] } ], "properties": { "Node name for S&R": "SAM3_VideoTrack" }, "widgets_values": [ 0.5, 1, 12 ], "widgets_values_named": { "detection_threshold": 0.5, "max_objects": 1, "detect_interval": 12 } }, { "id": 15, "type": "SAM3_TrackToMask", "pos": [ 929.948477955631, 887.1743670062046 ], "size": [ 350, 120 ], "flags": {}, "order": 20, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "track_data", "nameLocked": null, "removable": null, "type": "SAM3_TRACK_DATA", "pos": null, "link": 13 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "masks", "nameLocked": null, "removable": null, "type": "MASK", "pos": null, "slot_index": null, "links": [ 15 ] } ], "properties": { "Node name for S&R": "SAM3_TrackToMask" }, "widgets_values": [ "" ], "widgets_values_named": { "object_indices": "" } }, { "id": 16, "type": "H3RelayGreenMask", "pos": [ 1419.9134985895193, 604.5580971649955 ], "size": [ 350, 120 ], "flags": {}, "order": 21, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "images", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "link": 14 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "mask", "nameLocked": null, "removable": null, "type": "MASK", "pos": null, "link": 15 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "IMAGE", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "slot_index": null, "links": [ 21, 27 ] } ], "properties": { "Node name for S&R": "H3RelayGreenMask" }, "widgets_values": [ 5 ], "widgets_values_named": { "expand_pixels": 5 } }, { "id": 17, "type": "CLIPTextEncode", "pos": [ 382.87378765830897, 47.25154298033427 ], "size": [ 400, 200 ], "flags": {}, "order": 14, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "clip", "nameLocked": null, "removable": null, "type": "CLIP", "pos": null, "link": 16 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "CONDITIONING", "nameLocked": null, "removable": null, "type": "CONDITIONING", "pos": null, "slot_index": null, "links": [ 8, 12 ] } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "man in gray shirt" ], "widgets_values_named": { "text": "man in gray shirt" }, "color": "#254c38", "bgcolor": "#172e24" }, { "id": 18, "type": "H3RelayPersonRemover", "pos": [ 2325.0726781462827, 63.13367114470057 ], "size": [ 550, 800 ], "flags": {}, "order": 22, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "model", "nameLocked": null, "removable": null, "type": "MODEL", "pos": null, "link": 17 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "clip", "nameLocked": null, "removable": null, "type": "CLIP", "pos": null, "link": 31 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "video_vae", "nameLocked": null, "removable": null, "type": "VAE", "pos": null, "link": 19 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "audio_vae", "nameLocked": null, "removable": null, "type": "VAE", "pos": null, "link": 20 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "masked_source", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "link": 21 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "clean_first_frame", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "link": 22 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "fps", "nameLocked": null, "removable": null, "type": "FLOAT", "widget": { "name": "fps" }, "link": 23 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "clean_frames", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "slot_index": null, "links": [ 24 ] }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "generated_audio", "nameLocked": null, "removable": null, "type": "AUDIO", "pos": null, "slot_index": null, "links": null } ], "properties": { "Node name for S&R": "H3RelayPersonRemover" }, "widgets_values": [ 24, "Remove the green-masked person and reconstruct the background. Preserve the rest of the video, including its camera motion and frame timing.", 904234, "fixed", 12, "22", "{}" ], "widgets_values_named": { "fps": 24, "prompt": "Remove the green-masked person and reconstruct the background. Preserve the rest of the video, including its camera motion and frame timing.", "seed": 904234, "control_after_generate": "fixed", "steps": 12, "window_frames": "22", "window_controls": "{}" } }, { "id": 19, "type": "CreateVideo", "pos": [ 2963.910846523049, 63.88362063400274 ], "size": [ 350, 150 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "images", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "link": 24 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "audio", "nameLocked": null, "removable": null, "shape": 7, "type": "AUDIO", "pos": null, "link": null }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "fps", "nameLocked": null, "removable": null, "type": "FLOAT", "widget": { "name": "fps" }, "link": 25 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "VIDEO", "nameLocked": null, "removable": null, "type": "VIDEO", "pos": null, "slot_index": null, "links": [ 26 ] } ], "properties": { "Node name for S&R": "CreateVideo" }, "widgets_values": [ 30, "auto", "sRGB", "none" ], "widgets_values_named": { "fps": 30, "bit_depth": "auto", "color_space": "sRGB", "codec": "none" } }, { "id": 20, "type": "SaveVideo", "pos": [ 3413.910846523049, 63.88362063400274 ], "size": [ 350, 321 ], "flags": {}, "order": 26, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "video", "nameLocked": null, "removable": null, "type": "VIDEO", "pos": null, "link": 26 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "video", "nameLocked": null, "removable": null, "type": "VIDEO", "pos": null, "slot_index": null, "links": null } ], "properties": {}, "widgets_values": [ "person-remover-v1/clean", "mp4", "h264", "re-encode", 16, "auto" ], "widgets_values_named": { "filename_prefix": "person-remover-v1/clean", "format": "mp4", "format.codec": "h264", "format.codec.encoding": "re-encode", "format.codec.encoding.crf": 16, "codec": "auto" }, "color": "#63353b", "bgcolor": "#361d24" }, { "id": 21, "type": "CreateVideo", "pos": [ 2973.793844248407, 745.5307869215634 ], "size": [ 350, 150 ], "flags": {}, "order": 23, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "images", "nameLocked": null, "removable": null, "type": "IMAGE", "pos": null, "link": 27 }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "audio", "nameLocked": null, "removable": null, "shape": 7, "type": "AUDIO", "pos": null, "link": null }, { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "fps", "nameLocked": null, "removable": null, "type": "FLOAT", "widget": { "name": "fps" }, "link": 28 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "VIDEO", "nameLocked": null, "removable": null, "type": "VIDEO", "pos": null, "slot_index": null, "links": [ 29 ] } ], "properties": { "Node name for S&R": "CreateVideo" }, "widgets_values": [ 30, "auto", "sRGB", "none" ], "widgets_values_named": { "fps": 30, "bit_depth": "auto", "color_space": "sRGB", "codec": "none" } }, { "id": 22, "type": "SaveVideo", "pos": [ 3399.0603615863733, 747.5962418681727 ], "size": [ 454, 373 ], "flags": {}, "order": 25, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "video", "nameLocked": null, "removable": null, "type": "VIDEO", "pos": null, "link": 29 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "video", "nameLocked": null, "removable": null, "type": "VIDEO", "pos": null, "slot_index": null, "links": null } ], "properties": {}, "widgets_values": [ "person-remover-v1/mask-preview", "mp4", "h264", "re-encode", 16, "auto" ], "widgets_values_named": { "filename_prefix": "person-remover-v1/mask-preview", "format": "mp4", "format.codec": "h264", "format.codec.encoding": "re-encode", "format.codec.encoding.crf": 16, "codec": "auto" }, "color": "#63353b", "bgcolor": "#361d24" }, { "id": 23, "type": "MarkdownNote", "pos": [ -35.62652428049328, -370.1440700382485 ], "size": [ 534.0310267675281, 292.497967626009 ], "flags": {}, "order": 7, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "# Person Remover V1\n\nSupply a **24 fps source video** and a **clean version of its first frame**, with identical size and framing. Make that clean frame externally with an image editor, ChatGPT ImageGen, or Qwen Image Edit.\n\nDescribe the person in CLIP Text Encode below, for example **man in gray shirt**. Native SAM3 uses that text to detect the target. SAM tracks that selection, expands the mask by 5 px, and fills it green. Check the mask preview before trusting a removal.\n\n**Start with a short, single-shot clip.** Dimensions must be divisible by 32. The demonstrated runs use roughly 5-second clips. Camera cuts, hands, moving screens, shadows and disocclusions can still cause artifacts. The clean frame is a visual reference, not an exact pixel lock.\n\nGreen nodes are user inputs. Red nodes save outputs. Original node names are retained." ], "widgets_values_named": { "text": "# Person Remover V1\n\nSupply a **24 fps source video** and a **clean version of its first frame**, with identical size and framing. Make that clean frame externally with an image editor, ChatGPT ImageGen, or Qwen Image Edit.\n\nDescribe the person in CLIP Text Encode below, for example **man in gray shirt**. Native SAM3 uses that text to detect the target. SAM tracks that selection, expands the mask by 5 px, and fills it green. Check the mask preview before trusting a removal.\n\n**Start with a short, single-shot clip.** Dimensions must be divisible by 32. The demonstrated runs use roughly 5-second clips. Camera cuts, hands, moving screens, shadows and disocclusions can still cause artifacts. The clean frame is a visual reference, not an exact pixel lock.\n\nGreen nodes are user inputs. Red nodes save outputs. Original node names are retained." }, "color": "#432", "bgcolor": "#653" }, { "id": 24, "type": "MarkdownNote", "pos": [ 523.3300760690931, -328.49293886173734 ], "size": [ 384.406610382453, 249.8569189695537 ], "flags": {}, "order": 8, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "## Describe the person\n\nUse a short identifying phrase in the green CLIP Text Encode node: **man in gray shirt**, **woman wearing a red coat**, or **person**. The SAM checkpoint supplies its own text encoder. No point selector or KJ Nodes is required. If several people match, make the description more specific.\n\nThe first source frame feeds SAM automatically. Inspect the saved green-mask preview for missing hands, hair or a second person. Expand pixels starts at **5**; more expansion hides more edge pixels but asks H3 to reconstruct more background.\n\nTo preview only: set the clean-output Save Video node to Never; queue the mask output, then restore the clean output to Always." ], "widgets_values_named": { "text": "## Describe the person\n\nUse a short identifying phrase in the green CLIP Text Encode node: **man in gray shirt**, **woman wearing a red coat**, or **person**. The SAM checkpoint supplies its own text encoder. No point selector or KJ Nodes is required. If several people match, make the description more specific.\n\nThe first source frame feeds SAM automatically. Inspect the saved green-mask preview for missing hands, hair or a second person. Expand pixels starts at **5**; more expansion hides more edge pixels but asks H3 to reconstruct more background.\n\nTo preview only: set the clean-output Save Video node to Never; queue the mask output, then restore the clean output to Always." }, "color": "#432", "bgcolor": "#653" }, { "id": 26, "type": "MarkdownNote", "pos": [ 2271.5898405365074, -428.4737715563111 ], "size": [ 608.9932703143186, 360.7472111986402 ], "flags": {}, "order": 9, "mode": 0, "inputs": [], "outputs": [], "properties": {}, "widgets_values": [ "## Automatic relay\n\nChoose **window_frames** on the Person Remover node. H3 uses **17n + 5** frames: **22, 39, 56, 73, 90, 107, 124…362**. At 24 fps, 22 = 0.92s, 39 = 1.63s and 124 = 5.17s. **22 is the proven default.** Larger windows need more memory and may drift. Each continuation uses the generated boundary frame as its image reference and the preceding **18 generated video/audio frames** as history. Repeated overlap frames are discarded. The final window shifts or pads as needed, then trims to the source frame count.\n\nDefaults: **12 steps, er_sde, simple, CFG 1, seed 904234**, video/audio sigma shift **12 / 3**, LoRA strength **1.0**. No Turbo or VFX adapter. Select CLIP Device pins Qwen encoding to **gpu:0**. Change strength on Load LoRA; keep the default prompt for a first test.\n\nGenerated audio is used internally for continuity. The clean output is **silent** by default. Connect source audio from Get Video Components to Create Video if you want the original soundtrack. Removing someone visually does not remove their voice.\n\nEach finished window appears as a preview card on the Person Remover node before the next window proceeds. Hover to play (tap on touch screens). Use ComfyUI's normal execution controls to stop a run; completed previews remain available. Change the window size or seed, then run again. Preview files are temporary. This graph regenerates the full scene; inspect motion, mask remnants and seams." ], "widgets_values_named": { "text": "## Automatic relay\n\nChoose **window_frames** on the Person Remover node. H3 uses **17n + 5** frames: **22, 39, 56, 73, 90, 107, 124…362**. At 24 fps, 22 = 0.92s, 39 = 1.63s and 124 = 5.17s. **22 is the proven default.** Larger windows need more memory and may drift. Each continuation uses the generated boundary frame as its image reference and the preceding **18 generated video/audio frames** as history. Repeated overlap frames are discarded. The final window shifts or pads as needed, then trims to the source frame count.\n\nDefaults: **12 steps, er_sde, simple, CFG 1, seed 904234**, video/audio sigma shift **12 / 3**, LoRA strength **1.0**. No Turbo or VFX adapter. Select CLIP Device pins Qwen encoding to **gpu:0**. Change strength on Load LoRA; keep the default prompt for a first test.\n\nGenerated audio is used internally for continuity. The clean output is **silent** by default. Connect source audio from Get Video Components to Create Video if you want the original soundtrack. Removing someone visually does not remove their voice.\n\nEach finished window appears as a preview card on the Person Remover node before the next window proceeds. Hover to play (tap on touch screens). Use ComfyUI's normal execution controls to stop a run; completed previews remain available. Change the window size or seed, then run again. Preview files are temporary. This graph regenerates the full scene; inspect motion, mask remnants and seams." }, "color": "#432", "bgcolor": "#653" }, { "id": 27, "type": "SelectCLIPDevice", "pos": [ 1428.2358314377984, 460.9451526397086 ], "size": [ 270, 58 ], "flags": {}, "order": 12, "mode": 0, "inputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "clip", "nameLocked": null, "removable": null, "type": "CLIP", "pos": null, "link": 30 } ], "outputs": [ { "color_off": null, "color_on": null, "dir": null, "label": null, "locked": null, "name": "CLIP", "nameLocked": null, "removable": null, "type": "CLIP", "pos": null, "slot_index": null, "links": [ 31 ] } ], "properties": { "Node name for S&R": "SelectCLIPDevice" }, "widgets_values": [ "gpu:0" ], "widgets_values_named": { "device": "gpu:0" } }, { "id": 28, "type": "MarkdownNote", "pos": [ -518.4012629290103, -4.969443825627916 ], "size": [ 451.8082368329448, 709.6966650780403 ], "flags": {}, "order": 10, "mode": 0, "inputs": [], "outputs": [], "title": "Note: Model Links", "properties": {}, "widgets_values": [ "## Model Links\n\n**vae**\n\n- [minimax_h3_video_vae_fp16.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_fp16.safetensors)\n- [minimax_h3_audio_vae_fp32.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_audio_vae_fp32.safetensors)\n\n**diffusion_models**\n\n- [minimax_h3_ref2va_pruned_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/blob/main/diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors)\n\n**loras**\n\n- [H3-Person-Remover-V1.safetensors](https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/main/H3-Person-Remover-V1.safetensors?download=true)\n\n**checkpoints**\n\n- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/blob/main/checkpoints/sam3.1_multiplex_fp16.safetensors) (includes text encoder)\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 vae/\n│ │ ├── minimax_h3_video_vae_fp16.safetensors\n│ │ └── minimax_h3_audio_vae_fp32.safetensors\n│ ├── 📂 diffusion_models/\n│ │ └── minimax_h3_ref2va_pruned_int8_convrot.safetensors\n│ ├── 📂 text_encoders/\n│ │ └── qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors\n│ ├── 📂 loras/\n│ │ └── H3-Person-Remover-V1.safetensors\n│ └── 📂 checkpoints/\n│ └── sam3.1_multiplex_fp16.safetensors\n```\n\n## Custom Node:\n\nInstall the accompanying [H3 Relay](https://github.com/akatz-ai/h3-relay) custom node into `ComfyUI/custom_nodes/h3-relay`, then restart ComfyUI. Use a current ComfyUI with native H3 and SAM3 support. Models retain their upstream licenses.\n\n## Credits:\n\nWorkflow and LoRA by [akatz-ai](https://huggingface.co/akatz-ai)\n" ], "widgets_values_named": { "text": "## Model Links\n\n**vae**\n\n- [minimax_h3_video_vae_fp16.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_fp16.safetensors)\n- [minimax_h3_audio_vae_fp32.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_audio_vae_fp32.safetensors)\n\n**diffusion_models**\n\n- [minimax_h3_ref2va_pruned_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/blob/main/diffusion_models/minimax_h3_ref2va_pruned_int8_convrot.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors)\n\n**loras**\n\n- [H3-Person-Remover-V1.safetensors](https://huggingface.co/akatz-ai/MiniMax-H3-Person-Remover-LoRA/resolve/main/H3-Person-Remover-V1.safetensors?download=true)\n\n**checkpoints**\n\n- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/blob/main/checkpoints/sam3.1_multiplex_fp16.safetensors) (includes text encoder)\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 vae/\n│ │ ├── minimax_h3_video_vae_fp16.safetensors\n│ │ └── minimax_h3_audio_vae_fp32.safetensors\n│ ├── 📂 diffusion_models/\n│ │ └── minimax_h3_ref2va_pruned_int8_convrot.safetensors\n│ ├── 📂 text_encoders/\n│ │ └── qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors\n│ ├── 📂 loras/\n│ │ └── H3-Person-Remover-V1.safetensors\n│ └── 📂 checkpoints/\n│ └── sam3.1_multiplex_fp16.safetensors\n```\n\n## Custom Node:\n\nInstall the accompanying [H3 Relay](https://github.com/akatz-ai/h3-relay) custom node into `ComfyUI/custom_nodes/h3-relay`, then restart ComfyUI. Use a current ComfyUI with native H3 and SAM3 support. Models retain their upstream licenses.\n\n## Credits:\n\nWorkflow and LoRA by [akatz-ai](https://huggingface.co/akatz-ai)\n" }, "color": "#222", "bgcolor": "#000" } ], "links": [ [ 1, 1, 0, 2, 0, "MODEL" ], [ 2, 2, 0, 3, 0, "MODEL" ], [ 3, 7, 0, 8, 0, "VIDEO" ], [ 4, 3, 0, 9, 0, "MODEL" ], [ 5, 8, 0, 12, 0, "IMAGE" ], [ 6, 11, 0, 13, 0, "MODEL" ], [ 7, 12, 0, 13, 1, "IMAGE" ], [ 8, 17, 0, 13, 2, "CONDITIONING" ], [ 9, 8, 0, 14, 0, "IMAGE" ], [ 10, 11, 0, 14, 1, "MODEL" ], [ 11, 13, 0, 14, 2, "MASK" ], [ 12, 17, 0, 14, 3, "CONDITIONING" ], [ 13, 14, 0, 15, 0, "SAM3_TRACK_DATA" ], [ 14, 8, 0, 16, 0, "IMAGE" ], [ 15, 15, 0, 16, 1, "MASK" ], [ 16, 11, 1, 17, 0, "CLIP" ], [ 17, 9, 0, 18, 0, "MODEL" ], [ 19, 5, 0, 18, 2, "VAE" ], [ 20, 6, 0, 18, 3, "VAE" ], [ 21, 16, 0, 18, 4, "IMAGE" ], [ 22, 10, 0, 18, 5, "IMAGE" ], [ 23, 8, 2, 18, 6, "FLOAT" ], [ 24, 18, 0, 19, 0, "IMAGE" ], [ 25, 8, 2, 19, 2, "FLOAT" ], [ 27, 16, 0, 21, 0, "IMAGE" ], [ 28, 8, 2, 21, 2, "FLOAT" ], [ 30, 4, 0, 27, 0, "CLIP" ], [ 31, 27, 0, 18, 1, "CLIP" ], [ 26, 19, 0, 20, 0, "VIDEO" ], [ 29, 21, 0, 22, 0, "VIDEO" ] ], "groups": [ { "id": 1, "title": "1 · Inputs and person selection", "bounding": [ -40, -40, 840, 1050 ], "color": "#3d7659", "flags": {} }, { "id": 2, "title": "2 · SAM tracking", "bounding": [ 860, -40, 520, 1080 ], "color": "#75694b", "flags": {} }, { "id": 3, "title": "3 · H3 models and LoRA", "bounding": [ 1400, -40, 830, 1400 ], "color": "#455878", "flags": {} }, { "id": 4, "title": "4 · Relay and outputs", "bounding": [ 2263.676841973765, -38.94270284254948, 1650, 1210 ], "color": "#78484e", "flags": {} } ], "config": {}, "extra": { "ds": { "scale": 0.9777458488335131, "offset": [ 657.4843907332743, 424.6180338863293 ] }, "frontendVersion": "1.53.6" }, "version": 0.4 }
{
"id": "6eacff7a-17e7-444f-8557-19d124c465f7",
"revision": 0,
"last_node_id": 28,
"last_link_id": 31,
"nodes": [
{
"id": 1,
"type": "UNETLoader",
"pos": [
1428.2358314377984,
60.945152639708915
],
"size": [
350,
120
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"color_off": null,
"color_on": null,
"dir": null,
"label": null,
"locked": null,
"name": "MODEL",
"nameLocked": null,
"removable": null,
"type": "MODEL",
"pos": null,
"slot_index": null,
"links": [
1
]
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"default"
],
"widgets_values_named": {
"unet_name": "minimax_h3_ref2va_pruned_int8_convrot.safetensors",
"weight_dtype": "default"
}
},
{
"id": 2,
"type": "MiniMaxH3SigmaShift",
"pos": [
1858.2358314377984,
60.945152639708915
],
"size": [
350,
120
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"color_off": null,
"color_on": null,
"dir": null,
"label": null,
"locked": null,
"name": "model",
"nameLocked": null,
"removable": null,
"type": "MODEL",
"pos": null,
"link": 1
}
],
"outputs": [
{
"color_off": null,
"color_on": null,
"dir": null,
"label": null,
"locked": null,
"name": "MODEL",
"nameLocked": null,
"removable": null,
"type": "MODEL",
"pos": null,
"slot_index": null,
"links": [
2
]
}
],
"properties": {
"Node name for S&R": "MiniMaxH3SigmaShift"