One-click character swap for videos: an open-source, local Higgsfield Genjutsu alternative built on ComfyUI and MiniMax H3, with FLUX.3 Klein relighting.
{
"1": {
"inputs": { "video": "", "force_rate": 24, "custom_width": 0, "custom_height": 0, "frame_load_cap": 0, "skip_first_frames": 0, "select_every_nth": 1, "format": "None" },
"class_type": "VHS_LoadVideo",
"_meta": { "title": "Source video" }
},
"2": {
"inputs": { "ckpt_name": "sam3.1_multiplex_fp16.safetensors" },
"class_type": "CheckpointLoaderSimple",
"_meta": { "title": "SAM 3.1" }
},
"3": {
"inputs": { "text": "person", "clip": ["2", 1] },
"class_type": "CLIPTextEncode",
"_meta": { "title": "SAM: people" }
},
"4": {
"inputs": { "upscale_method": "area", "largest_size": 1008, "image": ["1", 0] },
"class_type": "ImageScaleToMaxDimension",
"_meta": { "title": "SAM video (1008 px)" }
},
"5": {
"inputs": { "detection_threshold": 0.35, "max_objects": 0, "detect_interval": 1, "images": ["4", 0], "model": ["2", 0], "conditioning": ["3", 0] },
"class_type": "SAM3_VideoTrack",
"_meta": { "title": "SAM 3.1 track every person" }
},
"6": {
"inputs": { "placement": "", "start_frame": 0, "images": ["4", 0], "track_data": ["5", 0] },
"class_type": "H3AddFitCheck",
"_meta": { "title": "Check the fit" }
},
"7": {
"inputs": { "frame_rate": 24, "loop_count": 0, "filename_prefix": "openjutsu_fit/fit", "format": "video/h264-mp4", "pix_fmt": "yuv420p", "crf": 19, "save_metadata": false, "trim_to_audio": false, "pingpong": false, "save_output": false, "images": ["6", 0] },
"class_type": "VHS_VideoCombine",
"_meta": { "title": "Fit preview video" }
}
}