{ "last_node_id": 200, "last_link_id": 478, "nodes": [ { "id": 129, "type": "LivePortraitLoadCropper", "pos": [ -1253, -757 ], "size": { "0": 315, "1": 82 }, "flags": {}, "order": 0, "mode": 0, "outputs": [ { "name": "cropper", "type": "LPCROPPER", "links": [], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "LivePortraitLoadCropper" }, "widgets_values": [ "CPU", true ] }, { "id": 134, "type": "GetImageSizeAndCount", "pos": [ -200, 360 ], "size": { "0": 210, "1": 86 }, "flags": {}, "order": 19, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 471 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [], "shape": 3, "slot_index": 0 }, { "name": "width", "type": "INT", "links": null, "shape": 3 }, { "name": "height", "type": "INT", "links": null, "shape": 3 }, { "name": "count", "type": "INT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "GetImageSizeAndCount" } }, { "id": 188, "type": "Note", "pos": [ 30, 310 ], "size": { "0": 229.1644287109375, "1": 95.92726135253906 }, "flags": {}, "order": 1, "mode": 0, "properties": { "text": "" }, "widgets_values": [ "If you want to crop your driving video, use this as driving_images instead" ], "color": "#432", "bgcolor": "#653" }, { "id": 78, "type": "GetImageSizeAndCount", "pos": [ -522, -572 ], "size": { "0": 210, "1": 86 }, "flags": {}, "order": 15, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 434 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [ 445, 455 ], "shape": 3, "slot_index": 0 }, { "name": "512 width", "type": "INT", "links": null, "shape": 3 }, { "name": "512 height", "type": "INT", "links": null, "shape": 3 }, { "name": "1 count", "type": "INT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "GetImageSizeAndCount" } }, { "id": 8, "type": "VHS_LoadVideo", "pos": [ -1253, 28 ], "size": [ 340.1555480957031, 572.1555480957031 ], "flags": {}, "order": 10, "mode": 0, "inputs": [ { "name": "meta_batch", "type": "VHS_BatchManager", "link": null }, { "name": "vae", "type": "VAE", "link": null }, { "name": "frame_load_cap", "type": "INT", "link": 302, "widget": { "name": "frame_load_cap" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 436 ], "shape": 3, "slot_index": 0 }, { "name": "frame_count", "type": "INT", "links": null, "shape": 3 }, { "name": "audio", "type": "VHS_AUDIO", "links": null, "shape": 3 }, { "name": "video_info", "type": "VHS_VIDEOINFO", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "VHS_LoadVideo" }, "widgets_values": { "video": "d6.mp4", "force_rate": 0, "force_size": "Disabled", "custom_width": 512, "custom_height": 512, "frame_load_cap": 128, "skip_first_frames": 0, "select_every_nth": 1, "choose video to upload": "image", "videopreview": { "hidden": false, "paused": false, "params": { "frame_load_cap": 128, "skip_first_frames": 0, "force_rate": 0, "filename": "d6.mp4", "type": "input", "format": "video/mp4", "select_every_nth": 1 } } } }, { "id": 165, "type": "ImageResizeKJ", "pos": [ -873, -573 ], "size": { "0": 315, "1": 242 }, "flags": {}, "order": 12, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 466 }, { "name": "get_image_size", "type": "IMAGE", "link": null }, { "name": "width_input", "type": "INT", "link": null, "widget": { "name": "width_input" } }, { "name": "height_input", "type": "INT", "link": null, "widget": { "name": "height_input" } } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 434 ], "shape": 3, "slot_index": 0 }, { "name": "width", "type": "INT", "links": null, "shape": 3 }, { "name": "height", "type": "INT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "ImageResizeKJ" }, "widgets_values": [ 512, 512, "lanczos", true, 2, 0, 0 ] }, { "id": 197, "type": "LivePortraitCropper", "pos": [ -640, 360 ], "size": { "0": 330, "1": 242 }, "flags": {}, "order": 16, "mode": 0, "inputs": [ { "name": "pipeline", "type": "LIVEPORTRAITPIPE", "link": 472, "slot_index": 0 }, { "name": "cropper", "type": "LPCROPPER", "link": 476 }, { "name": "source_image", "type": "IMAGE", "link": 469 } ], "outputs": [ { "name": "cropped_image", "type": "IMAGE", "links": [ 471 ], "shape": 3, "slot_index": 0 }, { "name": "crop_info", "type": "CROPINFO", "links": [ 470 ], "shape": 3, "slot_index": 1 } ], "properties": { "Node name for S&R": "LivePortraitCropper" }, "widgets_values": [ 512, 2.3, 0, -0.125, 0, "large-small", true ] }, { "id": 198, "type": "LivePortraitLoadMediaPipeCropper", "pos": [ -1256, -893 ], "size": { "0": 315, "1": 82 }, "flags": {}, "order": 2, "mode": 0, "outputs": [ { "name": "cropper", "type": "LPCROPPER", "links": [ 474 ], "shape": 3 } ], "properties": { "Node name for S&R": "LivePortraitLoadMediaPipeCropper" }, "widgets_values": [ "CPU", true ] }, { "id": 1, "type": "DownloadAndLoadLivePortraitModels", "pos": [ -934, -1067 ], "size": { "0": 302.43463134765625, "1": 58 }, "flags": {}, "order": 3, "mode": 0, "outputs": [ { "name": "live_portrait_pipe", "type": "LIVEPORTRAITPIPE", "links": [ 446, 448, 472 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "DownloadAndLoadLivePortraitModels" }, "widgets_values": [ "auto" ] }, { "id": 200, "type": "Note", "pos": [ -1542, -877 ], "size": [ 265.68303695794293, 168.53929752859244 ], "flags": {}, "order": 4, "mode": 0, "properties": { "text": "" }, "widgets_values": [ "Choose your face detector here, MediaPipe doesn't run on GPU and isn't as good at detecting, but is faster on CPU and has Apache 2.0 license.\n\nInsightface can be run on GPU and is better at detecting, but it's model license is NON-COMMERCIAL" ], "color": "#432", "bgcolor": "#653" }, { "id": 199, "type": "Reroute", "pos": [ -855, -812 ], "size": [ 115.6, 26 ], "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 474 } ], "outputs": [ { "name": "LPCROPPER", "type": "LPCROPPER", "links": [ 475, 476 ], "slot_index": 0 } ], "properties": { "showOutputText": true, "horizontal": false } }, { "id": 133, "type": "PrimitiveNode", "pos": [ -1533, -164 ], "size": { "0": 210, "1": 82 }, "flags": {}, "order": 5, "mode": 0, "outputs": [ { "name": "INT", "type": "INT", "links": [ 302 ], "widget": { "name": "frame_load_cap" }, "slot_index": 0 } ], "title": "frame_load_cap", "properties": { "Run widget replace on values": false }, "widgets_values": [ 128, "fixed" ] }, { "id": 187, "type": "Note", "pos": [ 80, 140 ], "size": { "0": 210, "1": 58 }, "flags": {}, "order": 6, "mode": 0, "properties": { "text": "" }, "widgets_values": [ "Connect this if you want to use the eye/lip retargeting mode" ], "color": "#432", "bgcolor": "#653" }, { "id": 182, "type": "GetImageSizeAndCount", "pos": [ -850, -195 ], "size": { "0": 210, "1": 86 }, "flags": {}, "order": 13, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 436 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [ 451, 469 ], "shape": 3, "slot_index": 0 }, { "name": "480 width", "type": "INT", "links": null, "shape": 3 }, { "name": "480 height", "type": "INT", "links": null, "shape": 3 }, { "name": "128 count", "type": "INT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "GetImageSizeAndCount" } }, { "id": 180, "type": "LivePortraitRetargeting", "pos": [ -390, 120 ], "size": { "0": 430.8000183105469, "1": 130 }, "flags": {}, "order": 20, "mode": 0, "inputs": [ { "name": "driving_crop_info", "type": "CROPINFO", "link": 470, "slot_index": 0 } ], "outputs": [ { "name": "retargeting_info", "type": "RETARGETINGINFO", "links": [], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "LivePortraitRetargeting" }, "widgets_values": [ true, 1, true, 1 ] }, { "id": 190, "type": "LivePortraitProcess", "pos": [ 166, -422 ], "size": { "0": 430.8000183105469, "1": 282 }, "flags": {}, "order": 21, "mode": 0, "inputs": [ { "name": "pipeline", "type": "LIVEPORTRAITPIPE", "link": 448 }, { "name": "crop_info", "type": "CROPINFO", "link": 449 }, { "name": "source_image", "type": "IMAGE", "link": 456 }, { "name": "driving_images", "type": "IMAGE", "link": 451 }, { "name": "opt_retargeting_info", "type": "RETARGETINGINFO", "link": null } ], "outputs": [ { "name": "cropped_image", "type": "IMAGE", "links": [ 454 ], "shape": 3, "slot_index": 0 }, { "name": "output", "type": "LP_OUT", "links": [ 452 ], "shape": 3, "slot_index": 1 } ], "properties": { "Node name for S&R": "LivePortraitProcess" }, "widgets_values": [ false, 0.03, true, 1, "constant", "relative", 0.000003 ] }, { "id": 83, "type": "CreateShapeMask", "pos": [ 407, -876 ], "size": { "0": 315, "1": 270 }, "flags": {}, "order": 7, "mode": 0, "outputs": [ { "name": "mask", "type": "MASK", "links": [ 192 ], "shape": 3, "slot_index": 0 }, { "name": "mask_inverted", "type": "MASK", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "CreateShapeMask" }, "widgets_values": [ "square", 1, 256, 256, 0, 512, 512, 480, 480 ] }, { "id": 81, "type": "GrowMaskWithBlur", "pos": [ 751, -873 ], "size": { "0": 315, "1": 246 }, "flags": {}, "order": 11, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 192, "slot_index": 0 } ], "outputs": [ { "name": "mask", "type": "MASK", "links": [ 187, 463 ], "shape": 3, "slot_index": 0 }, { "name": "mask_inverted", "type": "MASK", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "GrowMaskWithBlur" }, "widgets_values": [ 0, 0, true, false, 13.9, 1, 1, false ] }, { "id": 82, "type": "MaskPreview+", "pos": [ 1091, -873 ], "size": { "0": 210, "1": 246 }, "flags": {}, "order": 14, "mode": 0, "inputs": [ { "name": "mask", "type": "MASK", "link": 187 } ], "properties": { "Node name for S&R": "MaskPreview+" } }, { "id": 181, "type": "GetImageSizeAndCount", "pos": [ 1083, -443 ], "size": { "0": 210, "1": 86 }, "flags": {}, "order": 23, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 458 } ], "outputs": [ { "name": "image", "type": "IMAGE", "links": [ 478 ], "shape": 3, "slot_index": 0 }, { "name": "512 width", "type": "INT", "links": null, "shape": 3 }, { "name": "512 height", "type": "INT", "links": null, "shape": 3 }, { "name": "128 count", "type": "INT", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "GetImageSizeAndCount" } }, { "id": 168, "type": "VHS_VideoCombine", "pos": [ 630, -302 ], "size": [ 669.8613793918787, 973.8613793918787 ], "flags": {}, "order": 24, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 478 }, { "name": "audio", "type": "VHS_AUDIO", "link": null }, { "name": "meta_batch", "type": "VHS_BatchManager", "link": null }, { "name": "vae", "type": "VAE", "link": null } ], "outputs": [ { "name": "Filenames", "type": "VHS_FILENAMES", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "VHS_VideoCombine" }, "widgets_values": { "frame_rate": 16, "loop_count": 0, "filename_prefix": "LivePortrait", "format": "video/h264-mp4", "pix_fmt": "yuv420p", "crf": 19, "save_metadata": true, "pingpong": false, "save_output": false, "videopreview": { "hidden": false, "paused": false, "params": { "filename": "LivePortrait_00005.mp4", "subfolder": "", "type": "temp", "format": "video/h264-mp4", "frame_rate": 16 } } } }, { "id": 196, "type": "LoadImage", "pos": [ -1267, -582 ], "size": [ 330.4995504373579, 384.24166509694487 ], "flags": {}, "order": 8, "mode": 0, "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 466 ], "shape": 3, "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "LoadImage" }, "widgets_values": [ "ComfyUI_temp_gjesb_00023_.png", "image" ] }, { "id": 192, "type": "Reroute", "pos": [ 73, -519 ], "size": [ 82, 26 ], "flags": {}, "order": 18, "mode": 0, "inputs": [ { "name": "", "type": "*", "link": 455 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 456, 457 ], "slot_index": 0 } ], "properties": { "showOutputText": true, "horizontal": false } }, { "id": 191, "type": "LivePortraitComposite", "pos": [ 673, -507 ], "size": { "0": 355.20001220703125, "1": 86 }, "flags": {}, "order": 22, "mode": 0, "inputs": [ { "name": "source_image", "type": "IMAGE", "link": 457 }, { "name": "cropped_image", "type": "IMAGE", "link": 454 }, { "name": "liveportrait_out", "type": "LP_OUT", "link": 452 }, { "name": "mask", "type": "MASK", "link": 463 } ], "outputs": [ { "name": "full_images", "type": "IMAGE", "links": [ 458 ], "shape": 3, "slot_index": 0 }, { "name": "mask", "type": "MASK", "links": null, "shape": 3 } ], "properties": { "Node name for S&R": "LivePortraitComposite" } }, { "id": 189, "type": "LivePortraitCropper", "pos": [ -203, -830 ], "size": { "0": 330, "1": 242 }, "flags": {}, "order": 17, "mode": 0, "inputs": [ { "name": "pipeline", "type": "LIVEPORTRAITPIPE", "link": 446, "slot_index": 0 }, { "name": "cropper", "type": "LPCROPPER", "link": 475, "slot_index": 1 }, { "name": "source_image", "type": "IMAGE", "link": 445 } ], "outputs": [ { "name": "cropped_image", "type": "IMAGE", "links": null, "shape": 3, "slot_index": 0 }, { "name": "crop_info", "type": "CROPINFO", "links": [ 449 ], "shape": 3, "slot_index": 1 } ], "properties": { "Node name for S&R": "LivePortraitCropper" }, "widgets_values": [ 512, 2.3, 0, -0.125, 0, "large-small", true ] } ], "links": [ [ 187, 81, 0, 82, 0, "MASK" ], [ 192, 83, 0, 81, 0, "MASK" ], [ 302, 133, 0, 8, 2, "INT" ], [ 434, 165, 0, 78, 0, "IMAGE" ], [ 436, 8, 0, 182, 0, "IMAGE" ], [ 445, 78, 0, 189, 2, "IMAGE" ], [ 446, 1, 0, 189, 0, "LIVEPORTRAITPIPE" ], [ 448, 1, 0, 190, 0, "LIVEPORTRAITPIPE" ], [ 449, 189, 1, 190, 1, "CROPINFO" ], [ 451, 182, 0, 190, 3, "IMAGE" ], [ 452, 190, 1, 191, 2, "LP_OUT" ], [ 454, 190, 0, 191, 1, "IMAGE" ], [ 455, 78, 0, 192, 0, "*" ], [ 456, 192, 0, 190, 2, "IMAGE" ], [ 457, 192, 0, 191, 0, "IMAGE" ], [ 458, 191, 0, 181, 0, "IMAGE" ], [ 463, 81, 0, 191, 3, "MASK" ], [ 466, 196, 0, 165, 0, "IMAGE" ], [ 469, 182, 0, 197, 2, "IMAGE" ], [ 470, 197, 1, 180, 0, "CROPINFO" ], [ 471, 197, 0, 134, 0, "IMAGE" ], [ 472, 1, 0, 197, 0, "LIVEPORTRAITPIPE" ], [ 474, 198, 0, 199, 0, "*" ], [ 475, 199, 0, 189, 1, "LPCROPPER" ], [ 476, 199, 0, 197, 1, "LPCROPPER" ], [ 478, 181, 0, 168, 0, "IMAGE" ] ], "groups": [], "config": {}, "extra": { "ds": { "scale": 0.6209213230591553, "offset": { "0": 1699.882189562642, "1": 1132.3910371015413 } } }, "version": 0.4 }