{"id":"0ea64c1e-fb4a-4276-8909-59cb918c6e05","revision":0,"last_node_id":28,"last_link_id":30,"nodes":[{"id":2,"type":"VHS_VideoInfo","pos":[-2716.4020637403687,5763.855097609503],"size":[234.931640625,206],"flags":{},"order":10,"mode":0,"inputs":[{"localized_name":"video_info","name":"video_info","type":"VHS_VIDEOINFO","link":19}],"outputs":[{"localized_name":"source_fps🟨","name":"source_fps🟨","type":"FLOAT","links":[]},{"localized_name":"source_frame_count🟨","name":"source_frame_count🟨","type":"INT","links":[]},{"localized_name":"source_duration🟨","name":"source_duration🟨","type":"FLOAT","links":[]},{"localized_name":"source_width🟨","name":"source_width🟨","type":"INT","links":[]},{"localized_name":"source_height🟨","name":"source_height🟨","type":"INT","links":[]},{"localized_name":"loaded_fps🟦","name":"loaded_fps🟦","type":"FLOAT","links":[29]},{"localized_name":"loaded_frame_count🟦","name":"loaded_frame_count🟦","type":"INT","links":[]},{"localized_name":"loaded_duration🟦","name":"loaded_duration🟦","type":"FLOAT","links":[]},{"localized_name":"loaded_width🟦","name":"loaded_width🟦","type":"INT","links":[]},{"localized_name":"loaded_height🟦","name":"loaded_height🟦","type":"INT","links":[]}],"properties":{"Node name for S&R":"VHS_VideoInfo","aux_id":"kosinkadink/ComfyUI-VideoHelperSuite"},"widgets_values":{}},{"id":3,"type":"CheckpointLoaderSimple","pos":[-3134.728159555887,6073.892303596609],"size":[354.9927173862061,102.45428929628542],"flags":{},"order":0,"mode":0,"inputs":[{"localized_name":"ckpt_name","name":"ckpt_name","type":"COMBO","widget":{"name":"ckpt_name"},"link":null}],"outputs":[{"localized_name":"MODEL","name":"MODEL","type":"MODEL","links":[4]},{"localized_name":"CLIP","name":"CLIP","type":"CLIP","links":[2]},{"localized_name":"VAE","name":"VAE","type":"VAE","links":[]}],"title":"Load SAM3 model","properties":{"Node name for S&R":"CheckpointLoaderSimple","models":[{"name":"sam3.1_multiplex_fp16.safetensors","url":"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors","directory":"checkpoints"}]},"widgets_values":["sam3.1_multiplex_fp16.safetensors"],"widgets_values_named":{"ckpt_name":"sam3.1_multiplex_fp16.safetensors"}},{"id":4,"type":"CLIPTextEncode","pos":[-2747.1838686373703,6083.464688802785],"size":[317.6562348302532,88],"flags":{},"order":7,"mode":0,"inputs":[{"localized_name":"clip","name":"clip","type":"CLIP","link":2},{"localized_name":"text","name":"text","type":"STRING","widget":{"name":"text"},"link":null}],"outputs":[{"localized_name":"CONDITIONING","name":"CONDITIONING","type":"CONDITIONING","links":[5]}],"title":"SAM3 Prompt","properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["person"],"widgets_values_named":{"text":"person"}},{"id":5,"type":"SAM3_VideoTrack","pos":[-2395.0095407035824,5996.02859381103],"size":[275.80859375,166],"flags":{},"order":9,"mode":0,"inputs":[{"localized_name":"images","name":"images","type":"IMAGE","link":21},{"localized_name":"model","name":"model","type":"MODEL","link":4},{"localized_name":"initial_mask","name":"initial_mask","shape":7,"type":"MASK","link":null},{"localized_name":"conditioning","name":"conditioning","shape":7,"type":"CONDITIONING","link":5},{"localized_name":"detection_threshold","name":"detection_threshold","type":"FLOAT","widget":{"name":"detection_threshold"},"link":null},{"localized_name":"max_objects","name":"max_objects","type":"INT","widget":{"name":"max_objects"},"link":null},{"localized_name":"detect_interval","name":"detect_interval","type":"INT","widget":{"name":"detect_interval"},"link":null}],"outputs":[{"localized_name":"track_data","name":"track_data","type":"SAM3_TRACK_DATA","links":[6]}],"properties":{"Node name for S&R":"SAM3_VideoTrack"},"widgets_values":[0.5,0,1],"widgets_values_named":{"detection_threshold":0.5,"max_objects":0,"detect_interval":1}},{"id":6,"type":"SAM3_TrackToMask","pos":[-2085.4302381968605,5997.026156299212],"size":[210,60.62199883829908],"flags":{},"order":11,"mode":0,"inputs":[{"localized_name":"track_data","name":"track_data","type":"SAM3_TRACK_DATA","link":6},{"localized_name":"object_indices","name":"object_indices","type":"STRING","widget":{"name":"object_indices"},"link":null}],"outputs":[{"localized_name":"masks","name":"masks","type":"MASK","links":[11]}],"properties":{"Node name for S&R":"SAM3_TrackToMask"},"widgets_values":[""],"widgets_values_named":{"object_indices":""}},{"id":16,"type":"VHS_LoadVideoPath","pos":[-3012.347033285931,5598.448038727984],"size":[238.14453125,423.0815474483945],"flags":{},"order":8,"mode":0,"inputs":[{"localized_name":"meta_batch","name":"meta_batch","shape":7,"type":"VHS_BatchManager","link":23},{"localized_name":"vae","name":"vae","shape":7,"type":"VAE","link":null},{"localized_name":"video","name":"video","type":"STRING","widget":{"name":"video"},"link":null},{"localized_name":"force_rate","name":"force_rate","type":"FLOAT","widget":{"name":"force_rate"},"link":null},{"localized_name":"custom_width","name":"custom_width","type":"INT","widget":{"name":"custom_width"},"link":null},{"localized_name":"custom_height","name":"custom_height","type":"INT","widget":{"name":"custom_height"},"link":null},{"localized_name":"frame_load_cap","name":"frame_load_cap","type":"INT","widget":{"name":"frame_load_cap"},"link":null},{"localized_name":"skip_first_frames","name":"skip_first_frames","type":"INT","widget":{"name":"skip_first_frames"},"link":null},{"localized_name":"select_every_nth","name":"select_every_nth","type":"INT","widget":{"name":"select_every_nth"},"link":null},{"localized_name":"format","name":"format","shape":7,"type":"COMBO","widget":{"name":"format"},"link":null}],"outputs":[{"localized_name":"IMAGE","name":"IMAGE","type":"IMAGE","links":[21,22]},{"localized_name":"frame_count","name":"frame_count","type":"INT","links":null},{"localized_name":"audio","name":"audio","type":"AUDIO","links":[27]},{"localized_name":"video_info","name":"video_info","type":"VHS_VIDEOINFO","links":[19]}],"properties":{"Node name for S&R":"VHS_LoadVideoPath"},"widgets_values":{"video":"\"C:\\Users\\patri\\Downloads\\5442623-uhd_3840_2160_25fps-audio.mp4\"","force_rate":0,"custom_width":0,"custom_height":0,"frame_load_cap":0,"skip_first_frames":0,"select_every_nth":1,"format":"None","videopreview":{"hidden":false,"paused":false,"params":{"filename":"\"C:\\Users\\patri\\Downloads\\5442623-uhd_3840_2160_25fps-audio.mp4\"","type":"path","format":"video/mp4\"","force_rate":0,"custom_width":0,"custom_height":0,"frame_load_cap":0,"skip_first_frames":0,"select_every_nth":1}}},"widgets_values_named":{"video":"\"C:\\Users\\patri\\Downloads\\5442623-uhd_3840_2160_25fps-audio.mp4\"","force_rate":0,"custom_width":0,"custom_height":0,"frame_load_cap":0,"skip_first_frames":0,"select_every_nth":1,"format":"None","videopreview":{"hidden":false,"paused":false,"params":{"filename":"\"C:\\Users\\patri\\Downloads\\5442623-uhd_3840_2160_25fps-audio.mp4\"","type":"path","format":"video/mp4\"","force_rate":0,"custom_width":0,"custom_height":0,"frame_load_cap":0,"skip_first_frames":0,"select_every_nth":1}}}},{"id":17,"type":"VHS_BatchManager","pos":[-3312.886140349055,5654.281902064894],"size":[256.9296875,58],"flags":{},"order":1,"mode":0,"inputs":[{"localized_name":"frames_per_batch","name":"frames_per_batch","type":"INT","widget":{"name":"frames_per_batch"},"link":null}],"outputs":[{"localized_name":"meta_batch","name":"meta_batch","type":"VHS_BatchManager","links":[23,24]}],"properties":{"Node name for S&R":"VHS_BatchManager"},"widgets_values":{"frames_per_batch":36,"count":11},"widgets_values_named":{"frames_per_batch":36,"count":11}},{"id":18,"type":"VHS_VideoCombine","pos":[-1298.0818234622686,5783.564120586065],"size":[240,262],"flags":{},"order":14,"mode":0,"inputs":[{"localized_name":"images","name":"images","type":"IMAGE","link":25},{"localized_name":"audio","name":"audio","shape":7,"type":"AUDIO","link":27},{"localized_name":"meta_batch","name":"meta_batch","shape":7,"type":"VHS_BatchManager","link":24},{"localized_name":"vae","name":"vae","shape":7,"type":"VAE","link":null},{"localized_name":"frame_rate","name":"frame_rate","type":"FLOAT","widget":{"name":"frame_rate"},"link":29},{"localized_name":"loop_count","name":"loop_count","type":"INT","widget":{"name":"loop_count"},"link":null},{"localized_name":"filename_prefix","name":"filename_prefix","type":"STRING","widget":{"name":"filename_prefix"},"link":null},{"localized_name":"format","name":"format","type":"COMBO","widget":{"name":"format"},"link":null},{"localized_name":"pingpong","name":"pingpong","type":"BOOLEAN","widget":{"name":"pingpong"},"link":null},{"localized_name":"save_output","name":"save_output","type":"BOOLEAN","widget":{"name":"save_output"},"link":null},{"localized_name":"profile","name":"profile","type":"COMBO","widget":{"name":"profile"},"link":null}],"outputs":[{"localized_name":"Filenames","name":"Filenames","type":"VHS_FILENAMES","links":null}],"properties":{"Node name for S&R":"VHS_VideoCombine"},"widgets_values":{"frame_rate":24,"loop_count":0,"filename_prefix":"background-removal","format":"video/ProRes","profile":"4444","pingpong":false,"save_output":true,"videopreview":{"hidden":false,"paused":false,"params":{"filename":"auto-alpha_00002-audio.mov","subfolder":"","type":"output","format":"video/ProRes","frame_rate":25,"workflow":"auto-alpha_00002.png","fullpath":"C:\\apps\\comfy\\common\\output\\auto-alpha_00002-audio.mov","metadata":{"kind":"video","width":3840,"height":2160,"duration":21.16,"fps":25,"frame_count":529}}}},"widgets_values_named":{"frame_rate":24,"loop_count":0,"filename_prefix":"background-removal","format":"video/ProRes","profile":"4444","pingpong":false,"save_output":true,"videopreview":{"hidden":false,"paused":false,"params":{"filename":"auto-alpha_00002-audio.mov","subfolder":"","type":"output","format":"video/ProRes","frame_rate":25,"workflow":"auto-alpha_00002.png","fullpath":"C:\\apps\\comfy\\common\\output\\auto-alpha_00002-audio.mov","metadata":{"kind":"video","width":3840,"height":2160,"duration":21.16,"fps":25,"frame_count":529}}}}},{"id":20,"type":"MarkdownNote","pos":[-3307.043592894287,5761.9407024116845],"size":[252.68094181123251,88],"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[],"title":"Batch Manager Note","properties":{},"widgets_values":["## If you get a Out of Memory error then reduce frames_to_batch value"],"widgets_values_named":{"text":"## If you get a Out of Memory error then reduce frames_to_batch value"},"color":"#432","bgcolor":"#653"},{"id":21,"type":"MarkdownNote","pos":[-3012.7651798661586,5365.25004729217],"size":[233.83635307545364,168.176823981069],"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[],"title":"Load Video Note","properties":{},"widgets_values":["## Paste the absolute path to your video\n\n## Set the frame_load_cap to a small positive number if you want to test it first. 0 = process full video."],"widgets_values_named":{"text":"## Paste the absolute path to your video\n\n## Set the frame_load_cap to a small positive number if you want to test it first. 0 = process full video."},"color":"#432","bgcolor":"#653"},{"id":23,"type":"MarkdownNote","pos":[-2738.64711949845,6224.3338815434],"size":[308.5958240848281,88],"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[],"title":"SAM3 Prompt Note","properties":{},"widgets_values":["## Put what you want to KEEP here, e.g. \"person\", \"face\", etc. Everything else is made transparent."],"widgets_values_named":{"text":"## Put what you want to KEEP here, e.g. \"person\", \"face\", etc. Everything else is made transparent."},"color":"#432","bgcolor":"#653"},{"id":25,"type":"MarkdownNote","pos":[-2082.063939329152,6105.152116166142],"size":[211.08347059433845,141.0900591226],"flags":{},"order":5,"mode":0,"inputs":[],"outputs":[],"title":"Track to Mask Note","properties":{},"widgets_values":["## You can enter comma separated indices if you only want to KEEP some of the selected items. For example, enter '0,3,5'.\n"],"widgets_values_named":{"text":"## You can enter comma separated indices if you only want to KEEP some of the selected items. For example, enter '0,3,5'.\n"},"color":"#432","bgcolor":"#653"},{"id":26,"type":"MarkdownNote","pos":[-2376.7679409892903,6213.499175600023],"size":[256.589235556567,88],"flags":{},"order":6,"mode":0,"inputs":[],"outputs":[],"title":"SAM3 Video Track Note","properties":{},"widgets_values":["## You can try increasing detect_interval to improve processing speed."],"widgets_values_named":{"text":"## You can try increasing detect_interval to improve processing speed."},"color":"#432","bgcolor":"#653"},{"id":27,"type":"InvertMask","pos":[-1832.8710652809934,5997.026156299212],"size":[210,50],"flags":{},"order":12,"mode":0,"inputs":[{"localized_name":"mask","name":"mask","type":"MASK","link":11}],"outputs":[{"localized_name":"MASK","name":"MASK","type":"MASK","links":[30]}],"properties":{"Node name for S&R":"InvertMask"}},{"id":28,"type":"JoinImageWithAlpha","pos":[-1593.499176433968,5923.924765065995],"size":[250,76],"flags":{},"order":13,"mode":0,"inputs":[{"localized_name":"image","name":"image","type":"IMAGE","link":22},{"localized_name":"alpha","name":"alpha","type":"MASK","link":30}],"outputs":[{"localized_name":"IMAGE","name":"IMAGE","type":"IMAGE","links":[25]}],"properties":{"Node name for S&R":"JoinImageWithAlpha"}}],"links":[[2,3,1,4,0,"CLIP"],[4,3,0,5,1,"MODEL"],[5,4,0,5,3,"CONDITIONING"],[6,5,0,6,0,"SAM3_TRACK_DATA"],[11,6,0,27,0,"MASK"],[19,16,3,2,0,"VHS_VIDEOINFO"],[21,16,0,5,0,"IMAGE"],[22,16,0,28,0,"IMAGE"],[23,17,0,16,0,"VHS_BatchManager"],[25,28,0,18,0,"IMAGE"],[27,16,2,18,1,"AUDIO"],[24,17,0,18,2,"VHS_BatchManager"],[29,2,5,18,4,"FLOAT"],[30,27,0,28,1,"MASK"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.9229599817706954,"offset":[3717.8693449970337,-5193.8958182642145]}},"version":0.4}