{"id":"0d94d3f6-cd4c-45a5-9029-18b2ffe9973b","revision":0,"last_node_id":5,"last_link_id":267,"nodes":[{"id":"model","type":"UNETLoader","pos":[480,100],"size":[370,82],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"UNet名称","name":"unet_name","type":"COMBO","widget":{"name":"unet_name"},"link":null},{"localized_name":"数据类型","name":"weight_dtype","type":"COMBO","widget":{"name":"weight_dtype"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"MODEL","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"slot_index":null,"links":[179]}],"title":"H3 Ref2VA · INT8","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"},"color":"#303844","bgcolor":"#1e252d"},{"id":"shift","type":"MiniMaxH3SigmaShift","pos":[480,258],"size":[370,82],"flags":{},"order":13,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"model","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":179},{"localized_name":"视频偏移","name":"shift_video","type":"FLOAT","widget":{"name":"shift_video"},"link":null},{"localized_name":"音频偏移","name":"shift_audio","type":"FLOAT","widget":{"name":"shift_audio"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"MODEL","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"slot_index":null,"links":[180]}],"title":"MiniMaxH3SigmaShift","properties":{"Node name for S&R":"MiniMaxH3SigmaShift"},"widgets_values":[12,3],"widgets_values_named":{"shift_video":12,"shift_audio":3},"color":"#303844","bgcolor":"#1e252d"},{"id":"attention","type":"ModelAttentionBackend","pos":[480,416],"size":[370,58],"flags":{},"order":17,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"model","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":180},{"localized_name":"attention","name":"attention","type":"COMBO","widget":{"name":"attention"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"slot_index":null,"links":[183]}],"title":"ModelAttentionBackend","properties":{"Node name for S&R":"ModelAttentionBackend"},"widgets_values":["comfy kitchen attention"],"widgets_values_named":{"attention":"comfy kitchen attention"},"color":"#303844","bgcolor":"#1e252d"},{"id":"text","type":"CLIPLoader","pos":[910,100],"size":[370,106],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"CLIP名称","name":"clip_name","type":"COMBO","widget":{"name":"clip_name"},"link":null},{"localized_name":"类型","name":"type","type":"COMBO","widget":{"name":"type"},"link":null},{"localized_name":"设备","name":"device","shape":7,"type":"COMBO","widget":{"name":"device"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"CLIP","locked":null,"name":"CLIP","nameLocked":null,"removable":null,"type":"CLIP","pos":null,"slot_index":null,"links":[181]}],"title":"H3 Qwen text encoder","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"},"color":"#303844","bgcolor":"#1e252d"},{"id":"text_device","type":"SelectCLIPDevice","pos":[910,282],"size":[370,58],"flags":{},"order":14,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"clip","locked":null,"name":"clip","nameLocked":null,"removable":null,"type":"CLIP","pos":null,"link":181},{"localized_name":"device","name":"device","type":"COMBO","widget":{"name":"device"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"CLIP","locked":null,"name":"CLIP","nameLocked":null,"removable":null,"type":"CLIP","pos":null,"slot_index":null,"links":[182]}],"title":"SelectCLIPDevice","properties":{"Node name for S&R":"SelectCLIPDevice"},"widgets_values":["gpu:0"],"widgets_values_named":{"device":"gpu:0"},"color":"#303844","bgcolor":"#1e252d"},{"id":"text_memory","type":"H3RelayTextMemory","pos":[910,416],"size":[370,26],"flags":{},"order":18,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"clip","locked":null,"name":"clip","nameLocked":null,"removable":null,"type":"CLIP","pos":null,"link":182}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"CLIP","locked":null,"name":"CLIP","nameLocked":null,"removable":null,"type":"CLIP","pos":null,"slot_index":null,"links":[216]}],"title":"H3RelayTextMemory","properties":{"Node name for S&R":"H3RelayTextMemory"},"color":"#28465c","bgcolor":"#1e252d"},{"id":"video_vae","type":"VAELoader","pos":[910,518],"size":[370,58],"flags":{},"order":2,"mode":0,"inputs":[{"localized_name":"vae名称","name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"VAE","locked":null,"name":"VAE","nameLocked":null,"removable":null,"type":"VAE","pos":null,"slot_index":null,"links":[222,227,233,256]}],"title":"H3 video VAE · FP16","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"},"color":"#303844","bgcolor":"#1e252d"},{"id":"audio_vae","type":"VAELoader","pos":[910,652],"size":[370,58],"flags":{},"order":3,"mode":0,"inputs":[{"localized_name":"vae名称","name":"vae_name","type":"COMBO","widget":{"name":"vae_name"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"VAE","locked":null,"name":"VAE","nameLocked":null,"removable":null,"type":"VAE","pos":null,"slot_index":null,"links":[223,228,239]}],"title":"H3 audio VAE · FP32","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"},"color":"#303844","bgcolor":"#1e252d"},{"id":"turbo","type":"LoraLoaderModelOnly","pos":[480,550],"size":[370,82],"flags":{},"order":22,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":183},{"localized_name":"LoRA名称","name":"lora_name","type":"COMBO","widget":{"name":"lora_name"},"link":null},{"localized_name":"模型强度","name":"strength_model","type":"FLOAT","widget":{"name":"strength_model"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"MODEL","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"slot_index":null,"links":[184]}],"title":"FL2V Turbo · 8-step","properties":{"Node name for S&R":"LoraLoaderModelOnly"},"widgets_values":["minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors",1],"widgets_values_named":{"lora_name":"minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors","strength_model":1},"color":"#303844","bgcolor":"#1e252d"},{"id":"adapter","type":"LoraLoaderModelOnly","pos":[480,708],"size":[370,82],"flags":{},"order":25,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":184},{"localized_name":"LoRA名称","name":"lora_name","type":"COMBO","widget":{"name":"lora_name"},"link":null},{"localized_name":"模型强度","name":"strength_model","type":"FLOAT","widget":{"name":"strength_model"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"MODEL","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"slot_index":null,"links":[241,248]}],"title":"Character Swap V1.5 · strength","properties":{"Node name for S&R":"LoraLoaderModelOnly"},"widgets_values":["h3_character_swap_v1.5.safetensors",1.5],"widgets_values_named":{"lora_name":"h3_character_swap_v1.5.safetensors","strength_model":1.5},"color":"#303844","bgcolor":"#1e252d"},{"id":"source","type":"LoadVideo","pos":[10.153602895517704,-16.879251108403782],"size":[380,454],"flags":{},"order":4,"mode":0,"inputs":[{"localized_name":"文件","name":"file","type":"COMBO","widget":{"name":"file"},"link":null},{"localized_name":"选择要上传的文件","name":"upload","type":"IMAGEUPLOAD","widget":{"name":"upload"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"视频","locked":null,"name":"VIDEO","nameLocked":null,"removable":null,"type":"VIDEO","pos":null,"slot_index":null,"links":[185]}],"title":"Source video","properties":{"Node name for S&R":"LoadVideo"},"widgets_values":["Example_REF_Video.mp4","image"],"widgets_values_named":{"file":"Example_REF_Video.mp4","upload":"image"},"color":"#235044","bgcolor":"#1e252d"},{"id":"prepare","type":"H3RelayPrepareSource","pos":[0,506],"size":[380,266],"flags":{},"order":15,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"video","locked":null,"name":"video","nameLocked":null,"removable":null,"type":"VIDEO","pos":null,"link":185},{"localized_name":"resolution","name":"resolution","type":"COMBO","widget":{"name":"resolution"},"link":null},{"localized_name":"duration_seconds","name":"duration_seconds","shape":7,"type":"FLOAT","widget":{"name":"duration_seconds"},"link":null},{"localized_name":"missing_audio","name":"missing_audio","shape":7,"type":"COMBO","widget":{"name":"missing_audio"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"reference_frames","locked":null,"name":"reference_frames","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[186,188,194,199,205,210]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_audio","locked":null,"name":"source_audio","nameLocked":null,"removable":null,"type":"AUDIO","pos":null,"slot_index":null,"links":[214,263]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"width","locked":null,"name":"width","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"height","locked":null,"name":"height","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"h3_length","locked":null,"name":"h3_length","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_frames","locked":null,"name":"source_frames","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":[200,206,208]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"fps","locked":null,"name":"fps","nameLocked":null,"removable":null,"type":"FLOAT","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"summary","locked":null,"name":"summary","nameLocked":null,"removable":null,"type":"STRING","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"prepared_video","locked":null,"name":"prepared_video","nameLocked":null,"removable":null,"type":"VIDEO","pos":null,"slot_index":null,"links":null}],"title":"Prepare Source · resolution & duration","properties":{"Node name for S&R":"H3RelayPrepareSource"},"widgets_values":["480",0,"silence"],"widgets_values_named":{"resolution":"480","duration_seconds":0,"missing_audio":"silence"},"color":"#235044","bgcolor":"#1e252d"},{"id":"dimensions","type":"GetImageSize","pos":[0,848],"size":[380,124],"flags":{},"order":19,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"image","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":186}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"宽度","locked":null,"name":"width","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":[217]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"高度","locked":null,"name":"height","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":[218]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"批处理大小","locked":null,"name":"batch_size","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":null}],"title":"GetImageSize","properties":{"Node name for S&R":"GetImageSize"},"color":"#303844","bgcolor":"#1e252d"},{"id":"reference","type":"LoadImage","pos":[0,990],"size":[380,330],"flags":{},"order":5,"mode":0,"inputs":[{"localized_name":"图像","name":"image","type":"COMBO","widget":{"name":"image"},"link":null},{"localized_name":"选择文件上传","name":"upload","type":"IMAGEUPLOAD","widget":{"name":"upload"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"IMAGE","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[221]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"遮罩","locked":null,"name":"MASK","nameLocked":null,"removable":null,"type":"MASK","pos":null,"slot_index":null,"links":null}],"title":"Character reference · Picture 1","properties":{"Node name for S&R":"LoadImage"},"widgets_values":["·-164249820.webp","image"],"widgets_values_named":{"image":"·-164249820.webp","upload":"image"},"color":"#235044","bgcolor":"#1e252d"},{"id":"sam","type":"CheckpointLoaderSimple","pos":[0,1460],"size":[400,98],"flags":{},"order":6,"mode":4,"inputs":[{"localized_name":"Checkpoint名称","name":"ckpt_name","type":"COMBO","widget":{"name":"ckpt_name"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"MODEL","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"slot_index":null,"links":[189,193,201]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"CLIP","locked":null,"name":"CLIP","nameLocked":null,"removable":null,"type":"CLIP","pos":null,"slot_index":null,"links":[187]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"VAE","locked":null,"name":"VAE","nameLocked":null,"removable":null,"type":"VAE","pos":null,"slot_index":null,"links":null}],"title":"CheckpointLoaderSimple","properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["sam3.1_multiplex_fp16.safetensors"],"widgets_values_named":{"ckpt_name":"sam3.1_multiplex_fp16.safetensors"},"color":"#303844","bgcolor":"#1e252d"},{"id":"subject","type":"CLIPTextEncode","pos":[0,1634],"size":[400,200],"flags":{},"order":16,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"clip","locked":null,"name":"clip","nameLocked":null,"removable":null,"type":"CLIP","pos":null,"link":187},{"localized_name":"文本","name":"text","type":"STRING","widget":{"name":"text"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"条件","locked":null,"name":"CONDITIONING","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"slot_index":null,"links":[191,196,202]}],"title":"SAM person description","properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["person"],"widgets_values_named":{"text":"person"},"color":"#235044","bgcolor":"#1e252d"},{"id":"first_frame","type":"ImageFromBatch","pos":[0,1910],"size":[400,82],"flags":{},"order":20,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"image","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":188},{"localized_name":"批次索引","name":"batch_index","type":"INT","widget":{"name":"batch_index"},"link":null},{"localized_name":"长度","name":"length","type":"INT","widget":{"name":"length"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"IMAGE","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[190]}],"title":"ImageFromBatch","properties":{"Node name for S&R":"ImageFromBatch"},"widgets_values":[0,1],"widgets_values_named":{"batch_index":0,"length":1},"color":"#303844","bgcolor":"#1e252d"},{"id":"detect","type":"SAM3_Detect","pos":[0,2068],"size":[400,206],"flags":{},"order":23,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"model","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":189},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"image","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":190},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"条件","locked":null,"name":"conditioning","nameLocked":null,"removable":null,"shape":7,"type":"CONDITIONING","pos":null,"link":191},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"边界框","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,"localized_name":"正向坐标","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,"localized_name":"负向坐标","locked":null,"name":"negative_coords","nameLocked":null,"removable":null,"shape":7,"type":"STRING","pos":null,"link":null},{"localized_name":"阈值","name":"threshold","type":"FLOAT","widget":{"name":"threshold"},"link":null},{"localized_name":"细化迭代次数","name":"refine_iterations","type":"INT","widget":{"name":"refine_iterations"},"link":null},{"localized_name":"单独 mask","name":"individual_masks","type":"BOOLEAN","widget":{"name":"individual_masks"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"mask","locked":null,"name":"masks","nameLocked":null,"removable":null,"type":"MASK","pos":null,"slot_index":null,"links":[192]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"边界框","locked":null,"name":"bboxes","nameLocked":null,"removable":null,"type":"BOUNDING_BOX","pos":null,"slot_index":null,"links":null}],"title":"SAM3_Detect","properties":{"Node name for S&R":"SAM3_Detect"},"widgets_values":[0.35,2,true],"widgets_values_named":{"threshold":0.35,"refine_iterations":2,"individual_masks":true},"color":"#303844","bgcolor":"#1e252d"},{"id":"select","type":"H3RelaySelectMask","pos":[460,1460],"size":[360,102],"flags":{},"order":26,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"masks","locked":null,"name":"masks","nameLocked":null,"removable":null,"type":"MASK","pos":null,"link":192},{"localized_name":"selection","name":"selection","type":"COMBO","widget":{"name":"selection"},"link":null},{"localized_name":"index","name":"index","type":"INT","widget":{"name":"index"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"selected_mask","locked":null,"name":"selected_mask","nameLocked":null,"removable":null,"type":"MASK","pos":null,"slot_index":null,"links":[195]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"selection","locked":null,"name":"selection","nameLocked":null,"removable":null,"type":"H3_SUBJECT_SELECTION","pos":null,"slot_index":null,"links":[203]}],"title":"H3RelaySelectMask","properties":{"Node name for S&R":"H3RelaySelectMask"},"widgets_values":["largest",0],"widgets_values_named":{"selection":"largest","index":0},"color":"#28465c","bgcolor":"#1e252d"},{"id":"track","type":"SAM3_VideoTrack","pos":[460,1638],"size":[360,166],"flags":{},"order":29,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"images","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":194},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"model","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":193},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"初始 mask","locked":null,"name":"initial_mask","nameLocked":null,"removable":null,"shape":7,"type":"MASK","pos":null,"link":195},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"条件","locked":null,"name":"conditioning","nameLocked":null,"removable":null,"shape":7,"type":"CONDITIONING","pos":null,"link":196},{"localized_name":"检测阈值","name":"detection_threshold","type":"FLOAT","widget":{"name":"detection_threshold"},"link":null},{"localized_name":"最大对象数","name":"max_objects","type":"INT","widget":{"name":"max_objects"},"link":null},{"localized_name":"检测间隔","name":"detect_interval","type":"INT","widget":{"name":"detect_interval"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"跟踪数据","locked":null,"name":"track_data","nameLocked":null,"removable":null,"type":"SAM3_TRACK_DATA","pos":null,"slot_index":null,"links":[197]}],"title":"SAM3_VideoTrack","properties":{"Node name for S&R":"SAM3_VideoTrack"},"widgets_values":[0.5,1,1],"widgets_values_named":{"detection_threshold":0.5,"max_objects":1,"detect_interval":1},"color":"#303844","bgcolor":"#1e252d"},{"id":"mask","type":"SAM3_TrackToMask","pos":[460,1880],"size":[360,58],"flags":{},"order":33,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"跟踪数据","locked":null,"name":"track_data","nameLocked":null,"removable":null,"type":"SAM3_TRACK_DATA","pos":null,"link":197},{"localized_name":"对象索引","name":"object_indices","type":"STRING","widget":{"name":"object_indices"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"mask","locked":null,"name":"masks","nameLocked":null,"removable":null,"type":"MASK","pos":null,"slot_index":null,"links":[198]}],"title":"SAM3_TrackToMask","properties":{"Node name for S&R":"SAM3_TrackToMask"},"widgets_values":[""],"widgets_values_named":{"object_indices":""},"color":"#303844","bgcolor":"#1e252d"},{"id":"recover","type":"H3RelayRecoverMasks","pos":[460,2014],"size":[360,162],"flags":{},"order":35,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"masks","locked":null,"name":"masks","nameLocked":null,"removable":null,"type":"MASK","pos":null,"link":198},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"images","locked":null,"name":"images","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":199},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"model","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":201},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"conditioning","locked":null,"name":"conditioning","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"link":202},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"selection","locked":null,"name":"selection","nameLocked":null,"removable":null,"type":"H3_SUBJECT_SELECTION","pos":null,"link":203},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_frames","locked":null,"name":"source_frames","nameLocked":null,"removable":null,"type":"INT","widget":{"name":"source_frames"},"link":200},{"localized_name":"recover_empty_frames","name":"recover_empty_frames","type":"BOOLEAN","widget":{"name":"recover_empty_frames"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"recovered_masks","locked":null,"name":"recovered_masks","nameLocked":null,"removable":null,"type":"MASK","pos":null,"slot_index":null,"links":[204]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"report","locked":null,"name":"report","nameLocked":null,"removable":null,"type":"STRING","pos":null,"slot_index":null,"links":null}],"title":"H3RelayRecoverMasks","properties":{"Node name for S&R":"H3RelayRecoverMasks"},"widgets_values":[0,true],"widgets_values_named":{"source_frames":0,"recover_empty_frames":true},"color":"#28465c","bgcolor":"#1e252d"},{"id":"expand_mask","type":"H3RelayExpandMask","pos":[880,1460],"size":[400,102],"flags":{},"order":37,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"masks","locked":null,"name":"masks","nameLocked":null,"removable":null,"type":"MASK","pos":null,"link":204},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"images","locked":null,"name":"images","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":205},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_frames","locked":null,"name":"source_frames","nameLocked":null,"removable":null,"type":"INT","widget":{"name":"source_frames"},"link":206},{"localized_name":"expansion_px","name":"expansion_px","type":"INT","widget":{"name":"expansion_px"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"generation_mask","locked":null,"name":"generation_mask","nameLocked":null,"removable":null,"type":"MASK","pos":null,"slot_index":null,"links":[]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"mask_overlay","locked":null,"name":"mask_overlay","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[207]}],"title":"H3RelayExpandMask","properties":{"Node name for S&R":"H3RelayExpandMask"},"widgets_values":[120,64],"widgets_values_named":{"source_frames":120,"expansion_px":64},"color":"#28465c","bgcolor":"#1e252d"},{"id":"mask_preview","type":"PreviewImage","pos":[895.7944933930276,1776.7659062387427],"size":[400,330],"flags":{},"order":39,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"images","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":207}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"images","locked":null,"name":"images","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":null}],"title":"Review expanded person mask","properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[],"widgets_values_named":{},"color":"#303844","bgcolor":"#1e252d"},{"id":"plan","type":"H3RelayWindowPlan","pos":[1380,100],"size":[400,286],"flags":{},"order":21,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"initial_history","locked":null,"name":"initial_history","nameLocked":null,"removable":null,"shape":7,"type":"IMAGE","pos":null,"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_frames","locked":null,"name":"source_frames","nameLocked":null,"removable":null,"type":"INT","widget":{"name":"source_frames"},"link":208},{"localized_name":"window_frames","name":"window_frames","type":"COMBO","widget":{"name":"window_frames"},"link":null},{"localized_name":"history_frames","name":"history_frames","type":"COMBO","widget":{"name":"history_frames"},"link":null},{"localized_name":"seed","name":"seed","type":"INT","widget":{"name":"seed"},"link":null},{"localized_name":"schedule","name":"schedule","type":"COMBO","widget":{"name":"schedule"},"link":null},{"localized_name":"seed_mode","name":"seed_mode","type":"COMBO","widget":{"name":"seed_mode"},"link":null},{"localized_name":"seed_overrides","name":"seed_overrides","shape":7,"type":"STRING","widget":{"name":"seed_overrides"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"window_list","locked":null,"name":"window_list","nameLocked":null,"removable":null,"shape":6,"type":"H3_RELAY_WINDOW","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"timeline","locked":null,"name":"timeline","nameLocked":null,"removable":null,"type":"STRING","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"count","locked":null,"name":"count","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":[209]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"windows","locked":null,"name":"windows","nameLocked":null,"removable":null,"type":"H3_RELAY_WINDOWS","pos":null,"slot_index":null,"links":[211]}],"title":"Plan source-aligned windows","properties":{"Node name for S&R":"H3RelayWindowPlan"},"widgets_values":[120,"124","18",904239,"fixed","adaptive","fixed","{}"],"widgets_values_named":{"source_frames":120,"window_frames":"124","history_frames":"18","seed":904239,"control_after_generate":"fixed","schedule":"adaptive","seed_mode":"fixed","seed_overrides":"{}"},"color":"#28465c","bgcolor":"#1e252d"},{"id":"start","type":"StartLoop","pos":[1386.7690685970115,429.28283511444255],"size":[400,236.00000000000006],"flags":{},"order":24,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"parent_iteration","locked":null,"name":"parent_iteration","nameLocked":null,"removable":null,"shape":7,"type":"INT","pos":null,"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"initial_iteration_value","locked":null,"name":"initial_iteration_value","nameLocked":null,"removable":null,"shape":7,"type":"*","pos":null,"link":null},{"localized_name":"mode","name":"mode","type":"COMFY_DYNAMICCOMBO_V3","widget":{"name":"mode"},"link":null},{"localized_name":"num_iterations","name":"mode.num_iterations","type":"INT","widget":{"name":"mode.num_iterations"},"link":209},{"localized_name":"cache_iterations","name":"cache_iterations","type":"BOOLEAN","widget":{"name":"cache_iterations"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"iteration_index","locked":null,"name":"iteration_index","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":[212]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"is_first","locked":null,"name":"is_first","nameLocked":null,"removable":null,"type":"BOOLEAN","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"is_last","locked":null,"name":"is_last","nameLocked":null,"removable":null,"type":"BOOLEAN","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"list_item","locked":null,"name":"list_item","nameLocked":null,"removable":null,"type":"*","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"current_iteration_value","locked":null,"name":"current_iteration_value","nameLocked":null,"removable":null,"type":"*","pos":null,"slot_index":null,"links":[213,259]}],"title":"Native loop · one H3 window","properties":{"Node name for S&R":"StartLoop"},"widgets_values":["simple",4,false],"widgets_values_named":{"mode":"simple","mode.num_iterations":4,"cache_iterations":false},"color":"#303844","bgcolor":"#1e252d"},{"id":"window","type":"H3RelayWindowInputs","pos":[1380,757.8453429850588],"size":[400,394],"flags":{},"order":27,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source","locked":null,"name":"source","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":210},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"window","locked":null,"name":"window","nameLocked":null,"removable":null,"type":"H3_RELAY_WINDOWS","pos":null,"link":211},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"previous","locked":null,"name":"previous","nameLocked":null,"removable":null,"shape":7,"type":"H3_RELAY_WINDOW_STATE","pos":null,"link":213},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_audio","locked":null,"name":"source_audio","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":214},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"mask","locked":null,"name":"mask","nameLocked":null,"removable":null,"shape":7,"type":"MASK","pos":null,"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"anchor","locked":null,"name":"anchor","nameLocked":null,"removable":null,"shape":7,"type":"IMAGE","pos":null,"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"initial_history","locked":null,"name":"initial_history","nameLocked":null,"removable":null,"shape":7,"type":"IMAGE","pos":null,"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"initial_history_audio","locked":null,"name":"initial_history_audio","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":null},{"localized_name":"reference_history","name":"reference_history","type":"BOOLEAN","widget":{"name":"reference_history"},"link":null},{"localized_name":"fps","name":"fps","type":"FLOAT","widget":{"name":"fps"},"link":null},{"localized_name":"history_audio_mode","name":"history_audio_mode","type":"COMBO","widget":{"name":"history_audio_mode"},"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"iteration_index","locked":null,"name":"iteration_index","nameLocked":null,"removable":null,"shape":7,"type":"INT","widget":{"name":"iteration_index"},"link":212},{"localized_name":"resize_anchor","name":"resize_anchor","shape":7,"type":"BOOLEAN","widget":{"name":"resize_anchor"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_window","locked":null,"name":"source_window","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[232]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"edit_mask","locked":null,"name":"edit_mask","nameLocked":null,"removable":null,"type":"MASK","pos":null,"slot_index":null,"links":[236]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"target_audio","locked":null,"name":"target_audio","nameLocked":null,"removable":null,"type":"AUDIO","pos":null,"slot_index":null,"links":[240]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"history","locked":null,"name":"history","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[229]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"history_audio","locked":null,"name":"history_audio","nameLocked":null,"removable":null,"type":"AUDIO","pos":null,"slot_index":null,"links":[231]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"reference_video","locked":null,"name":"reference_video","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[220]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"reference_audio","locked":null,"name":"reference_audio","nameLocked":null,"removable":null,"type":"AUDIO","pos":null,"slot_index":null,"links":[224]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"history_frames","locked":null,"name":"history_frames","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":[230]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"conditioning_length","locked":null,"name":"conditioning_length","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":[219]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"target_frames","locked":null,"name":"target_frames","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"seed","locked":null,"name":"seed","nameLocked":null,"removable":null,"type":"INT","pos":null,"slot_index":null,"links":[244]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"anchor","locked":null,"name":"anchor","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"window","locked":null,"name":"window","nameLocked":null,"removable":null,"type":"H3_RELAY_WINDOW","pos":null,"slot_index":null,"links":[258]}],"title":"H3RelayWindowInputs","properties":{"Node name for S&R":"H3RelayWindowInputs"},"widgets_values":[true,24,"source",0,true],"widgets_values_named":{"reference_history":true,"fps":24,"history_audio_mode":"source","iteration_index":0,"resize_anchor":true},"color":"#28465c","bgcolor":"#1e252d"},{"id":"reference_conditioning","type":"MiniMaxH3ReferenceToVideo","pos":[1863.0599999999995,109.67999999999996],"size":[450,520],"flags":{},"order":31,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"clip","locked":null,"name":"clip","nameLocked":null,"removable":null,"type":"CLIP","pos":null,"link":216},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"vae","locked":null,"name":"vae","nameLocked":null,"removable":null,"shape":7,"type":"VAE","pos":null,"link":222},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"audio_vae","locked":null,"name":"audio_vae","nameLocked":null,"removable":null,"shape":7,"type":"VAE","pos":null,"link":223},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"ref_image_0","locked":null,"name":"ref_images.ref_image_0","nameLocked":null,"removable":null,"shape":7,"type":"IMAGE","pos":null,"link":221},{"localized_name":"ref_image_1","name":"ref_images.ref_image_1","shape":7,"type":"IMAGE","link":null},{"localized_name":"ref_image_2","name":"ref_images.ref_image_2","shape":7,"type":"IMAGE","link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"ref_video_0","locked":null,"name":"ref_videos.ref_video_0","nameLocked":null,"removable":null,"shape":7,"type":"IMAGE","pos":null,"link":220},{"localized_name":"ref_video_1","name":"ref_videos.ref_video_1","shape":7,"type":"IMAGE","link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"ref_video_audio_0","locked":null,"name":"ref_video_audios.ref_video_audio_0","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":null},{"localized_name":"ref_video_audio_1","name":"ref_video_audios.ref_video_audio_1","shape":7,"type":"AUDIO","link":null},{"localized_name":"ref_video_audio_2","name":"ref_video_audios.ref_video_audio_2","shape":7,"type":"AUDIO","link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"ref_audio_0","locked":null,"name":"ref_audios.ref_audio_0","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":224},{"localized_name":"ref_audio_1","name":"ref_audios.ref_audio_1","shape":7,"type":"AUDIO","link":null},{"localized_name":"提示词","name":"prompt","type":"STRING","widget":{"name":"prompt"},"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"宽度","locked":null,"name":"width","nameLocked":null,"removable":null,"type":"INT","widget":{"name":"width"},"link":217},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"高度","locked":null,"name":"height","nameLocked":null,"removable":null,"type":"INT","widget":{"name":"height"},"link":218},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"长度","locked":null,"name":"length","nameLocked":null,"removable":null,"type":"INT","widget":{"name":"length"},"link":219},{"localized_name":"参考图像尺寸","name":"ref_image_size","type":"COMBO","widget":{"name":"ref_image_size"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"正向","locked":null,"name":"positive","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"slot_index":null,"links":[225]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"Latent","locked":null,"name":"LATENT","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"slot_index":null,"links":[226]}],"title":"H3 prompt · reference conditioning","properties":{"Node name for S&R":"MiniMaxH3ReferenceToVideo"},"widgets_values":["Replace the person in <Video 1> with the character shown in <Picture 1>. \n\nsubject_definitions:\n<Subject 1> is the replacement character whose appearance comes from <Picture 1> and whose performance comes from the person being replaced in <Video 1>. Preserve the reference character's facial features, hairstyle, skin tone, body proportions, clothing, colors, and distinctive visual style. The reference image supplies appearance only, not the character's pose, expression, background, or framing.\n<Subject 2> is the surrounding scene from <Video 1>, including its background, lighting, objects, and any people other than the person being replaced.\n<Video 1> is the source video being edited and supplies the shot composition, camera movement, timing, and sequence of actions.\n\nsummary:\n[video editing + reference generation] The target video is an edited version of <Video 1>. Replace the original person with <Subject 1>, transferring their complete visible performance to the reference character while preserving <Subject 2> and the source video's framing and timing.\n\nretention_analysis:\n<Subject 1> (throughout [Shot 1]): fully_preserved - maintain the character's referenced identity, clothing, proportions, and visual style consistently as the character performs the source person's movements.\n<Subject 2> (throughout [Shot 1]): fully_preserved - retain the surrounding scene and its changes over time.\n<Video 1>: partially_preserved - retain composition, camera motion, action timing, and duration; replace only the selected person's appearance.\n\ndetailed_description:\nPreserve the source scene's visual treatment while retaining the replacement character's distinctive design. Adapt illumination, shading, and perspective to the source scene.\n\n[Shot 1] Begin with the same composition and camera viewpoint as <Video 1>. <Subject 1> occupies the original person's position and follows their movement through the frame. Match the original performance moment by moment: body posture, gestures, head turns, gaze, blinking, facial expressions, and visible mouth movements.\n\nMaintain the reference character's identity through every expression and viewing angle. Hair and clothing move naturally with the transferred performance. Preserve interactions with source-scene objects and the ordering of foreground and background occlusions.\n\nKeep the source video's crop and shot scale. Show only the portions of the replacement character that belong within that framing; do not widen the shot to reproduce the full-body reference. Do not import the reference image's background, static pose, or handheld props. Preserve the source camera movement and action timing through the final frame.\n\noverall_soundscape:\nRetain the source clip's existing sound without adding new dialogue or sound effects.\n\nnon_diegetic_music:\nRetain existing source music, if present; add no new music.",1344,768,124,"match"],"widgets_values_named":{"prompt":"Replace the person in <Video 1> with the character shown in <Picture 1>. \n\nsubject_definitions:\n<Subject 1> is the replacement character whose appearance comes from <Picture 1> and whose performance comes from the person being replaced in <Video 1>. Preserve the reference character's facial features, hairstyle, skin tone, body proportions, clothing, colors, and distinctive visual style. The reference image supplies appearance only, not the character's pose, expression, background, or framing.\n<Subject 2> is the surrounding scene from <Video 1>, including its background, lighting, objects, and any people other than the person being replaced.\n<Video 1> is the source video being edited and supplies the shot composition, camera movement, timing, and sequence of actions.\n\nsummary:\n[video editing + reference generation] The target video is an edited version of <Video 1>. Replace the original person with <Subject 1>, transferring their complete visible performance to the reference character while preserving <Subject 2> and the source video's framing and timing.\n\nretention_analysis:\n<Subject 1> (throughout [Shot 1]): fully_preserved - maintain the character's referenced identity, clothing, proportions, and visual style consistently as the character performs the source person's movements.\n<Subject 2> (throughout [Shot 1]): fully_preserved - retain the surrounding scene and its changes over time.\n<Video 1>: partially_preserved - retain composition, camera motion, action timing, and duration; replace only the selected person's appearance.\n\ndetailed_description:\nPreserve the source scene's visual treatment while retaining the replacement character's distinctive design. Adapt illumination, shading, and perspective to the source scene.\n\n[Shot 1] Begin with the same composition and camera viewpoint as <Video 1>. <Subject 1> occupies the original person's position and follows their movement through the frame. Match the original performance moment by moment: body posture, gestures, head turns, gaze, blinking, facial expressions, and visible mouth movements.\n\nMaintain the reference character's identity through every expression and viewing angle. Hair and clothing move naturally with the transferred performance. Preserve interactions with source-scene objects and the ordering of foreground and background occlusions.\n\nKeep the source video's crop and shot scale. Show only the portions of the replacement character that belong within that framing; do not widen the shot to reproduce the full-body reference. Do not import the reference image's background, static pose, or handheld props. Preserve the source camera movement and action timing through the final frame.\n\noverall_soundscape:\nRetain the source clip's existing sound without adding new dialogue or sound effects.\n\nnon_diegetic_music:\nRetain existing source music, if present; add no new music.","width":1344,"height":768,"length":124,"ref_image_size":"match"},"color":"#303844","bgcolor":"#1e252d"},{"id":"history","type":"H3RelayApplyHistory","pos":[1880,696],"size":[450,206],"flags":{},"order":34,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"positive","locked":null,"name":"positive","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"link":225},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"latent","locked":null,"name":"latent","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"link":226},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"vae","locked":null,"name":"vae","nameLocked":null,"removable":null,"type":"VAE","pos":null,"link":227},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"audio_vae","locked":null,"name":"audio_vae","nameLocked":null,"removable":null,"type":"VAE","pos":null,"link":228},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"frames","locked":null,"name":"frames","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":229},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"audio","locked":null,"name":"audio","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":231},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"history_frames","locked":null,"name":"history_frames","nameLocked":null,"removable":null,"type":"INT","widget":{"name":"history_frames"},"link":230},{"localized_name":"first_frame_guide","name":"first_frame_guide","type":"BOOLEAN","widget":{"name":"first_frame_guide"},"link":null},{"localized_name":"target_audio_guide","name":"target_audio_guide","type":"BOOLEAN","widget":{"name":"target_audio_guide"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"条件","locked":null,"name":"CONDITIONING","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"slot_index":null,"links":[237]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"Latent","locked":null,"name":"LATENT","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"slot_index":null,"links":[234]}],"title":"H3RelayApplyHistory","properties":{"Node name for S&R":"H3RelayApplyHistory"},"widgets_values":[0,false,true],"widgets_values_named":{"history_frames":0,"first_frame_guide":false,"target_audio_guide":true},"color":"#28465c","bgcolor":"#1e252d"},{"id":"encode_source","type":"VAEEncode","pos":[1880,978],"size":[450,46],"flags":{},"order":30,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"像素","locked":null,"name":"pixels","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":232},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"vae","locked":null,"name":"vae","nameLocked":null,"removable":null,"type":"VAE","pos":null,"link":233}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"Latent","locked":null,"name":"LATENT","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"slot_index":null,"links":[235]}],"title":"VAEEncode","properties":{"Node name for S&R":"VAEEncode"},"color":"#303844","bgcolor":"#1e252d"},{"id":"edit_mask","type":"H3RelayApplyEditMask","pos":[1874.359109502489,1085.3336847064713],"size":[450,66],"flags":{},"order":36,"mode":4,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"latent","locked":null,"name":"latent","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"link":234},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_latent","locked":null,"name":"source_latent","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"link":235},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"mask","locked":null,"name":"mask","nameLocked":null,"removable":null,"type":"MASK","pos":null,"link":236}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"Latent","locked":null,"name":"LATENT","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"slot_index":null,"links":[238,242,253]}],"title":"H3RelayApplyEditMask","properties":{"Node name for S&R":"H3RelayApplyEditMask"},"color":"#28465c","bgcolor":"#1e252d"},{"id":"guide","type":"MiniMaxH3AddGuide","pos":[1885.5223189792518,1261.3410340666217],"size":[450,158],"flags":{},"order":38,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"正向","locked":null,"name":"positive","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"link":237},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"潜空间","locked":null,"name":"latent","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"link":238},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"vae","locked":null,"name":"vae","nameLocked":null,"removable":null,"shape":7,"type":"VAE","pos":null,"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"audio_vae","locked":null,"name":"audio_vae","nameLocked":null,"removable":null,"shape":7,"type":"VAE","pos":null,"link":239},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"image","locked":null,"name":"image","nameLocked":null,"removable":null,"shape":7,"type":"IMAGE","pos":null,"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"audio","locked":null,"name":"audio","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":240},{"localized_name":"frame_idx","name":"frame_idx","type":"INT","widget":{"name":"frame_idx"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"positive","locked":null,"name":"positive","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"slot_index":null,"links":[243,246,247]}],"title":"Native target guide","properties":{"Node name for S&R":"MiniMaxH3AddGuide"},"widgets_values":[0],"widgets_values_named":{"frame_idx":0},"color":"#303844","bgcolor":"#1e252d"},{"id":"sampling_memory","type":"H3RelaySamplingMemory","pos":[2430,574],"size":[320,98],"flags":{},"order":40,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"model","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":241},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"latent","locked":null,"name":"latent","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"link":242},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"conditioning","locked":null,"name":"conditioning","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"link":243},{"localized_name":"activation_memory_gib","name":"activation_memory_gib","type":"FLOAT","widget":{"name":"activation_memory_gib"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"MODEL","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"slot_index":null,"links":[245]}],"title":"H3RelaySamplingMemory","properties":{"Node name for S&R":"H3RelaySamplingMemory"},"widgets_values":[17],"widgets_values_named":{"activation_memory_gib":17},"color":"#28465c","bgcolor":"#1e252d"},{"id":"noise","type":"RandomNoise","pos":[2430,100],"size":[320,82],"flags":{},"order":32,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"噪波随机种","locked":null,"name":"noise_seed","nameLocked":null,"removable":null,"type":"INT","widget":{"name":"noise_seed"},"link":244}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"噪波","locked":null,"name":"NOISE","nameLocked":null,"removable":null,"type":"NOISE","pos":null,"slot_index":null,"links":[249]}],"properties":{"Node name for S&R":"RandomNoise"},"widgets_values":[0,"fixed"],"widgets_values_named":{"noise_seed":0,"control_after_generate":"fixed"},"color":"#303844","bgcolor":"#1e252d"},{"id":"guider","type":"CFGGuider","pos":[2810,100],"size":[320,98],"flags":{},"order":41,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":245},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"正面条件","locked":null,"name":"positive","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"link":246},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"负面条件","locked":null,"name":"negative","nameLocked":null,"removable":null,"type":"CONDITIONING","pos":null,"link":247},{"localized_name":"CFG","name":"cfg","type":"FLOAT","widget":{"name":"cfg"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"引导器","locked":null,"name":"GUIDER","nameLocked":null,"removable":null,"type":"GUIDER","pos":null,"slot_index":null,"links":[250]}],"title":"CFGGuider","properties":{"Node name for S&R":"CFGGuider"},"widgets_values":[1],"widgets_values_named":{"cfg":1},"color":"#303844","bgcolor":"#1e252d"},{"id":"sampler","type":"KSamplerSelect","pos":[2430,258],"size":[320,58],"flags":{},"order":7,"mode":0,"inputs":[{"localized_name":"采样器名称","name":"sampler_name","type":"COMBO","widget":{"name":"sampler_name"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"采样器","locked":null,"name":"SAMPLER","nameLocked":null,"removable":null,"type":"SAMPLER","pos":null,"slot_index":null,"links":[251]}],"properties":{"Node name for S&R":"KSamplerSelect"},"widgets_values":["er_sde"],"widgets_values_named":{"sampler_name":"er_sde"},"color":"#303844","bgcolor":"#1e252d"},{"id":"schedule","type":"BasicScheduler","pos":[2430,392],"size":[320,106],"flags":{},"order":28,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"模型","locked":null,"name":"model","nameLocked":null,"removable":null,"type":"MODEL","pos":null,"link":248},{"localized_name":"调度器","name":"scheduler","type":"COMBO","widget":{"name":"scheduler"},"link":null},{"localized_name":"步数","name":"steps","type":"INT","widget":{"name":"steps"},"link":null},{"localized_name":"降噪","name":"denoise","type":"FLOAT","widget":{"name":"denoise"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"Sigmas","locked":null,"name":"SIGMAS","nameLocked":null,"removable":null,"type":"SIGMAS","pos":null,"slot_index":null,"links":[252]}],"properties":{"Node name for S&R":"BasicScheduler"},"widgets_values":["normal",8,1],"widgets_values_named":{"scheduler":"normal","steps":8,"denoise":1},"color":"#303844","bgcolor":"#1e252d"},{"id":"sample","type":"SamplerCustomAdvanced","pos":[2803.95,236.49],"size":[320,326.00000000000006],"flags":{},"order":42,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"噪波","locked":null,"name":"noise","nameLocked":null,"removable":null,"type":"NOISE","pos":null,"link":249},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"引导器","locked":null,"name":"guider","nameLocked":null,"removable":null,"type":"GUIDER","pos":null,"link":250},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"采样器","locked":null,"name":"sampler","nameLocked":null,"removable":null,"type":"SAMPLER","pos":null,"link":251},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"西格玛","locked":null,"name":"sigmas","nameLocked":null,"removable":null,"type":"SIGMAS","pos":null,"link":252},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"Latent图像","locked":null,"name":"latent_image","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"link":253}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"Latent","locked":null,"name":"output","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"slot_index":null,"links":[254]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"降噪Latent","locked":null,"name":"denoised_output","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"slot_index":null,"links":null}],"properties":{"Node name for S&R":"SamplerCustomAdvanced"},"widgets_values":[],"widgets_values_named":{},"color":"#303844","bgcolor":"#1e252d"},{"id":"separate","type":"LTXVSeparateAVLatent","pos":[2810,456],"size":[320,46],"flags":{},"order":43,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"音视频潜空间","locked":null,"name":"av_latent","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"link":254}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"video_latent","locked":null,"name":"video_latent","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"slot_index":null,"links":[255]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"audio_latent","locked":null,"name":"audio_latent","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"slot_index":null,"links":null}],"title":"LTXVSeparateAVLatent","properties":{"Node name for S&R":"LTXVSeparateAVLatent"},"color":"#303844","bgcolor":"#1e252d"},{"id":"decode","type":"VAEDecode","pos":[2810,578],"size":[320,46],"flags":{},"order":44,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"Latent","locked":null,"name":"samples","nameLocked":null,"removable":null,"type":"LATENT","pos":null,"link":255},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"vae","locked":null,"name":"vae","nameLocked":null,"removable":null,"type":"VAE","pos":null,"link":256}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"IMAGE","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[257]}],"title":"VAEDecode","properties":{"Node name for S&R":"VAEDecode"},"color":"#303844","bgcolor":"#1e252d"},{"id":"append","type":"H3RelayAppendWindow","pos":[3230,100],"size":[550,126],"flags":{},"order":45,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"frames","locked":null,"name":"frames","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":257},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"window","locked":null,"name":"window","nameLocked":null,"removable":null,"type":"H3_RELAY_WINDOW","pos":null,"link":258},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"previous","locked":null,"name":"previous","nameLocked":null,"removable":null,"shape":7,"type":"H3_RELAY_WINDOW_STATE","pos":null,"link":259},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"audio","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,"localized_name":"initial_history","locked":null,"name":"initial_history","nameLocked":null,"removable":null,"shape":7,"type":"IMAGE","pos":null,"link":null},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"initial_history_audio","locked":null,"name":"initial_history_audio","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"H3_RELAY_WINDOW_STATE","locked":null,"name":"H3_RELAY_WINDOW_STATE","nameLocked":null,"removable":null,"type":"H3_RELAY_WINDOW_STATE","pos":null,"slot_index":null,"links":[260,261]}],"title":"H3RelayAppendWindow","properties":{"Node name for S&R":"H3RelayAppendWindow"},"color":"#28465c","bgcolor":"#1e252d"},{"id":"end","type":"EndLoop","pos":[3230,302],"size":[550,98],"flags":{},"order":46,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"output_value","locked":null,"name":"output_value","nameLocked":null,"removable":null,"shape":7,"type":"*","pos":null,"link":260},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"next_iteration_value","locked":null,"name":"next_iteration_value","nameLocked":null,"removable":null,"shape":7,"type":"*","pos":null,"link":261},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"termination0","locked":null,"name":"terminations.termination0","nameLocked":null,"removable":null,"shape":7,"type":"*","pos":null,"link":null},{"localized_name":"accumulate","name":"accumulate","type":"BOOLEAN","widget":{"name":"accumulate"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"outputs","locked":null,"name":"outputs","nameLocked":null,"removable":null,"shape":6,"type":"H3_RELAY_WINDOW_STATE","pos":null,"slot_index":null,"links":[262]}],"title":"EndLoop","properties":{"Node name for S&R":"EndLoop"},"widgets_values":[false],"widgets_values_named":{"accumulate":false},"color":"#303844","bgcolor":"#1e252d"},{"id":"finish","type":"H3RelayFinishWindows","pos":[3226.277012271646,459.8670531771217],"size":[550,118],"flags":{},"order":47,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"state","locked":null,"name":"state","nameLocked":null,"removable":null,"type":"H3_RELAY_WINDOW_STATE","pos":null,"link":262},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"source_audio","locked":null,"name":"source_audio","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":263},{"localized_name":"audio_mode","name":"audio_mode","type":"COMBO","widget":{"name":"audio_mode"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"frames","locked":null,"name":"frames","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"slot_index":null,"links":[264]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"audio","locked":null,"name":"audio","nameLocked":null,"removable":null,"type":"AUDIO","pos":null,"slot_index":null,"links":[266]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"fps","locked":null,"name":"fps","nameLocked":null,"removable":null,"type":"FLOAT","pos":null,"slot_index":null,"links":[265]},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"report","locked":null,"name":"report","nameLocked":null,"removable":null,"type":"STRING","pos":null,"slot_index":null,"links":null}],"title":"H3RelayFinishWindows","properties":{"Node name for S&R":"H3RelayFinishWindows"},"widgets_values":["source"],"widgets_values_named":{"audio_mode":"source"},"color":"#28465c","bgcolor":"#1e252d"},{"id":"video","type":"CreateVideo","pos":[3230,670],"size":[550,150],"flags":{},"order":48,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"图像","locked":null,"name":"images","nameLocked":null,"removable":null,"type":"IMAGE","pos":null,"link":264},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"音频","locked":null,"name":"audio","nameLocked":null,"removable":null,"shape":7,"type":"AUDIO","pos":null,"link":266},{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"帧率","locked":null,"name":"fps","nameLocked":null,"removable":null,"type":"FLOAT","widget":{"name":"fps"},"link":265},{"localized_name":"bit_depth","name":"bit_depth","shape":7,"type":"COMBO","widget":{"name":"bit_depth"},"link":null},{"localized_name":"color_space","name":"color_space","shape":7,"type":"COMBO","widget":{"name":"color_space"},"link":null},{"localized_name":"codec","name":"codec","shape":7,"type":"COMBO","widget":{"name":"codec"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"视频","locked":null,"name":"VIDEO","nameLocked":null,"removable":null,"type":"VIDEO","pos":null,"slot_index":null,"links":[267]}],"title":"CreateVideo","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"},"color":"#303844","bgcolor":"#1e252d"},{"id":"save","type":"SaveVideo","pos":[3230,896],"size":[550,696],"flags":{},"order":49,"mode":0,"inputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"视频","locked":null,"name":"video","nameLocked":null,"removable":null,"type":"VIDEO","pos":null,"link":267},{"localized_name":"文件名前缀","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null},{"localized_name":"格式","name":"format","type":"COMFY_DYNAMICCOMBO_V3","widget":{"name":"format"},"link":null},{"localized_name":"编解码器","name":"format.codec","type":"COMFY_DYNAMICCOMBO_V3","widget":{"name":"format.codec"},"link":null},{"localized_name":"encoding","name":"format.codec.encoding","shape":7,"type":"COMFY_DYNAMICCOMBO_V3","widget":{"name":"format.codec.encoding"},"link":null},{"localized_name":"crf","name":"format.codec.encoding.crf","type":"FLOAT","widget":{"name":"format.codec.encoding.crf"},"link":null},{"localized_name":"编码器","name":"codec","shape":7,"type":"COMFY_DYNAMICCOMBO_V3","widget":{"name":"codec"},"link":null}],"outputs":[{"color_off":null,"color_on":null,"dir":null,"label":null,"localized_name":"video","locked":null,"name":"video","nameLocked":null,"removable":null,"type":"VIDEO","pos":null,"slot_index":null,"links":null}],"title":"Save final video","properties":{},"widgets_values":["h3-relay/character-swap","mp4","h264","re-encode",16,"auto"],"widgets_values_named":{"filename_prefix":"h3-relay/character-swap","format":"mp4","format.codec":"h264","format.codec.encoding":"re-encode","format.codec.encoding.crf":16,"codec":"auto"},"color":"#603d40","bgcolor":"#1e252d"},{"id":1,"type":"MarkdownNote","pos":[-1640,100],"size":[740,610],"flags":{},"order":8,"mode":0,"inputs":[],"outputs":[],"title":"Note: Model Links","properties":{},"widgets_values":["# Model Links\n\nDownload each file into the named folder under **ComfyUI/models/**.\n\n**diffusion_models/**\n\n- [minimax_h3_ref2va_pruned_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/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**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**checkpoints/**\n\n- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors)\n\n**loras/**\n\n- [minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors](https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/main/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors)\n- [h3_character_swap_v1.5.safetensors](https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/resolve/main/h3_character_swap_v1.5.safetensors)\n\n**Character Swap V1.5 + FL2V Turbo 8-step:** both strengths 1.0.\n\nRefresh model lists after downloading. Models retain their upstream licenses."],"widgets_values_named":{"text":"# Model Links\n\nDownload each file into the named folder under **ComfyUI/models/**.\n\n**diffusion_models/**\n\n- [minimax_h3_ref2va_pruned_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/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**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**checkpoints/**\n\n- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors)\n\n**loras/**\n\n- [minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors](https://huggingface.co/lightx2v/Minimax-h3-Turbo/resolve/main/minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors)\n- [h3_character_swap_v1.5.safetensors](https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/resolve/main/h3_character_swap_v1.5.safetensors)\n\n**Character Swap V1.5 + FL2V Turbo 8-step:** both strengths 1.0.\n\nRefresh model lists after downloading. Models retain their upstream licenses."},"color":"#443b27","bgcolor":"#29251d"},{"id":2,"type":"MarkdownNote","pos":[-1640,810],"size":[740,920],"flags":{},"order":9,"mode":0,"inputs":[],"outputs":[],"title":"Note: Model Storage & Custom Nodes","properties":{},"widgets_values":["# Model Storage Location\n\n```text\nComfyUI/\n└── models/\n    ├── diffusion_models/\n    │   └── minimax_h3_ref2va_pruned_int8_convrot.safetensors\n    ├── text_encoders/\n    │   └── qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors\n    ├── vae/\n    │   ├── minimax_h3_video_vae_fp16.safetensors\n    │   └── minimax_h3_audio_vae_fp32.safetensors\n    ├── checkpoints/\n    │   └── sam3.1_multiplex_fp16.safetensors\n    └── loras/\n        ├── minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors\n        └── h3_character_swap_v1.5.safetensors\n```\n\nSelect these files in the matching loaders. An existing shared model directory also works when ComfyUI is configured to use it.\n\n**V1.5 filename:** the saved LoRA loader uses `h3-v2-challenge-eval-20261013/v2-1000.safetensors`, the validation alias for V1.5. Select your downloaded `h3_character_swap_v1.5.safetensors` in that loader, or keep the same subfolder/alias. Both names refer to the same weights.\n\n## Custom nodes\n\nInstall [H3 Relay](https://github.com/akatz-ai/h3-relay) under `ComfyUI/custom_nodes/h3-relay/`. This canvas requires the **Relay 2.0 toolkit**. Use a current ComfyUI with native H3, SAM3 and Start Loop / End Loop support; restart after installing nodes. FFmpeg and FFprobe must be on PATH.\n\nBlue nodes are H3 Relay helpers; the surrounding groups show where they fit. Green nodes are user inputs. Red nodes save output."],"widgets_values_named":{"text":"# Model Storage Location\n\n```text\nComfyUI/\n└── models/\n    ├── diffusion_models/\n    │   └── minimax_h3_ref2va_pruned_int8_convrot.safetensors\n    ├── text_encoders/\n    │   └── qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors\n    ├── vae/\n    │   ├── minimax_h3_video_vae_fp16.safetensors\n    │   └── minimax_h3_audio_vae_fp32.safetensors\n    ├── checkpoints/\n    │   └── sam3.1_multiplex_fp16.safetensors\n    └── loras/\n        ├── minimax_h3_fl2v_turbo_8step_v1.0_768p_comfyui_bf16.safetensors\n        └── h3_character_swap_v1.5.safetensors\n```\n\nSelect these files in the matching loaders. An existing shared model directory also works when ComfyUI is configured to use it.\n\n**V1.5 filename:** the saved LoRA loader uses `h3-v2-challenge-eval-20261013/v2-1000.safetensors`, the validation alias for V1.5. Select your downloaded `h3_character_swap_v1.5.safetensors` in that loader, or keep the same subfolder/alias. Both names refer to the same weights.\n\n## Custom nodes\n\nInstall [H3 Relay](https://github.com/akatz-ai/h3-relay) under `ComfyUI/custom_nodes/h3-relay/`. This canvas requires the **Relay 2.0 toolkit**. Use a current ComfyUI with native H3, SAM3 and Start Loop / End Loop support; restart after installing nodes. FFmpeg and FFprobe must be on PATH.\n\nBlue nodes are H3 Relay helpers; the surrounding groups show where they fit. Green nodes are user inputs. Red nodes save output."},"color":"#443b27","bgcolor":"#29251d"},{"id":3,"type":"MarkdownNote","pos":[-820,100],"size":[700,450],"flags":{},"order":10,"mode":0,"inputs":[],"outputs":[],"title":"READ ME · Setup & defaults","properties":{},"widgets_values":["# Character Swap V1.5 · H3 Relay 2.0\n\n1. Upload a source video and a character image or sheet in **User inputs**.\n2. **Prepare Source** sets 24 fps and a canvas aligned to 32 pixels. Choose 480 or 768; duration 0 keeps the entire clip.\n3. In **SAM person description**, identify the person to replace. Inspect the expanded mask preview.\n4. In **H3 prompt**, describe the replacement and the performance to preserve. `<Picture 1>` is the character; `<Video 1>` is the source performance.\n5. Run and inspect every window boundary in the saved video.\n\n**Defaults:** both LoRAs at 1.0; 8 steps, `er_sde` / `normal`, CFG 1. This canvas has no separate scene anchor.\n\nFinal delivery uses the original source soundtrack. Start with one short continuous shot."],"widgets_values_named":{"text":"# Character Swap V1.5 · H3 Relay 2.0\n\n1. Upload a source video and a character image or sheet in **User inputs**.\n2. **Prepare Source** sets 24 fps and a canvas aligned to 32 pixels. Choose 480 or 768; duration 0 keeps the entire clip.\n3. In **SAM person description**, identify the person to replace. Inspect the expanded mask preview.\n4. In **H3 prompt**, describe the replacement and the performance to preserve. `<Picture 1>` is the character; `<Video 1>` is the source performance.\n5. Run and inspect every window boundary in the saved video.\n\n**Defaults:** both LoRAs at 1.0; 8 steps, `er_sde` / `normal`, CFG 1. This canvas has no separate scene anchor.\n\nFinal delivery uses the original source soundtrack. Start with one short continuous shot."},"color":"#443b27","bgcolor":"#29251d"},{"id":4,"type":"MarkdownNote","pos":[-820,650],"size":[700,610],"flags":{},"order":11,"mode":0,"inputs":[],"outputs":[],"title":"Note: Size Settings Reference","properties":{},"widgets_values":["# MiniMax H3 · Size Settings Reference\n\n**24 fps · width and height divisible by 32.** Match the source aspect ratio. More pixels, longer windows and larger reference images require more memory.\n\n| Approx. MP | Landscape reference |\n|---|---|\n| 0.21 | 608 × 352 |\n| 0.31 | 736 × 416 |\n| 0.41 | 864 × 480 |\n| 0.52 | 960 × 544 |\n| 0.64 | 1056 × 608 |\n| 0.74 | 1152 × 640 |\n| 0.82 | 1216 × 672 |\n| 0.94 | 1280 × 736 |\n| 1.03 | 1344 × 768 |\n\nThese are manually chosen reference sizes. **1344 × 768 exceeds a strict 1 MP cap.**\n\n**Prepare Source uses strict pixel caps**, not a fixed output height. For an ideal 16:9 input, 480 (≤0.5 MP) gives **928 × 512**; 768 (≤1 MP) gives **1344 × 736**. Portrait inputs swap those dimensions; square inputs give 704 × 704 or 992 × 992. Already aligned sources within the cap keep their size. The node outputs the actual width and height."],"widgets_values_named":{"text":"# MiniMax H3 · Size Settings Reference\n\n**24 fps · width and height divisible by 32.** Match the source aspect ratio. More pixels, longer windows and larger reference images require more memory.\n\n| Approx. MP | Landscape reference |\n|---|---|\n| 0.21 | 608 × 352 |\n| 0.31 | 736 × 416 |\n| 0.41 | 864 × 480 |\n| 0.52 | 960 × 544 |\n| 0.64 | 1056 × 608 |\n| 0.74 | 1152 × 640 |\n| 0.82 | 1216 × 672 |\n| 0.94 | 1280 × 736 |\n| 1.03 | 1344 × 768 |\n\nThese are manually chosen reference sizes. **1344 × 768 exceeds a strict 1 MP cap.**\n\n**Prepare Source uses strict pixel caps**, not a fixed output height. For an ideal 16:9 input, 480 (≤0.5 MP) gives **928 × 512**; 768 (≤1 MP) gives **1344 × 736**. Portrait inputs swap those dimensions; square inputs give 704 × 704 or 992 × 992. Already aligned sources within the cap keep their size. The node outputs the actual width and height."},"color":"#443b27","bgcolor":"#29251d"},{"id":5,"type":"MarkdownNote","pos":[-820,1360],"size":[700,820],"flags":{},"order":12,"mode":0,"inputs":[],"outputs":[],"title":"Note: Windows, History & Review","properties":{},"widgets_values":["# Windows, history & review\n\nH3 window sizes follow **17n + 5**: 22, 39, 56, 73, 90, 107, 124…\n\n| Window | Duration at 24 fps |\n|---|---|\n| 22 frames | 0.92 s |\n| 39 frames | 1.63 s |\n| 107 frames | 4.46 s |\n| 124 frames | 5.17 s |\n\n**History 18** carries generated context into the next window. Keep history smaller than the window. The planner owns source ranges and seeds; native loops execute them. Assembly trims repeated overlap and padding back to the source frame count.\n\nKeep the loop connections intact. The groups separate inputs, models, masks, planning, conditioning, sampling and output; they do not change execution.\n\n**Masking:** SAM selects and tracks the source person; Relay recovery/expansion prepares the edit mask. The final video is raw decoded generation, without pasting the subject through a mask. Inspect identity, hands, hair, occlusions and continuation seams.\n\nThe app adds reviewed anchors and independent segment rerenders on top of this same toolkit.\n\n**Memory:** Text Stage Memory and Sampling Workspace manage stage transitions. They respect explicit high-VRAM mode. Normal offloading was required for the unchanged fixture on 24 GB cards; this is not a blanket memory-fit guarantee."],"widgets_values_named":{"text":"# Windows, history & review\n\nH3 window sizes follow **17n + 5**: 22, 39, 56, 73, 90, 107, 124…\n\n| Window | Duration at 24 fps |\n|---|---|\n| 22 frames | 0.92 s |\n| 39 frames | 1.63 s |\n| 107 frames | 4.46 s |\n| 124 frames | 5.17 s |\n\n**History 18** carries generated context into the next window. Keep history smaller than the window. The planner owns source ranges and seeds; native loops execute them. Assembly trims repeated overlap and padding back to the source frame count.\n\nKeep the loop connections intact. The groups separate inputs, models, masks, planning, conditioning, sampling and output; they do not change execution.\n\n**Masking:** SAM selects and tracks the source person; Relay recovery/expansion prepares the edit mask. The final video is raw decoded generation, without pasting the subject through a mask. Inspect identity, hands, hair, occlusions and continuation seams.\n\nThe app adds reviewed anchors and independent segment rerenders on top of this same toolkit.\n\n**Memory:** Text Stage Memory and Sampling Workspace manage stage transitions. They respect explicit high-VRAM mode. Normal offloading was required for the unchanged fixture on 24 GB cards; this is not a blanket memory-fit guarantee."},"color":"#443b27","bgcolor":"#29251d"}],"links":[[179,"model",0,"shift",0,"MODEL"],[180,"shift",0,"attention",0,"MODEL"],[181,"text",0,"text_device",0,"CLIP"],[182,"text_device",0,"text_memory",0,"CLIP"],[183,"attention",0,"turbo",0,"MODEL"],[184,"turbo",0,"adapter",0,"MODEL"],[185,"source",0,"prepare",0,"VIDEO"],[186,"prepare",0,"dimensions",0,"IMAGE"],[187,"sam",1,"subject",0,"CLIP"],[188,"prepare",0,"first_frame",0,"IMAGE"],[189,"sam",0,"detect",0,"MODEL"],[190,"first_frame",0,"detect",1,"IMAGE"],[191,"subject",0,"detect",2,"CONDITIONING"],[192,"detect",0,"select",0,"MASK"],[193,"sam",0,"track",1,"MODEL"],[194,"prepare",0,"track",0,"IMAGE"],[195,"select",0,"track",2,"MASK"],[196,"subject",0,"track",3,"CONDITIONING"],[197,"track",0,"mask",0,"SAM3_TRACK_DATA"],[198,"mask",0,"recover",0,"MASK"],[199,"prepare",0,"recover",1,"IMAGE"],[200,"prepare",5,"recover",5,"INT"],[201,"sam",0,"recover",2,"MODEL"],[202,"subject",0,"recover",3,"CONDITIONING"],[203,"select",1,"recover",4,"H3_SUBJECT_SELECTION"],[204,"recover",0,"expand_mask",0,"MASK"],[205,"prepare",0,"expand_mask",1,"IMAGE"],[206,"prepare",5,"expand_mask",2,"INT"],[207,"expand_mask",1,"mask_preview",0,"IMAGE"],[208,"prepare",5,"plan",1,"INT"],[210,"prepare",0,"window",0,"IMAGE"],[211,"plan",3,"window",1,"H3_RELAY_WINDOWS"],[213,"start",4,"window",2,"H3_RELAY_WINDOW_STATE"],[214,"prepare",1,"window",3,"AUDIO"],[225,"reference_conditioning",0,"history",0,"CONDITIONING"],[226,"reference_conditioning",1,"history",1,"LATENT"],[227,"video_vae",0,"history",2,"VAE"],[228,"audio_vae",0,"history",3,"VAE"],[229,"window",3,"history",4,"IMAGE"],[230,"window",7,"history",6,"INT"],[231,"window",4,"history",5,"AUDIO"],[232,"window",0,"encode_source",0,"IMAGE"],[233,"video_vae",0,"encode_source",1,"VAE"],[234,"history",1,"edit_mask",0,"LATENT"],[235,"encode_source",0,"edit_mask",1,"LATENT"],[236,"window",1,"edit_mask",2,"MASK"],[237,"history",0,"guide",0,"CONDITIONING"],[238,"edit_mask",0,"guide",1,"LATENT"],[239,"audio_vae",0,"guide",3,"VAE"],[240,"window",2,"guide",5,"AUDIO"],[241,"adapter",0,"sampling_memory",0,"MODEL"],[242,"edit_mask",0,"sampling_memory",1,"LATENT"],[243,"guide",0,"sampling_memory",2,"CONDITIONING"],[244,"window",10,"noise",0,"INT"],[245,"sampling_memory",0,"guider",0,"MODEL"],[246,"guide",0,"guider",1,"CONDITIONING"],[247,"guide",0,"guider",2,"CONDITIONING"],[248,"adapter",0,"schedule",0,"MODEL"],[249,"noise",0,"sample",0,"NOISE"],[250,"guider",0,"sample",1,"GUIDER"],[251,"sampler",0,"sample",2,"SAMPLER"],[252,"schedule",0,"sample",3,"SIGMAS"],[253,"edit_mask",0,"sample",4,"LATENT"],[254,"sample",0,"separate",0,"LATENT"],[255,"separate",0,"decode",0,"LATENT"],[256,"video_vae",0,"decode",1,"VAE"],[257,"decode",0,"append",0,"IMAGE"],[258,"window",12,"append",1,"H3_RELAY_WINDOW"],[259,"start",4,"append",2,"H3_RELAY_WINDOW_STATE"],[260,"append",0,"end",0,"H3_RELAY_WINDOW_STATE"],[261,"append",0,"end",1,"H3_RELAY_WINDOW_STATE"],[262,"end",0,"finish",0,"H3_RELAY_WINDOW_STATE"],[263,"prepare",1,"finish",1,"AUDIO"],[264,"finish",0,"video",0,"IMAGE"],[265,"finish",2,"video",2,"FLOAT"],[266,"finish",1,"video",1,"AUDIO"],[212,"start",0,"window",11,"INT"],[209,"plan",2,"start",3,"INT"],[267,"video",0,"save",0,"VIDEO"],[216,"text_memory",0,"reference_conditioning",0,"CLIP"],[222,"video_vae",0,"reference_conditioning",1,"VAE"],[223,"audio_vae",0,"reference_conditioning",2,"VAE"],[221,"reference",0,"reference_conditioning",3,"IMAGE"],[220,"window",5,"reference_conditioning",6,"IMAGE"],[224,"window",6,"reference_conditioning",11,"AUDIO"],[217,"dimensions",0,"reference_conditioning",14,"INT"],[218,"dimensions",1,"reference_conditioning",15,"INT"],[219,"window",8,"reference_conditioning",16,"INT"]],"groups":[{"id":1,"title":"01 · User inputs","bounding":[-28,22,436,1328],"color":"#2b737b","flags":{}},{"id":2,"title":"02 · H3 models & LoRA","bounding":[452,22,856,798],"color":"#554477","flags":{}},{"id":3,"title":"04 · H3 Relay · window planning","bounding":[1352,22,456,1126],"color":"#396b89","flags":{}},{"id":4,"title":"05 · Reference conditioning & guides","bounding":[1852,22,506,1408],"color":"#3f596e","flags":{}},{"id":5,"title":"06 · Sampling & decoding","bounding":[2402,22,756,680],"color":"#746345","flags":{}},{"id":6,"title":"07 · H3 Relay · assembly & output","bounding":[3202,22,606,1058],"color":"#3e6e56","flags":{}},{"id":7,"title":"03 · SAM · person selection & masks","bounding":[-28,1382,1336,922],"color":"#75694b","flags":{}}],"config":{},"extra":{"ds":{"scale":0.8863848717161313,"offset":[-1283.9512691047612,-98.32110005966179]},"frontendVersion":"1.53.6"},"version":0.4}