From bc7cd90f22ba220cb73c127eb7189d76b8c3b41c Mon Sep 17 00:00:00 2001 From: FuouM Date: Mon, 24 Mar 2025 10:19:12 +0700 Subject: [PATCH] update workflow to latest comfyui --- workflow/workflow_mat_anyone.json | 668 +++++++++++++++--------------- 1 file changed, 328 insertions(+), 340 deletions(-) diff --git a/workflow/workflow_mat_anyone.json b/workflow/workflow_mat_anyone.json index 460258d..09574d3 100644 --- a/workflow/workflow_mat_anyone.json +++ b/workflow/workflow_mat_anyone.json @@ -1,9 +1,222 @@ { - "id": "9d77f655-23b7-4e29-8d05-763296629f0c", - "revision": 0, "last_node_id": 43, "last_link_id": 76, "nodes": [ + { + "id": 40, + "type": "VHS_VideoInfoLoaded", + "pos": [ + -174.8192596435547, + 835.6626586914062 + ], + "size": [ + 242.013671875, + 106 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "video_info", + "type": "VHS_VIDEOINFO", + "link": 71 + } + ], + "outputs": [ + { + "name": "fps🟦", + "type": "FLOAT", + "links": [ + 74, + 75 + ] + }, + { + "name": "frame_count🟦", + "type": "INT", + "links": [] + }, + { + "name": "duration🟦", + "type": "FLOAT", + "links": null + }, + { + "name": "width🟦", + "type": "INT", + "links": [ + 65 + ] + }, + { + "name": "height🟦", + "type": "INT", + "links": [ + 66 + ] + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "5e61bcf218fe3bb7c899bbd584bbc99a9d05fb42", + "Node name for S&R": "VHS_VideoInfoLoaded" + }, + "widgets_values": {} + }, + { + "id": 5, + "type": "VHS_VideoCombine", + "pos": [ + 474.8391418457031, + 666.7745971679688 + ], + "size": [ + 315, + 533.9375 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "shape": 7, + "link": 72 + }, + { + "name": "audio", + "type": "AUDIO", + "shape": 7, + "link": null + }, + { + "name": "meta_batch", + "type": "VHS_BatchManager", + "shape": 7, + "link": null + }, + { + "name": "vae", + "type": "VAE", + "shape": 7, + "link": null + }, + { + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + }, + "link": 75 + } + ], + "outputs": [ + { + "name": "Filenames", + "type": "VHS_FILENAMES", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "5e61bcf218fe3bb7c899bbd584bbc99a9d05fb42", + "Node name for S&R": "VHS_VideoCombine" + }, + "widgets_values": { + "frame_rate": 8, + "loop_count": 0, + "filename_prefix": "Matte", + "format": "video/nvenc_h264-mp4", + "pix_fmt": "yuv420p", + "bitrate": 10, + "megabit": true, + "save_metadata": true, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "Matte_00001.mp4", + "subfolder": "", + "type": "temp", + "format": "video/nvenc_h264-mp4", + "frame_rate": 30, + "workflow": "Matte_00001.png", + "fullpath": "K:\\ComfyUI_windows_portable\\ComfyUI\\temp\\Matte_00001.mp4" + }, + "muted": false + } + } + }, + { + "id": 15, + "type": "MatAnyone", + "pos": [ + 171.0359649658203, + 475.4490966796875 + ], + "size": [ + 236.8000030517578, + 142 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "src_video", + "type": "IMAGE", + "link": 42 + }, + { + "name": "foreground_mask", + "type": "IMAGE", + "shape": 7, + "link": 68 + }, + { + "name": "foreground_MASK", + "type": "MASK", + "shape": 7, + "link": null + }, + { + "name": "solid_color", + "type": "IMAGE", + "shape": 7, + "link": 64 + } + ], + "outputs": [ + { + "name": "matte", + "type": "IMAGE", + "links": [ + 36, + 72 + ] + }, + { + "name": "green_screen", + "type": "IMAGE", + "links": [ + 73 + ] + } + ], + "properties": { + "aux_id": "FuouM/ComfyUI-MatAnyone", + "ver": "5d2c4294dbecc0f117d994a6545fa7db7cbe256f", + "Node name for S&R": "MatAnyone" + }, + "widgets_values": [ + 0, + 10 + ] + }, { "id": 3, "type": "LoadImage", @@ -21,7 +234,6 @@ "inputs": [], "outputs": [ { - "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ @@ -30,19 +242,19 @@ ] }, { - "localized_name": "MASK", "name": "MASK", "type": "MASK", "links": null } ], "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.25", "Node name for S&R": "LoadImage" }, "widgets_values": [ - "test-sample1.png", - "image", - "" + "joker_00000.png", + "image" ] }, { @@ -54,30 +266,27 @@ ], "size": [ 352.79998779296875, - 463.1999816894531 + 511.168701171875 ], "flags": {}, "order": 1, "mode": 0, "inputs": [ { - "localized_name": "meta_batch", "name": "meta_batch", - "shape": 7, "type": "VHS_BatchManager", + "shape": 7, "link": null }, { - "localized_name": "vae", "name": "vae", - "shape": 7, "type": "VAE", + "shape": 7, "link": null } ], "outputs": [ { - "localized_name": "IMAGE", "name": "IMAGE", "type": "IMAGE", "links": [ @@ -85,19 +294,16 @@ ] }, { - "localized_name": "frame_count", "name": "frame_count", "type": "INT", "links": null }, { - "localized_name": "audio", "name": "audio", "type": "AUDIO", "links": null }, { - "localized_name": "video_info", "name": "video_info", "type": "VHS_VIDEOINFO", "links": [ @@ -106,17 +312,19 @@ } ], "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "5e61bcf218fe3bb7c899bbd584bbc99a9d05fb42", "Node name for S&R": "VHS_LoadVideo" }, "widgets_values": { "video": "test-sample1.mp4", "force_rate": 0, - "force_size": "Disabled", - "custom_width": 512, - "custom_height": 512, + "custom_width": 0, + "custom_height": 0, "frame_load_cap": 0, "skip_first_frames": 0, "select_every_nth": 1, + "format": "None", "choose video to upload": "image", "videopreview": { "hidden": false, @@ -135,15 +343,102 @@ } }, { - "id": 39, - "type": "SolidColorBatched", + "id": 42, + "type": "VHS_VideoCombine", "pos": [ - -202.20913696289062, - 987.6845092773438 + 134.1608428955078, + 670.3427734375 ], "size": [ 315, - 178 + 533.9375 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "shape": 7, + "link": 73 + }, + { + "name": "audio", + "type": "AUDIO", + "shape": 7, + "link": null + }, + { + "name": "meta_batch", + "type": "VHS_BatchManager", + "shape": 7, + "link": null + }, + { + "name": "vae", + "type": "VAE", + "shape": 7, + "link": null + }, + { + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + }, + "link": 74 + } + ], + "outputs": [ + { + "name": "Filenames", + "type": "VHS_FILENAMES", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "5e61bcf218fe3bb7c899bbd584bbc99a9d05fb42", + "Node name for S&R": "VHS_VideoCombine" + }, + "widgets_values": { + "frame_rate": 8, + "loop_count": 0, + "filename_prefix": "GB", + "format": "video/nvenc_h264-mp4", + "pix_fmt": "yuv420p", + "bitrate": 10, + "megabit": true, + "save_metadata": true, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "GB_00001.mp4", + "subfolder": "", + "type": "temp", + "format": "video/nvenc_h264-mp4", + "frame_rate": 30, + "workflow": "GB_00001.png", + "fullpath": "K:\\ComfyUI_windows_portable\\ComfyUI\\temp\\GB_00001.mp4" + }, + "muted": false + } + } + }, + { + "id": 39, + "type": "SolidColorBatched", + "pos": [ + -155.20913696289062, + 985.6845092773438 + ], + "size": [ + 210, + 198 ], "flags": {}, "order": 3, @@ -168,7 +463,6 @@ ], "outputs": [ { - "localized_name": "solid", "name": "solid", "type": "IMAGE", "links": [ @@ -177,6 +471,8 @@ } ], "properties": { + "aux_id": "FuouM/ComfyUI-MatAnyone", + "ver": "5d2c4294dbecc0f117d994a6545fa7db7cbe256f", "Node name for S&R": "SolidColorBatched" }, "widgets_values": [ @@ -187,318 +483,6 @@ 255, 0 ] - }, - { - "id": 42, - "type": "VHS_VideoCombine", - "pos": [ - 146.1608428955078, - 669.3427734375 - ], - "size": [ - 315, - 513.9375 - ], - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [ - { - "localized_name": "images", - "name": "images", - "shape": 7, - "type": "IMAGE", - "link": 73 - }, - { - "localized_name": "audio", - "name": "audio", - "shape": 7, - "type": "AUDIO", - "link": null - }, - { - "localized_name": "meta_batch", - "name": "meta_batch", - "shape": 7, - "type": "VHS_BatchManager", - "link": null - }, - { - "localized_name": "vae", - "name": "vae", - "shape": 7, - "type": "VAE", - "link": null - }, - { - "name": "frame_rate", - "type": "FLOAT", - "widget": { - "name": "frame_rate" - }, - "link": 74 - } - ], - "outputs": [ - { - "localized_name": "Filenames", - "name": "Filenames", - "type": "VHS_FILENAMES", - "links": null - } - ], - "properties": { - "Node name for S&R": "VHS_VideoCombine" - }, - "widgets_values": { - "frame_rate": 8, - "loop_count": 0, - "filename_prefix": "GB", - "format": "video/nvenc_h264-mp4", - "pix_fmt": "yuv420p", - "bitrate": 10, - "megabit": true, - "save_metadata": true, - "pingpong": false, - "save_output": false, - "videopreview": { - "hidden": false, - "paused": false, - "params": { - "filename": "GB_00001.mp4", - "subfolder": "", - "type": "temp", - "format": "video/nvenc_h264-mp4", - "frame_rate": 30 - }, - "muted": false - } - } - }, - { - "id": 40, - "type": "VHS_VideoInfoLoaded", - "pos": [ - -174.8192596435547, - 835.6626586914062 - ], - "size": [ - 235.1999969482422, - 106 - ], - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "localized_name": "video_info", - "name": "video_info", - "type": "VHS_VIDEOINFO", - "link": 71 - } - ], - "outputs": [ - { - "localized_name": "fps🟦", - "name": "fps🟦", - "type": "FLOAT", - "links": [ - 74, - 75 - ] - }, - { - "localized_name": "frame_count🟦", - "name": "frame_count🟦", - "type": "INT", - "links": [] - }, - { - "localized_name": "duration🟦", - "name": "duration🟦", - "type": "FLOAT", - "links": null - }, - { - "localized_name": "width🟦", - "name": "width🟦", - "type": "INT", - "links": [ - 65 - ] - }, - { - "localized_name": "height🟦", - "name": "height🟦", - "type": "INT", - "links": [ - 66 - ] - } - ], - "properties": { - "Node name for S&R": "VHS_VideoInfoLoaded" - }, - "widgets_values": {} - }, - { - "id": 5, - "type": "VHS_VideoCombine", - "pos": [ - 474.8391418457031, - 666.7745971679688 - ], - "size": [ - 315, - 513.9375 - ], - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "localized_name": "images", - "name": "images", - "shape": 7, - "type": "IMAGE", - "link": 72 - }, - { - "localized_name": "audio", - "name": "audio", - "shape": 7, - "type": "AUDIO", - "link": null - }, - { - "localized_name": "meta_batch", - "name": "meta_batch", - "shape": 7, - "type": "VHS_BatchManager", - "link": null - }, - { - "localized_name": "vae", - "name": "vae", - "shape": 7, - "type": "VAE", - "link": null - }, - { - "name": "frame_rate", - "type": "FLOAT", - "widget": { - "name": "frame_rate" - }, - "link": 75 - } - ], - "outputs": [ - { - "localized_name": "Filenames", - "name": "Filenames", - "type": "VHS_FILENAMES", - "links": null - } - ], - "properties": { - "Node name for S&R": "VHS_VideoCombine" - }, - "widgets_values": { - "frame_rate": 8, - "loop_count": 0, - "filename_prefix": "Matte", - "format": "video/nvenc_h264-mp4", - "pix_fmt": "yuv420p", - "bitrate": 10, - "megabit": true, - "save_metadata": true, - "pingpong": false, - "save_output": false, - "videopreview": { - "hidden": false, - "paused": false, - "params": { - "filename": "Matte_00002.mp4", - "subfolder": "", - "type": "temp", - "format": "video/nvenc_h264-mp4", - "frame_rate": 30 - }, - "muted": false - } - } - }, - { - "id": 15, - "type": "MatAnyone", - "pos": [ - 171.0359649658203, - 475.4490966796875 - ], - "size": [ - 236.8000030517578, - 142 - ], - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [ - { - "localized_name": "src_video", - "name": "src_video", - "type": "IMAGE", - "link": 42 - }, - { - "localized_name": "foreground_mask", - "name": "foreground_mask", - "shape": 7, - "type": "IMAGE", - "link": 68 - }, - { - "localized_name": "foreground_MASK", - "name": "foreground_MASK", - "shape": 7, - "type": "MASK", - "link": null - }, - { - "localized_name": "solid_color", - "name": "solid_color", - "shape": 7, - "type": "IMAGE", - "link": 64 - } - ], - "outputs": [ - { - "localized_name": "matte", - "name": "matte", - "type": "IMAGE", - "links": [ - 36, - 72 - ] - }, - { - "localized_name": "green_screen", - "name": "green_screen", - "type": "IMAGE", - "links": [ - 73 - ] - } - ], - "properties": { - "Node name for S&R": "MatAnyone" - }, - "widgets_values": [ - 0, - 10 - ] } ], "links": [ @@ -605,8 +589,8 @@ "ds": { "scale": 1, "offset": [ - 688.5119691614667, - -320.89544104869697 + 732, + -327 ] }, "linkExtensions": [ @@ -631,7 +615,11 @@ 49 ] } - ] + ], + "VHS_latentpreview": false, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true }, "version": 0.4 } \ No newline at end of file