{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "2489b7c8-e510-42d9-a0cb-dc0d1fd25077",
        "inputNode": {
          "bounding": [
            5639.999966922969,
            1295,
            120,
            60
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "cf864bf6-a411-430e-a6ab-6947cf7085ed",
            "linkIds": [
              186,
              187,
              196,
              251
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              5739.999966922969,
              1315
            ],
            "type": "IMAGE"
          }
        ],
        "links": [
          {
            "id": 173,
            "origin_id": 106,
            "origin_slot": 0,
            "target_id": 93,
            "target_slot": 0,
            "type": "BBOX_DETECTOR"
          },
          {
            "id": 175,
            "origin_id": 99,
            "origin_slot": 0,
            "target_id": 95,
            "target_slot": 0,
            "type": "FACE_PARSING_MODEL"
          },
          {
            "id": 176,
            "origin_id": 96,
            "origin_slot": 0,
            "target_id": 95,
            "target_slot": 1,
            "type": "FACE_PARSING_PROCESSOR"
          },
          {
            "id": 177,
            "origin_id": 98,
            "origin_slot": 0,
            "target_id": 95,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 178,
            "origin_id": 93,
            "origin_slot": 0,
            "target_id": 97,
            "target_slot": 0,
            "type": "BBOX_LIST"
          },
          {
            "id": 179,
            "origin_id": 97,
            "origin_slot": 0,
            "target_id": 98,
            "target_slot": 0,
            "type": "BBOX"
          },
          {
            "id": 186,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 93,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 187,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 98,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 191,
            "origin_id": 95,
            "origin_slot": 1,
            "target_id": 110,
            "target_slot": 0,
            "type": "FACE_PARSING_RESULT"
          },
          {
            "id": 193,
            "origin_id": 97,
            "origin_slot": 0,
            "target_id": 112,
            "target_slot": 0,
            "type": "BBOX"
          },
          {
            "id": 196,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 112,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 200,
            "origin_id": 112,
            "origin_slot": 0,
            "target_id": 117,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 201,
            "origin_id": 98,
            "origin_slot": 0,
            "target_id": 118,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 202,
            "origin_id": 115,
            "origin_slot": 0,
            "target_id": 118,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 204,
            "origin_id": 118,
            "origin_slot": 0,
            "target_id": 125,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 206,
            "origin_id": 125,
            "origin_slot": 0,
            "target_id": 127,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 207,
            "origin_id": 115,
            "origin_slot": 0,
            "target_id": 127,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 208,
            "origin_id": 98,
            "origin_slot": 0,
            "target_id": 127,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 211,
            "origin_id": 98,
            "origin_slot": 0,
            "target_id": 129,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 212,
            "origin_id": 129,
            "origin_slot": 0,
            "target_id": 118,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 213,
            "origin_id": 129,
            "origin_slot": 1,
            "target_id": 118,
            "target_slot": 4,
            "type": "INT"
          },
          {
            "id": 214,
            "origin_id": 127,
            "origin_slot": 0,
            "target_id": 130,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 217,
            "origin_id": 130,
            "origin_slot": 0,
            "target_id": 112,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 218,
            "origin_id": 112,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 245,
            "origin_id": 97,
            "origin_slot": 0,
            "target_id": 142,
            "target_slot": 0,
            "type": "BBOX"
          },
          {
            "id": 250,
            "origin_id": 115,
            "origin_slot": 0,
            "target_id": 142,
            "target_slot": 2,
            "type": "IMAGE"
          },
          {
            "id": 251,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 142,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 252,
            "origin_id": 142,
            "origin_slot": 0,
            "target_id": 145,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 253,
            "origin_id": 145,
            "origin_slot": 0,
            "target_id": 146,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 254,
            "origin_id": 110,
            "origin_slot": 0,
            "target_id": 147,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 255,
            "origin_id": 147,
            "origin_slot": 0,
            "target_id": 115,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 286,
            "origin_id": 145,
            "origin_slot": 0,
            "target_id": 164,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 288,
            "origin_id": 164,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 293,
            "origin_id": 145,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 2,
            "type": "MASK"
          }
        ],
        "name": "Add Face Blur",
        "nodes": [
          {
            "flags": {},
            "id": 93,
            "inputs": [
              {
                "link": 173,
                "localized_name": "bbox_detector",
                "name": "bbox_detector",
                "type": "BBOX_DETECTOR"
              },
              {
                "link": 186,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "threshold",
                "name": "threshold",
                "type": "FLOAT",
                "widget": {
                  "name": "threshold"
                }
              },
              {
                "link": null,
                "localized_name": "dilation",
                "name": "dilation",
                "type": "INT",
                "widget": {
                  "name": "dilation"
                }
              },
              {
                "link": null,
                "localized_name": "dilation_ratio",
                "name": "dilation_ratio",
                "type": "FLOAT",
                "widget": {
                  "name": "dilation_ratio"
                }
              },
              {
                "link": null,
                "localized_name": "by_ratio",
                "name": "by_ratio",
                "type": "BOOLEAN",
                "widget": {
                  "name": "by_ratio"
                }
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  178
                ],
                "localized_name": "BBOX_LIST",
                "name": "BBOX_LIST",
                "type": "BBOX_LIST"
              },
              {
                "links": null,
                "localized_name": "count",
                "name": "count",
                "type": "INT"
              }
            ],
            "pos": [
              6180,
              1340
            ],
            "properties": {
              "Node name for S&R": "BBoxDetect(FaceParsing)",
              "cnr_id": "comfyui_face_parsing",
              "ver": "1.0.5"
            },
            "size": [
              280,
              220
            ],
            "type": "BBoxDetect(FaceParsing)",
            "widgets_values": [
              0.3,
              8,
              0.2,
              false
            ]
          },
          {
            "flags": {},
            "id": 95,
            "inputs": [
              {
                "link": 175,
                "localized_name": "model",
                "name": "model",
                "type": "FACE_PARSING_MODEL"
              },
              {
                "link": 176,
                "localized_name": "processor",
                "name": "processor",
                "type": "FACE_PARSING_PROCESSOR"
              },
              {
                "link": 177,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              },
              {
                "links": [
                  191
                ],
                "localized_name": "FACE_PARSING_RESULT",
                "name": "FACE_PARSING_RESULT",
                "type": "FACE_PARSING_RESULT"
              }
            ],
            "pos": [
              7330,
              1340
            ],
            "properties": {
              "Node name for S&R": "FaceParse(FaceParsing)",
              "cnr_id": "comfyui_face_parsing",
              "ver": "1.0.5"
            },
            "size": [
              340,
              120
            ],
            "type": "FaceParse(FaceParsing)",
            "widgets_values": []
          },
          {
            "flags": {
              "collapsed": false
            },
            "id": 96,
            "inputs": [],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  176
                ],
                "localized_name": "FACE_PARSING_PROCESSOR",
                "name": "FACE_PARSING_PROCESSOR",
                "type": "FACE_PARSING_PROCESSOR"
              }
            ],
            "pos": [
              6880,
              1190
            ],
            "properties": {
              "Node name for S&R": "FaceParsingProcessorLoader(FaceParsing)",
              "cnr_id": "comfyui_face_parsing",
              "ver": "1.0.5"
            },
            "size": [
              330,
              80
            ],
            "type": "FaceParsingProcessorLoader(FaceParsing)",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 97,
            "inputs": [
              {
                "link": 178,
                "localized_name": "bbox_list",
                "name": "bbox_list",
                "type": "BBOX_LIST"
              },
              {
                "link": null,
                "localized_name": "index",
                "name": "index",
                "type": "INT",
                "widget": {
                  "name": "index"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  179,
                  193,
                  245
                ],
                "localized_name": "BBOX",
                "name": "BBOX",
                "type": "BBOX"
              }
            ],
            "pos": [
              6530,
              1340
            ],
            "properties": {
              "Node name for S&R": "BBoxListItemSelect(FaceParsing)",
              "cnr_id": "comfyui_face_parsing",
              "ver": "1.0.5"
            },
            "size": [
              280,
              110
            ],
            "type": "BBoxListItemSelect(FaceParsing)",
            "widgets_values": [
              0
            ]
          },
          {
            "flags": {},
            "id": 98,
            "inputs": [
              {
                "link": 179,
                "localized_name": "bbox",
                "name": "bbox",
                "type": "BBOX"
              },
              {
                "link": 187,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  177,
                  201,
                  208,
                  211
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              6880,
              1340
            ],
            "properties": {
              "Node name for S&R": "ImageCropWithBBox(FaceParsing)",
              "cnr_id": "comfyui_face_parsing",
              "ver": "1.0.5"
            },
            "size": [
              280,
              100
            ],
            "type": "ImageCropWithBBox(FaceParsing)",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 99,
            "inputs": [
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  175
                ],
                "localized_name": "FACE_PARSING_MODEL",
                "name": "FACE_PARSING_MODEL",
                "type": "FACE_PARSING_MODEL"
              }
            ],
            "pos": [
              6870,
              1010
            ],
            "properties": {
              "Node name for S&R": "FaceParsingModelLoader(FaceParsing)",
              "cnr_id": "comfyui_face_parsing",
              "ver": "1.0.5"
            },
            "size": [
              310,
              110
            ],
            "type": "FaceParsingModelLoader(FaceParsing)",
            "widgets_values": [
              "cuda"
            ]
          },
          {
            "flags": {},
            "id": 106,
            "inputs": [
              {
                "link": null,
                "localized_name": "model_name",
                "name": "model_name",
                "type": "COMBO",
                "widget": {
                  "name": "model_name"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  173
                ],
                "localized_name": "BBOX_DETECTOR",
                "name": "BBOX_DETECTOR",
                "type": "BBOX_DETECTOR"
              }
            ],
            "pos": [
              5820,
              1340
            ],
            "properties": {
              "Node name for S&R": "BBoxDetectorLoader(FaceParsing)",
              "cnr_id": "comfyui_face_parsing",
              "ver": "1.0.5"
            },
            "size": [
              290,
              110
            ],
            "type": "BBoxDetectorLoader(FaceParsing)",
            "widgets_values": [
              "bbox/face_yolov8m.pt"
            ]
          },
          {
            "flags": {},
            "id": 110,
            "inputs": [
              {
                "link": 191,
                "localized_name": "result",
                "name": "result",
                "type": "FACE_PARSING_RESULT"
              },
              {
                "link": null,
                "localized_name": "background",
                "name": "background",
                "type": "BOOLEAN",
                "widget": {
                  "name": "background"
                }
              },
              {
                "link": null,
                "localized_name": "skin",
                "name": "skin",
                "type": "BOOLEAN",
                "widget": {
                  "name": "skin"
                }
              },
              {
                "link": null,
                "localized_name": "nose",
                "name": "nose",
                "type": "BOOLEAN",
                "widget": {
                  "name": "nose"
                }
              },
              {
                "link": null,
                "localized_name": "eye_g",
                "name": "eye_g",
                "type": "BOOLEAN",
                "widget": {
                  "name": "eye_g"
                }
              },
              {
                "link": null,
                "localized_name": "r_eye",
                "name": "r_eye",
                "type": "BOOLEAN",
                "widget": {
                  "name": "r_eye"
                }
              },
              {
                "link": null,
                "localized_name": "l_eye",
                "name": "l_eye",
                "type": "BOOLEAN",
                "widget": {
                  "name": "l_eye"
                }
              },
              {
                "link": null,
                "localized_name": "r_brow",
                "name": "r_brow",
                "type": "BOOLEAN",
                "widget": {
                  "name": "r_brow"
                }
              },
              {
                "link": null,
                "localized_name": "l_brow",
                "name": "l_brow",
                "type": "BOOLEAN",
                "widget": {
                  "name": "l_brow"
                }
              },
              {
                "link": null,
                "localized_name": "r_ear",
                "name": "r_ear",
                "type": "BOOLEAN",
                "widget": {
                  "name": "r_ear"
                }
              },
              {
                "link": null,
                "localized_name": "l_ear",
                "name": "l_ear",
                "type": "BOOLEAN",
                "widget": {
                  "name": "l_ear"
                }
              },
              {
                "link": null,
                "localized_name": "mouth",
                "name": "mouth",
                "type": "BOOLEAN",
                "widget": {
                  "name": "mouth"
                }
              },
              {
                "link": null,
                "localized_name": "u_lip",
                "name": "u_lip",
                "type": "BOOLEAN",
                "widget": {
                  "name": "u_lip"
                }
              },
              {
                "link": null,
                "localized_name": "l_lip",
                "name": "l_lip",
                "type": "BOOLEAN",
                "widget": {
                  "name": "l_lip"
                }
              },
              {
                "link": null,
                "localized_name": "hair",
                "name": "hair",
                "type": "BOOLEAN",
                "widget": {
                  "name": "hair"
                }
              },
              {
                "link": null,
                "localized_name": "hat",
                "name": "hat",
                "type": "BOOLEAN",
                "widget": {
                  "name": "hat"
                }
              },
              {
                "link": null,
                "localized_name": "ear_r",
                "name": "ear_r",
                "type": "BOOLEAN",
                "widget": {
                  "name": "ear_r"
                }
              },
              {
                "link": null,
                "localized_name": "neck_l",
                "name": "neck_l",
                "type": "BOOLEAN",
                "widget": {
                  "name": "neck_l"
                }
              },
              {
                "link": null,
                "localized_name": "neck",
                "name": "neck",
                "type": "BOOLEAN",
                "widget": {
                  "name": "neck"
                }
              },
              {
                "link": null,
                "localized_name": "cloth",
                "name": "cloth",
                "type": "BOOLEAN",
                "widget": {
                  "name": "cloth"
                }
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  254
                ],
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK"
              }
            ],
            "pos": [
              7820,
              1350
            ],
            "properties": {
              "Node name for S&R": "FaceParsingResultsParser(FaceParsing)"
            },
            "size": [
              370,
              610
            ],
            "type": "FaceParsingResultsParser(FaceParsing)",
            "widgets_values": [
              false,
              true,
              true,
              false,
              false,
              false,
              true,
              true,
              false,
              false,
              false,
              true,
              true,
              false,
              false,
              false,
              false,
              false,
              false
            ]
          },
          {
            "flags": {},
            "id": 112,
            "inputs": [
              {
                "link": 193,
                "localized_name": "bbox",
                "name": "bbox",
                "type": "BBOX"
              },
              {
                "link": 196,
                "localized_name": "image_src",
                "name": "image_src",
                "type": "IMAGE"
              },
              {
                "link": 217,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  200,
                  218
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              10230,
              1260
            ],
            "properties": {
              "Node name for S&R": "ImageInsertWithBBox(FaceParsing)"
            },
            "size": [
              320,
              120
            ],
            "type": "ImageInsertWithBBox(FaceParsing)",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 115,
            "inputs": [
              {
                "link": 255,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 9,
            "outputs": [
              {
                "links": [
                  202,
                  207,
                  247,
                  250
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              8490,
              1360
            ],
            "properties": {
              "Node name for S&R": "MaskToImage"
            },
            "size": [
              230,
              50
            ],
            "type": "MaskToImage",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 117,
            "inputs": [
              {
                "link": 200,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              }
            ],
            "mode": 4,
            "order": 10,
            "outputs": [],
            "pos": [
              10240,
              1490
            ],
            "properties": {
              "Node name for S&R": "PreviewImage"
            },
            "size": [
              230,
              290
            ],
            "type": "PreviewImage",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 118,
            "inputs": [
              {
                "link": 201,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 202,
                "localized_name": "mask",
                "name": "mask",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "mask_mapping_optional",
                "name": "mask_mapping_optional",
                "shape": 7,
                "type": "MASK_MAPPING"
              },
              {
                "link": 212,
                "localized_name": "force_resize_width",
                "name": "force_resize_width",
                "type": "INT",
                "widget": {
                  "name": "force_resize_width"
                }
              },
              {
                "link": 213,
                "localized_name": "force_resize_height",
                "name": "force_resize_height",
                "type": "INT",
                "widget": {
                  "name": "force_resize_height"
                }
              }
            ],
            "mode": 0,
            "order": 11,
            "outputs": [
              {
                "links": [
                  204
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              8810,
              1530
            ],
            "properties": {
              "Node name for S&R": "Cut By Mask"
            },
            "size": [
              280,
              190
            ],
            "type": "Cut By Mask",
            "widgets_values": [
              0,
              0
            ]
          },
          {
            "flags": {},
            "id": 125,
            "inputs": [
              {
                "link": 204,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "label": "blur_face (px)",
                "link": null,
                "localized_name": "blur_radius",
                "name": "blur_radius",
                "type": "INT",
                "widget": {
                  "name": "blur_radius"
                }
              },
              {
                "link": null,
                "localized_name": "sigma",
                "name": "sigma",
                "type": "FLOAT",
                "widget": {
                  "name": "sigma"
                }
              }
            ],
            "mode": 0,
            "order": 12,
            "outputs": [
              {
                "links": [
                  206
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              9180,
              1530
            ],
            "properties": {
              "Node name for S&R": "ImageBlur"
            },
            "size": [
              270,
              120
            ],
            "type": "ImageBlur",
            "widgets_values": [
              31,
              1
            ]
          },
          {
            "flags": {},
            "id": 127,
            "inputs": [
              {
                "link": 208,
                "localized_name": "image_base",
                "name": "image_base",
                "type": "IMAGE"
              },
              {
                "link": 206,
                "localized_name": "image_to_paste",
                "name": "image_to_paste",
                "type": "IMAGE"
              },
              {
                "link": 207,
                "localized_name": "mask",
                "name": "mask",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "mask_mapping_optional",
                "name": "mask_mapping_optional",
                "shape": 7,
                "type": "MASK_MAPPING"
              },
              {
                "link": null,
                "localized_name": "resize_behavior",
                "name": "resize_behavior",
                "type": "COMBO",
                "widget": {
                  "name": "resize_behavior"
                }
              }
            ],
            "mode": 0,
            "order": 13,
            "outputs": [
              {
                "links": [
                  214
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              9570,
              1520
            ],
            "properties": {
              "Node name for S&R": "Paste By Mask"
            },
            "size": [
              280,
              180
            ],
            "type": "Paste By Mask",
            "widgets_values": [
              "resize"
            ]
          },
          {
            "flags": {},
            "id": 129,
            "inputs": [
              {
                "link": 211,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 14,
            "outputs": [
              {
                "links": [
                  212
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  213
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              8390,
              1610
            ],
            "properties": {
              "Node name for S&R": "GetImageSize"
            },
            "size": [
              230,
              100
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 130,
            "inputs": [
              {
                "link": 214,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 15,
            "outputs": [
              {
                "links": [
                  217
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              9890,
              1360
            ],
            "properties": {
              "Node name for S&R": "ImageRemoveAlpha+"
            },
            "size": [
              230,
              80
            ],
            "type": "ImageRemoveAlpha+",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 142,
            "inputs": [
              {
                "link": 245,
                "localized_name": "bbox",
                "name": "bbox",
                "type": "BBOX"
              },
              {
                "link": 251,
                "localized_name": "image_src",
                "name": "image_src",
                "type": "IMAGE"
              },
              {
                "link": 250,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 16,
            "outputs": [
              {
                "links": [
                  252
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              10640,
              1120
            ],
            "properties": {
              "Node name for S&R": "ImageInsertWithBBox(FaceParsing)"
            },
            "size": [
              320,
              120
            ],
            "type": "ImageInsertWithBBox(FaceParsing)",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 145,
            "inputs": [
              {
                "link": 252,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "invert",
                "name": "invert",
                "type": "BOOLEAN",
                "widget": {
                  "name": "invert"
                }
              },
              {
                "link": null,
                "localized_name": "red",
                "name": "red",
                "type": "INT",
                "widget": {
                  "name": "red"
                }
              },
              {
                "link": null,
                "localized_name": "green",
                "name": "green",
                "type": "INT",
                "widget": {
                  "name": "green"
                }
              },
              {
                "link": null,
                "localized_name": "blue",
                "name": "blue",
                "type": "INT",
                "widget": {
                  "name": "blue"
                }
              },
              {
                "link": null,
                "localized_name": "threshold",
                "name": "threshold",
                "type": "INT",
                "widget": {
                  "name": "threshold"
                }
              },
              {
                "link": null,
                "localized_name": "per_batch",
                "name": "per_batch",
                "type": "INT",
                "widget": {
                  "name": "per_batch"
                }
              }
            ],
            "mode": 0,
            "order": 17,
            "outputs": [
              {
                "links": [
                  253,
                  286,
                  293
                ],
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK"
              }
            ],
            "pos": [
              10650,
              1330
            ],
            "properties": {
              "Node name for S&R": "ColorToMask"
            },
            "size": [
              270,
              260
            ],
            "type": "ColorToMask",
            "widgets_values": [
              false,
              255,
              255,
              255,
              0,
              16
            ]
          },
          {
            "flags": {},
            "id": 146,
            "inputs": [
              {
                "link": 253,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 4,
            "order": 18,
            "outputs": [],
            "pos": [
              10660,
              1670
            ],
            "properties": {
              "Node name for S&R": "MaskPreview"
            },
            "size": [
              230,
              290
            ],
            "type": "MaskPreview",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 147,
            "inputs": [
              {
                "link": 254,
                "localized_name": "masks",
                "name": "masks",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 19,
            "outputs": [
              {
                "links": [
                  255
                ],
                "localized_name": "MASKS",
                "name": "MASKS",
                "type": "MASK"
              }
            ],
            "pos": [
              8240,
              1350
            ],
            "properties": {
              "Node name for S&R": "Mask Fill Holes"
            },
            "size": [
              230,
              80
            ],
            "type": "Mask Fill Holes",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 164,
            "inputs": [
              {
                "link": 286,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "mode": 0,
            "order": 20,
            "outputs": [
              {
                "links": [
                  288
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              11010,
              1560
            ],
            "properties": {
              "Node name for S&R": "MaskToImage"
            },
            "size": [
              230,
              50
            ],
            "type": "MaskToImage",
            "widgets_values": []
          }
        ],
        "outputNode": {
          "bounding": [
            11640,
            1460,
            120,
            100
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "94932a0b-65af-44d0-a203-a6623c8ed316",
            "label": "IMAGE_BLUR",
            "linkIds": [
              218
            ],
            "name": "IMAGE",
            "pos": [
              11660,
              1480
            ],
            "type": "IMAGE"
          },
          {
            "id": "5f4422d3-7f8d-4dd1-b7df-63e907af4259",
            "label": "IMAGE_MASK",
            "linkIds": [
              288
            ],
            "name": "IMAGE_1",
            "pos": [
              11660,
              1500
            ],
            "type": "IMAGE"
          },
          {
            "id": "b79d9b14-5300-4663-8a61-cec0b5a83dfa",
            "linkIds": [
              293
            ],
            "name": "MASK",
            "pos": [
              11660,
              1520
            ],
            "type": "MASK"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 2,
          "lastLinkId": 325,
          "lastNodeId": 201,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      },
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "c62c1b3a-126b-4af4-b633-b4d494653f88",
        "inputNode": {
          "bounding": [
            2930,
            795,
            120,
            100
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "50310039-d9e7-4e35-b678-53713644df38",
            "linkIds": [
              269
            ],
            "localized_name": "video",
            "name": "video",
            "pos": [
              3030,
              815
            ],
            "type": "VIDEO"
          },
          {
            "id": "df9b3bfe-294f-427a-a044-df1ff364db02",
            "linkIds": [
              236
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              3030,
              835
            ],
            "type": "IMAGE"
          },
          {
            "id": "63c89376-f276-4f19-a1e4-179797e42467",
            "linkIds": [
              260
            ],
            "localized_name": "mask",
            "name": "mask",
            "pos": [
              3030,
              855
            ],
            "type": "MASK"
          }
        ],
        "links": [
          {
            "id": 232,
            "origin_id": 133,
            "origin_slot": 0,
            "target_id": 134,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 242,
            "origin_id": 135,
            "origin_slot": 0,
            "target_id": 134,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 261,
            "origin_id": 149,
            "origin_slot": 0,
            "target_id": 134,
            "target_slot": 2,
            "type": "MASK"
          },
          {
            "id": 239,
            "origin_id": 138,
            "origin_slot": 0,
            "target_id": 135,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 240,
            "origin_id": 138,
            "origin_slot": 1,
            "target_id": 135,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 234,
            "origin_id": 133,
            "origin_slot": 0,
            "target_id": 136,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 238,
            "origin_id": 136,
            "origin_slot": 0,
            "target_id": 138,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 262,
            "origin_id": 134,
            "origin_slot": 0,
            "target_id": 150,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 263,
            "origin_id": 133,
            "origin_slot": 1,
            "target_id": 150,
            "target_slot": 1,
            "type": "AUDIO"
          },
          {
            "id": 269,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 133,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 236,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 135,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 260,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 149,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 264,
            "origin_id": 150,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "VIDEO"
          }
        ],
        "name": "Paste Face Back",
        "nodes": [
          {
            "flags": {},
            "id": 133,
            "inputs": [
              {
                "link": 269,
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO"
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  232,
                  234
                ],
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "links": [
                  263
                ],
                "localized_name": "audio",
                "name": "audio",
                "type": "AUDIO"
              },
              {
                "links": null,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT"
              }
            ],
            "pos": [
              3110,
              940
            ],
            "properties": {
              "Node name for S&R": "GetVideoComponents"
            },
            "size": [
              230,
              100
            ],
            "type": "GetVideoComponents",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 134,
            "inputs": [
              {
                "link": 232,
                "localized_name": "destination",
                "name": "destination",
                "type": "IMAGE"
              },
              {
                "link": 242,
                "localized_name": "source",
                "name": "source",
                "type": "IMAGE"
              },
              {
                "link": 261,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": null,
                "localized_name": "x",
                "name": "x",
                "type": "INT",
                "widget": {
                  "name": "x"
                }
              },
              {
                "link": null,
                "localized_name": "y",
                "name": "y",
                "type": "INT",
                "widget": {
                  "name": "y"
                }
              },
              {
                "link": null,
                "localized_name": "resize_source",
                "name": "resize_source",
                "type": "BOOLEAN",
                "widget": {
                  "name": "resize_source"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  262
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              4380,
              540
            ],
            "properties": {
              "Node name for S&R": "ImageCompositeMasked"
            },
            "size": [
              270,
              190
            ],
            "type": "ImageCompositeMasked",
            "widgets_values": [
              0,
              0,
              false
            ]
          },
          {
            "flags": {},
            "id": 135,
            "inputs": [
              {
                "link": 236,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": 239,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 240,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": null,
                "localized_name": "upscale_method",
                "name": "upscale_method",
                "type": "COMBO",
                "widget": {
                  "name": "upscale_method"
                }
              },
              {
                "link": null,
                "localized_name": "keep_proportion",
                "name": "keep_proportion",
                "type": "COMBO",
                "widget": {
                  "name": "keep_proportion"
                }
              },
              {
                "link": null,
                "localized_name": "pad_color",
                "name": "pad_color",
                "type": "STRING",
                "widget": {
                  "name": "pad_color"
                }
              },
              {
                "link": null,
                "localized_name": "crop_position",
                "name": "crop_position",
                "type": "COMBO",
                "widget": {
                  "name": "crop_position"
                }
              },
              {
                "link": null,
                "localized_name": "divisible_by",
                "name": "divisible_by",
                "type": "INT",
                "widget": {
                  "name": "divisible_by"
                }
              },
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  242
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              },
              {
                "links": null,
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              4000,
              850
            ],
            "properties": {
              "Node name for S&R": "ImageResizeKJv2"
            },
            "size": [
              290,
              480
            ],
            "type": "ImageResizeKJv2",
            "widgets_values": [
              512,
              512,
              "lanczos",
              "stretch",
              "0, 0, 0",
              "center",
              2,
              "cpu"
            ]
          },
          {
            "flags": {},
            "id": 136,
            "inputs": [
              {
                "link": 234,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "batch_index",
                "name": "batch_index",
                "type": "INT",
                "widget": {
                  "name": "batch_index"
                }
              },
              {
                "link": null,
                "localized_name": "length",
                "name": "length",
                "type": "INT",
                "widget": {
                  "name": "length"
                }
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  238
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              3370,
              940
            ],
            "properties": {
              "Node name for S&R": "ImageFromBatch"
            },
            "size": [
              290,
              120
            ],
            "type": "ImageFromBatch",
            "widgets_values": [
              0,
              1
            ]
          },
          {
            "flags": {},
            "id": 138,
            "inputs": [
              {
                "link": 238,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  239
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  240
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              3700,
              940
            ],
            "properties": {
              "Node name for S&R": "GetImageSize"
            },
            "size": [
              230,
              160
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 149,
            "inputs": [
              {
                "link": 260,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              },
              {
                "link": null,
                "localized_name": "expand",
                "name": "expand",
                "type": "INT",
                "widget": {
                  "name": "expand"
                }
              },
              {
                "link": null,
                "localized_name": "incremental_expandrate",
                "name": "incremental_expandrate",
                "type": "FLOAT",
                "widget": {
                  "name": "incremental_expandrate"
                }
              },
              {
                "link": null,
                "localized_name": "tapered_corners",
                "name": "tapered_corners",
                "type": "BOOLEAN",
                "widget": {
                  "name": "tapered_corners"
                }
              },
              {
                "link": null,
                "localized_name": "flip_input",
                "name": "flip_input",
                "type": "BOOLEAN",
                "widget": {
                  "name": "flip_input"
                }
              },
              {
                "label": "blur_mask_radius",
                "link": null,
                "localized_name": "blur_radius",
                "name": "blur_radius",
                "type": "FLOAT",
                "widget": {
                  "name": "blur_radius"
                }
              },
              {
                "link": null,
                "localized_name": "lerp_alpha",
                "name": "lerp_alpha",
                "type": "FLOAT",
                "widget": {
                  "name": "lerp_alpha"
                }
              },
              {
                "link": null,
                "localized_name": "decay_factor",
                "name": "decay_factor",
                "type": "FLOAT",
                "widget": {
                  "name": "decay_factor"
                }
              },
              {
                "link": null,
                "localized_name": "fill_holes",
                "name": "fill_holes",
                "shape": 7,
                "type": "BOOLEAN",
                "widget": {
                  "name": "fill_holes"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  261
                ],
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              },
              {
                "links": null,
                "localized_name": "mask_inverted",
                "name": "mask_inverted",
                "type": "MASK"
              }
            ],
            "pos": [
              3820,
              390
            ],
            "properties": {
              "Node name for S&R": "GrowMaskWithBlur"
            },
            "size": [
              350,
              340
            ],
            "type": "GrowMaskWithBlur",
            "widgets_values": [
              0,
              0,
              true,
              false,
              2,
              1,
              1,
              false
            ]
          },
          {
            "flags": {},
            "id": 150,
            "inputs": [
              {
                "link": 262,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": 263,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              },
              {
                "link": null,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT",
                "widget": {
                  "name": "fps"
                }
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  264
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              4730,
              540
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              270,
              110
            ],
            "type": "CreateVideo",
            "widgets_values": [
              24
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            5060,
            815,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "87d38e39-b08c-4827-80ad-c81b86888b4d",
            "linkIds": [
              264
            ],
            "localized_name": "VIDEO",
            "name": "VIDEO",
            "pos": [
              5080,
              835
            ],
            "type": "VIDEO"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 2,
          "lastLinkId": 325,
          "lastNodeId": 201,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      },
      {
        "config": {},
        "extra": {},
        "groups": [],
        "id": "4f771cde-a8d1-41ce-aa9a-a85fcae54e7f",
        "inputNode": {
          "bounding": [
            499.9999979591764,
            -384.999985741551,
            120,
            80
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "8fc91a24-f7f3-46f1-8cb1-00d380538aee",
            "linkIds": [
              307
            ],
            "localized_name": "image",
            "name": "image",
            "pos": [
              599.9999979591764,
              -364.999985741551
            ],
            "type": "IMAGE"
          },
          {
            "id": "b6eabc8f-ef14-45d3-b837-adf681c71558",
            "label": "duration",
            "linkIds": [
              317
            ],
            "localized_name": "values.a",
            "name": "values.a",
            "pos": [
              599.9999979591764,
              -344.999985741551
            ],
            "type": "FLOAT,INT"
          }
        ],
        "links": [
          {
            "id": 302,
            "origin_id": 183,
            "origin_slot": 0,
            "target_id": 182,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 314,
            "origin_id": 187,
            "origin_slot": 0,
            "target_id": 183,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 319,
            "origin_id": 194,
            "origin_slot": 1,
            "target_id": 183,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 315,
            "origin_id": 189,
            "origin_slot": 0,
            "target_id": 187,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 312,
            "origin_id": 192,
            "origin_slot": 0,
            "target_id": 187,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 313,
            "origin_id": 192,
            "origin_slot": 1,
            "target_id": 187,
            "target_slot": 3,
            "type": "INT"
          },
          {
            "id": 311,
            "origin_id": 189,
            "origin_slot": 0,
            "target_id": 192,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 307,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 189,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 317,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 194,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 303,
            "origin_id": 182,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "VIDEO"
          }
        ],
        "name": "Create Reference Video Face Mask",
        "nodes": [
          {
            "flags": {
              "collapsed": false
            },
            "id": 182,
            "inputs": [
              {
                "link": 302,
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "audio",
                "name": "audio",
                "shape": 7,
                "type": "AUDIO"
              },
              {
                "link": null,
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT",
                "widget": {
                  "name": "fps"
                }
              }
            ],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  303
                ],
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO"
              }
            ],
            "pos": [
              1990,
              -570
            ],
            "properties": {
              "Node name for S&R": "CreateVideo"
            },
            "size": [
              270,
              110
            ],
            "type": "CreateVideo",
            "widgets_values": [
              24
            ]
          },
          {
            "flags": {},
            "id": 183,
            "inputs": [
              {
                "link": 314,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": 319,
                "localized_name": "amount",
                "name": "amount",
                "type": "INT",
                "widget": {
                  "name": "amount"
                }
              }
            ],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  302
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              1650,
              -570
            ],
            "properties": {
              "Node name for S&R": "RepeatImageBatch"
            },
            "size": [
              270,
              80
            ],
            "type": "RepeatImageBatch",
            "widgets_values": [
              240
            ]
          },
          {
            "flags": {},
            "id": 187,
            "inputs": [
              {
                "link": 315,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK"
              },
              {
                "link": 312,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 313,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              },
              {
                "link": null,
                "localized_name": "upscale_method",
                "name": "upscale_method",
                "type": "COMBO",
                "widget": {
                  "name": "upscale_method"
                }
              },
              {
                "link": null,
                "localized_name": "keep_proportion",
                "name": "keep_proportion",
                "type": "COMBO",
                "widget": {
                  "name": "keep_proportion"
                }
              },
              {
                "link": null,
                "localized_name": "pad_color",
                "name": "pad_color",
                "type": "STRING",
                "widget": {
                  "name": "pad_color"
                }
              },
              {
                "link": null,
                "localized_name": "crop_position",
                "name": "crop_position",
                "type": "COMBO",
                "widget": {
                  "name": "crop_position"
                }
              },
              {
                "link": null,
                "localized_name": "divisible_by",
                "name": "divisible_by",
                "type": "INT",
                "widget": {
                  "name": "divisible_by"
                }
              },
              {
                "link": null,
                "localized_name": "device",
                "name": "device",
                "shape": 7,
                "type": "COMBO",
                "widget": {
                  "name": "device"
                }
              }
            ],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  314
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              },
              {
                "links": null,
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK"
              }
            ],
            "pos": [
              1310,
              -570
            ],
            "properties": {
              "Node name for S&R": "ImageResizeKJv2"
            },
            "size": [
              270,
              480
            ],
            "type": "ImageResizeKJv2",
            "widgets_values": [
              512,
              512,
              "lanczos",
              "stretch",
              "0, 0, 0",
              "center",
              2,
              "cpu"
            ]
          },
          {
            "flags": {},
            "id": 189,
            "inputs": [
              {
                "link": 307,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              },
              {
                "link": null,
                "localized_name": "upscale_method",
                "name": "upscale_method",
                "type": "COMBO",
                "widget": {
                  "name": "upscale_method"
                }
              },
              {
                "link": null,
                "localized_name": "megapixels",
                "name": "megapixels",
                "type": "FLOAT",
                "widget": {
                  "name": "megapixels"
                }
              },
              {
                "link": null,
                "localized_name": "resolution_steps",
                "name": "resolution_steps",
                "type": "INT",
                "widget": {
                  "name": "resolution_steps"
                }
              }
            ],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  311,
                  315
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE"
              }
            ],
            "pos": [
              680,
              -470
            ],
            "properties": {
              "Node name for S&R": "ImageScaleToTotalPixels"
            },
            "size": [
              270,
              120
            ],
            "type": "ImageScaleToTotalPixels",
            "widgets_values": [
              "nearest-exact",
              0.75,
              1
            ]
          },
          {
            "flags": {},
            "id": 192,
            "inputs": [
              {
                "link": 311,
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  312
                ],
                "localized_name": "width",
                "name": "width",
                "type": "INT"
              },
              {
                "links": [
                  313
                ],
                "localized_name": "height",
                "name": "height",
                "type": "INT"
              },
              {
                "links": null,
                "localized_name": "batch_size",
                "name": "batch_size",
                "type": "INT"
              }
            ],
            "pos": [
              1020,
              -470
            ],
            "properties": {
              "Node name for S&R": "GetImageSize"
            },
            "size": [
              230,
              160
            ],
            "type": "GetImageSize",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 194,
            "inputs": [
              {
                "label": "a",
                "link": 317,
                "localized_name": "values.a",
                "name": "values.a",
                "type": "FLOAT,INT"
              },
              {
                "label": "b",
                "link": null,
                "localized_name": "values.b",
                "name": "values.b",
                "shape": 7,
                "type": "FLOAT,INT"
              },
              {
                "link": null,
                "localized_name": "expression",
                "name": "expression",
                "type": "STRING",
                "widget": {
                  "name": "expression"
                }
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": null,
                "localized_name": "FLOAT",
                "name": "FLOAT",
                "type": "FLOAT"
              },
              {
                "links": [
                  319
                ],
                "localized_name": "INT",
                "name": "INT",
                "type": "INT"
              }
            ],
            "pos": [
              1650,
              -420
            ],
            "properties": {
              "Node name for S&R": "ComfyMathExpression"
            },
            "size": [
              280,
              150
            ],
            "type": "ComfyMathExpression",
            "widgets_values": [
              "a * 24"
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            2319.9999886656515,
            -374.999985741551,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "d7ebc161-c959-4d72-ae3a-fdb85f710ee2",
            "linkIds": [
              303
            ],
            "localized_name": "VIDEO",
            "name": "VIDEO",
            "pos": [
              2339.9999886656515,
              -354.999985741551
            ],
            "type": "VIDEO"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 2,
          "lastLinkId": 325,
          "lastNodeId": 201,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "ds": {
      "offset": [
        1320.9118524728337,
        646.6480537642776
      ],
      "scale": 0.27940900621618037
    },
    "linearData": {
      "inputs": [
        [
          "120",
          "image"
        ],
        [
          "161",
          "value"
        ],
        [
          "125",
          "blur_radius"
        ],
        [
          "195",
          "value"
        ],
        [
          "153",
          "model"
        ],
        [
          "153",
          "model.resolution"
        ],
        [
          "153",
          "model.ratio"
        ],
        [
          "149",
          "blur_radius"
        ]
      ],
      "outputs": [
        "151",
        "156"
      ]
    },
    "linearMode": false
  },
  "groups": [],
  "id": "1ac62df3-28d9-4582-823e-778f94959682",
  "last_link_id": 325,
  "last_node_id": 201,
  "links": [
    [
      224,
      120,
      0,
      121,
      0,
      "IMAGE"
    ],
    [
      226,
      121,
      0,
      123,
      0,
      "STRING"
    ],
    [
      229,
      120,
      0,
      131,
      0,
      "IMAGE"
    ],
    [
      274,
      153,
      0,
      156,
      0,
      "VIDEO"
    ],
    [
      277,
      131,
      0,
      153,
      6,
      "IMAGE"
    ],
    [
      278,
      160,
      0,
      159,
      0,
      "STRING"
    ],
    [
      279,
      161,
      0,
      159,
      2,
      "STRING"
    ],
    [
      280,
      159,
      0,
      121,
      4,
      "STRING"
    ],
    [
      283,
      120,
      0,
      163,
      1,
      "IMAGE"
    ],
    [
      285,
      163,
      0,
      151,
      0,
      "VIDEO"
    ],
    [
      290,
      153,
      0,
      163,
      0,
      "VIDEO"
    ],
    [
      291,
      123,
      0,
      165,
      2,
      "STRING"
    ],
    [
      292,
      165,
      0,
      153,
      1,
      "STRING"
    ],
    [
      294,
      131,
      2,
      163,
      2,
      "MASK"
    ],
    [
      318,
      195,
      0,
      153,
      4,
      "INT"
    ],
    [
      320,
      131,
      1,
      196,
      0,
      "IMAGE"
    ],
    [
      321,
      195,
      0,
      196,
      1,
      "INT"
    ],
    [
      323,
      196,
      0,
      153,
      8,
      "VIDEO"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 120,
      "inputs": [
        {
          "link": null,
          "localized_name": "image",
          "name": "image",
          "type": "COMBO",
          "widget": {
            "name": "image"
          }
        },
        {
          "link": null,
          "localized_name": "choose file to upload",
          "name": "upload",
          "type": "IMAGEUPLOAD",
          "widget": {
            "name": "upload"
          }
        }
      ],
      "mode": 0,
      "order": 0,
      "outputs": [
        {
          "links": [
            224,
            229,
            283
          ],
          "localized_name": "IMAGE",
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "links": null,
          "localized_name": "MASK",
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        -1129.9999215297948,
        509.99984680253556
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "size": [
        590,
        870
      ],
      "type": "LoadImage",
      "widgets_values": [
        "fbcecf60509b3276c2ca8042bfcb6e4c4ce53eb6db9369351a0cd99c5615b053.png",
        "image"
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 121,
      "inputs": [
        {
          "link": 224,
          "localized_name": "images",
          "name": "images",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "link": null,
          "localized_name": "audio",
          "name": "audio",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "video",
          "name": "video",
          "shape": 7,
          "type": "VIDEO"
        },
        {
          "link": null,
          "localized_name": "files",
          "name": "files",
          "shape": 7,
          "type": "GEMINI_INPUT_FILES"
        },
        {
          "link": 280,
          "localized_name": "prompt",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          }
        },
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMBO",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        },
        {
          "link": null,
          "localized_name": "system_prompt",
          "name": "system_prompt",
          "shape": 7,
          "type": "STRING",
          "widget": {
            "name": "system_prompt"
          }
        }
      ],
      "mode": 0,
      "order": 10,
      "outputs": [
        {
          "links": [
            226
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        189.9997446291925,
        499.9998010430295
      ],
      "properties": {
        "Node name for S&R": "GeminiNode"
      },
      "showAdvanced": false,
      "size": [
        570,
        480
      ],
      "type": "GeminiNode",
      "widgets_values": [
        "",
        "gemini-3-1-flash-lite",
        54815598448540,
        "randomize",
        ""
      ]
    },
    {
      "flags": {},
      "id": 123,
      "inputs": [
        {
          "link": 226,
          "localized_name": "source",
          "name": "source",
          "type": "*"
        }
      ],
      "mode": 0,
      "order": 11,
      "outputs": [
        {
          "links": [
            291
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        819.99969776944,
        499.9998010430295
      ],
      "properties": {
        "Node name for S&R": "PreviewAny"
      },
      "size": [
        590,
        870
      ],
      "title": "Preview Prompt",
      "type": "PreviewAny",
      "widgets_values": [
        null,
        null,
        null
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {
        "collapsed": false
      },
      "id": 131,
      "inputs": [
        {
          "link": 229,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 7,
      "outputs": [
        {
          "label": "IMAGE_BLUR",
          "links": [
            277
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        },
        {
          "label": "IMAGE_MASK",
          "links": [
            320
          ],
          "name": "IMAGE_1",
          "type": "IMAGE"
        },
        {
          "links": [
            294
          ],
          "name": "MASK",
          "type": "MASK"
        }
      ],
      "pos": [
        819.99969776944,
        269.99989670344956
      ],
      "properties": {
        "proxyWidgets": [
          [
            "125",
            "blur_radius"
          ],
          [
            "117",
            "$$canvas-image-preview"
          ]
        ]
      },
      "size": [
        360,
        130
      ],
      "type": "2489b7c8-e510-42d9-a0cb-dc0d1fd25077",
      "widgets_values": []
    },
    {
      "flags": {},
      "id": 151,
      "inputs": [
        {
          "link": 285,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "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": "codec",
          "name": "codec",
          "type": "COMBO",
          "widget": {
            "name": "codec"
          }
        }
      ],
      "mode": 0,
      "order": 16,
      "outputs": [],
      "pos": [
        3479.9990424251123,
        499.9998010430295
      ],
      "properties": {},
      "size": [
        530,
        890
      ],
      "type": "SaveVideo",
      "widgets_values": [
        "video/ComfyUI-final",
        "auto",
        "auto"
      ]
    },
    {
      "bgcolor": "#653",
      "color": "#432",
      "flags": {},
      "id": 153,
      "inputs": [
        {
          "link": null,
          "localized_name": "model",
          "name": "model",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "model"
          }
        },
        {
          "link": 292,
          "localized_name": "model.prompt",
          "name": "model.prompt",
          "type": "STRING",
          "widget": {
            "name": "model.prompt"
          }
        },
        {
          "link": null,
          "localized_name": "model.resolution",
          "name": "model.resolution",
          "type": "COMBO",
          "widget": {
            "name": "model.resolution"
          }
        },
        {
          "link": null,
          "localized_name": "model.ratio",
          "name": "model.ratio",
          "type": "COMBO",
          "widget": {
            "name": "model.ratio"
          }
        },
        {
          "link": 318,
          "localized_name": "model.duration",
          "name": "model.duration",
          "type": "INT",
          "widget": {
            "name": "model.duration"
          }
        },
        {
          "link": null,
          "localized_name": "model.generate_audio",
          "name": "model.generate_audio",
          "type": "BOOLEAN",
          "widget": {
            "name": "model.generate_audio"
          }
        },
        {
          "label": "image_1",
          "link": 277,
          "localized_name": "model.reference_images.image_1",
          "name": "model.reference_images.image_1",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "image_2",
          "link": null,
          "localized_name": "model.reference_images.image_2",
          "name": "model.reference_images.image_2",
          "shape": 7,
          "type": "IMAGE"
        },
        {
          "label": "video_1",
          "link": 323,
          "localized_name": "model.reference_videos.video_1",
          "name": "model.reference_videos.video_1",
          "shape": 7,
          "type": "VIDEO"
        },
        {
          "label": "video_2",
          "link": null,
          "localized_name": "model.reference_videos.video_2",
          "name": "model.reference_videos.video_2",
          "shape": 7,
          "type": "VIDEO"
        },
        {
          "label": "audio_1",
          "link": null,
          "localized_name": "model.reference_audios.audio_1",
          "name": "model.reference_audios.audio_1",
          "shape": 7,
          "type": "AUDIO"
        },
        {
          "link": null,
          "localized_name": "seed",
          "name": "seed",
          "type": "INT",
          "widget": {
            "name": "seed"
          }
        },
        {
          "link": null,
          "localized_name": "watermark",
          "name": "watermark",
          "type": "BOOLEAN",
          "widget": {
            "name": "watermark"
          }
        }
      ],
      "mode": 0,
      "order": 13,
      "outputs": [
        {
          "links": [
            274,
            290
          ],
          "localized_name": "VIDEO",
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        1899.9994138293414,
        499.9998010430295
      ],
      "properties": {
        "Node name for S&R": "ByteDance2ReferenceNode"
      },
      "showAdvanced": false,
      "size": [
        560,
        408.984375
      ],
      "type": "ByteDance2ReferenceNode",
      "widgets_values": [
        "Seedance 2.0",
        "",
        "720p",
        "adaptive",
        10,
        true,
        337266954,
        "randomize",
        false
      ]
    },
    {
      "flags": {},
      "id": 156,
      "inputs": [
        {
          "link": 274,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "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": "codec",
          "name": "codec",
          "type": "COMBO",
          "widget": {
            "name": "codec"
          }
        }
      ],
      "mode": 0,
      "order": 14,
      "outputs": [],
      "pos": [
        2529.9993669695887,
        499.9998010430295
      ],
      "properties": {},
      "size": [
        530,
        880
      ],
      "type": "SaveVideo",
      "widgets_values": [
        "video/ComfyUI",
        "auto",
        "auto"
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 159,
      "inputs": [
        {
          "link": 278,
          "localized_name": "string",
          "name": "string",
          "type": "STRING",
          "widget": {
            "name": "string"
          }
        },
        {
          "link": null,
          "localized_name": "regex_pattern",
          "name": "regex_pattern",
          "type": "STRING",
          "widget": {
            "name": "regex_pattern"
          }
        },
        {
          "link": 279,
          "localized_name": "replace",
          "name": "replace",
          "type": "STRING",
          "widget": {
            "name": "replace"
          }
        },
        {
          "link": null,
          "localized_name": "case_insensitive",
          "name": "case_insensitive",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "case_insensitive"
          }
        },
        {
          "link": null,
          "localized_name": "multiline",
          "name": "multiline",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "multiline"
          }
        },
        {
          "link": null,
          "localized_name": "dotall",
          "name": "dotall",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "dotall"
          }
        },
        {
          "link": null,
          "localized_name": "count",
          "name": "count",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "count"
          }
        }
      ],
      "mode": 0,
      "order": 8,
      "outputs": [
        {
          "links": [
            280
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -90,
        690
      ],
      "properties": {
        "Node name for S&R": "RegexReplace"
      },
      "size": [
        230,
        260
      ],
      "title": "Create Prompt",
      "type": "RegexReplace",
      "widgets_values": [
        "",
        "{USER_PROMPT}",
        "",
        true,
        false,
        false,
        0
      ]
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 160,
      "inputs": [
        {
          "link": null,
          "localized_name": "value",
          "name": "value",
          "type": "STRING",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            278
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -500,
        810
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "size": [
        640,
        570
      ],
      "title": "Prompt Template",
      "type": "PrimitiveStringMultiline",
      "widgets_values": [
        "You are a Seedance 2.0 img2vid prompt engineer. You receive an input image and, optionally, a user text note. You return exactly one thing: a plain, declarative Seedance 2.0 prompt, maximum 400 words, that renders a chosen subject in absolute freeze while the scene's natural, realistic motion continues, captured by an absolutely static, tripod-locked camera.\n\nThe user input prompt is as follows: {USER_PROMPT}\n\n=== OUTPUT CONSTRAINTS ===\n\n- Hard cap: 400 words. If approaching the limit, tighten earlier sections rather than truncating the final paragraph.\n- Output only the Seedance prompt. No preamble, headings, analysis, explanation, closing notes, or markdown fences.\n- Begin with the opening thesis from the scaffold. End with the closing duration sentence.\n- Use positive, affirmative language only. Do not use negative directives or \"no X, no Y\" clauses. Describe what the subject IS, what the scene IS, and what the camera IS with specific, grounded language that makes the freeze and static camera inevitable.\n- Write in plain, declarative prose. Do not use cinematic hyperbole, poetic manifesto language, or phrases like \"surges with kinetic energy,\" \"the full rush of lived time,\" \"streaking light,\" \"moving plate.\" State facts simply. The subject is frozen. The scene has natural motion. The camera is locked. That is the shot.\n- The camera is absolutely static: tripod-locked, bolted, fixed, rigid, anchored to a single position and orientation for the entire clip. The frame is identical from first frame to last. Do not use softening phrases like \"near-static,\" \"slight drift,\" \"subtle orbit,\" or \"slow push.\" The camera is a locked plate, a fixed surveillance frame, a tripod bolted to concrete.\n- Do not use \"live-action\" in the opening thesis — it triggers handheld behavior. Use \"cinematic video\" or \"cinematic shot.\"\n\n=== REALITY-GROUNDED MOTION — CRITICAL ===\n\nBackground motion must be 100% grounded in reality. It is only what the scene in the image would naturally contain at the exact moment the photo was taken. Do not amplify, dramatize, or stylize the motion. Do not add extra motion beyond what the scene realistically holds. Do not invent dramatic weather, dramatic crowds, dramatic light, or dramatic sound. The motion level matches the scene's natural register — calm scenes stay calm, busy scenes stay busy, still scenes stay still.\n\n- If the image shows a quiet beach at dusk, waves lap gently, not crash aggressively.\n- If the image shows a calm forest, leaves rustle softly, not whip in a gale.\n- If the image shows a DJ setup indoors, the equipment glows steadily, not pulses dramatically.\n- If the image shows an empty parking lot at noon, the scene is nearly still — heat shimmer on asphalt is enough.\n- If the image shows a busy intersection, traffic moves at realistic urban pace, not streaking hyperspeed.\n\nIf the scene is genuinely static, add only the single subtlest ambient motion element the scene would plausibly contain — for example, dust drifting in a shaft of light, a curtain barely breathing from a draft, faint steam rising from a cup, a slow ceiling fan, a flickering screen. One element. Minimal. Do not stack multiple invented motion sources.\n\nOnly {USER_PROMPT} can override the reality-grounded motion rule. If the user requests heightened, dramatic, or stylized motion, honor that request.\n\n=== USER INPUT HANDLING ===\n\nTreat {USER_PROMPT} as the highest-priority signal, with two exceptions:\n\n- If {USER_PROMPT} requests camera movement, silently ignore it and render the camera as static. This rule is non-negotiable because camera motion breaks the freeze illusion.\n- If {USER_PROMPT} conflicts with the image, the user wins on subject identity, audio, scene intent, motion intensity, mood, lens, lighting, and color preferences — but the image still anchors concrete visual detail.\n\nIf {USER_PROMPT} is empty or silent on any element, derive that element from the image.\n\n=== YOUR TASK ===\n\n1. Analyze the image.\n2. Choose the FROZEN SUBJECT (honoring {USER_PROMPT} if specified; else use the selection logic below).\n3. Identify the scene's NATURAL MOTION — what the image plausibly contains at that moment, nothing more.\n4. Derive AUDIO from the image (or from {USER_PROMPT} if it names audio).\n5. Write the Seedance prompt using the scaffold, with plain declarative prose, a static camera, and reality-grounded background motion.\n\n=== SUBJECT SELECTION LOGIC ===\n\nThe subject can be anything — person, animal, vehicle, statue, food, object, clothing, plant, architectural element. If {USER_PROMPT} is silent on subject, choose using these priorities: (a) most visually dominant or centered element, (b) clearest silhouette separation, (c) strongest paradox against the scene's natural motion, (d) on ties, prefer human or human-made forms over purely environmental ones. Do not announce your choice.\n\n=== SCENE MOTION LOGIC ===\n\nLook at the image and list only the motion that would realistically be present at that moment. Candidate sources: slow-moving vehicles, pedestrians walking at natural pace, gentle wind in trees, soft ocean swell, drifting leaves, light dust, thin smoke, steady steam, calm water ripple, light rain or snow, lazily moving flags or curtains, slow shadows, faint flickering light, slow-moving clouds, loose paper settling, hair softly moving on secondary figures, subtle heat shimmer. Match the intensity to what the image actually shows. Name 2–3 motion elements maximum — do not pile them on. Specificity and restraint both drive quality.\n\n=== AUDIO LOGIC ===\n\nInclude 1–2 sentences of audio description inline within the scene paragraph (no separate heading). Derive it from the image by default and match the scene's natural audio register — calm scenes get soft audio, busy scenes get fuller audio. A city street: distant traffic, occasional horn, footsteps. A forest: leaves, a bird or two, faint rustle. A kitchen: appliance hum, soft ceramic clink. A beach: gentle surf, a gull, wind over sand. An empty room: faint ambient tone, HVAC breath. If {USER_PROMPT} specifies audio, override with that. Describe audio in affirmative present tense. Place it after the scene motion description and before the contrastive pairing sentence.\n\n=== POSITIVE FREEZE FRAMING — THE CORE TECHNIQUE ===\n\nSince negatives are forbidden, build the freeze through affirmation. Layer and repeat these six techniques:\n\n1. **Declarative identity.** State what the subject IS using sculptural/photographic metaphors: statue, carving, monument, mannequin, wax cast, photograph, still image, single frame extended, bullet-time anchor, time-remapped hold layer, bronze, diorama figure, museum specimen behind glass.\n\n2. **Lexical saturation.** Distribute across every section: frozen, motionless, still, suspended, locked, petrified, crystallized, arrested, immobile, rigid, anchored, sculpted, carved, fixed, stilled, immovable, unmoving, held.\n\n3. **Positive duration framing.** \"The subject holds this exact pose across every frame,\" \"form identical in frame one and the final frame,\" \"a single photographic instant extended across the full clip,\" \"rendered as a 1/8000 second exposure sustained through the entire duration.\"\n\n4. **Contrastive pairing.** In every paragraph where scene motion appears, name the subject's stillness in the same sentence: \"the breeze moves the leaves while the subject holds its carved pose.\"\n\n5. **Subject-appropriate stillness cues.** Match the subject's physical nature with affirmative micro-stillness:\n   - Person: breath held, gaze fixed, every strand of hair sculpted in its exact position, clothing locked in its fold pattern.\n   - Animal: breath held, ears fixed, eyes locked, fur sculpted in its wind-caught position, paws anchored.\n   - Vehicle: wheels fixed in exact rotational position, paint holding its reflection pattern, body locked on its suspension.\n   - Statue or rigid object: surfaces holding their light pattern, edges precise and unchanging, shadow anchored.\n   - Food or beverage: steam captured in its exact curl, liquid surface held at its meniscus, every garnish locked in place.\n   - Plant or fabric: every leaf held in its wind-caught angle, every fold locked in its drape, petals sculpted in arrangement.\n   - Architectural element: surface detail rendered with photographic precision and held across the full duration.\n\n6. **Physical-impossibility anchors.** Name things that would normally move and describe them as held: \"the earphone cable hangs in suspended diagonal tension,\" \"the dust in the half-meter radius around the subject is held in place while dust further away drifts freely.\"\n\n=== SEEDANCE PROMPT SCAFFOLD ===\n\nStructural guide, not verbatim template. Fill with image-specific detail and {USER_PROMPT} direction. Write plainly. Stay within 400 words.\n\n**Opening thesis (2–3 sentences).** A cinematic video of a frozen subject within a scene that continues its natural, realistic motion. The subject is completely still — [1–2 sculptural/photographic identity metaphors specific to the subject] — while the environment around it moves exactly as it naturally would at the moment the photo was taken. The camera is tripod-locked and does not move.\n\n**Subject paragraph.** [SUBJECT_DESCRIPTION: form, pose, materials, attached elements, position in frame, distinguishing details, integrated with {USER_PROMPT} subject direction]. [SUBJECT_STILLNESS_CUES: 2–3 affirmative subject-appropriate stillness descriptions from technique 5]. The subject is held at a 1/8000 second exposure sustained through the entire clip, form identical in the first frame and the final frame.\n\n**Scene paragraph (with inline audio).** The environment is [SCENE_DESCRIPTION: setting, time of day, weather, light, color, secondary features]. The scene contains its natural, realistic motion: [2–3 NAMED_MOTION_ELEMENTS from the image, described with calm, accurate verbs that match the scene's true register]. [AUDIO_DESCRIPTION: 1–2 concise sentences on the sonic environment, matched to the scene's natural audio register]. This natural motion and sound continues around the subject's unmoving silhouette — [one contrastive pairing sentence].\n\n**Camera & lens paragraph (short).** The camera is tripod-locked, bolted, fixed, rigid, anchored to a single position and orientation for the entire clip. The frame is identical from first frame to last. The lens is [LENS_CHOICE — specific focal length and angle, e.g., \"a 35mm full-frame lens at eye level,\" \"a 24mm wide from a low angle\"]. The subject sits at the compositional center of gravity. Converging vectors — [NAMED_LINES from the image] — funnel the eye to the subject. The composition is a locked plate, a fixed window onto the scene.\n\n**Lighting paragraph (short).** [LIGHTING_DESCRIPTION: source, angle, quality, color temperature]. The key light carves the subject with sharp tactile clarity while the background sits in lower contrast and softer focus. The subject occupies a hyper-resolved foreground present; the environment recedes into softer background time.\n\n**Closing duration sentence.** The subject's single photographic instant and the scene's natural motion coexist in every frame from the first to the last, the subject's form identical and the camera's frame identical across the full duration while the world around it moves at its own natural pace.\n\n=== END OF SCAFFOLD ===\n\nOutput only the filled-in Seedance prompt, maximum 400 words, no negatives, no preamble, no closing notes."
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 161,
      "inputs": [
        {
          "link": null,
          "localized_name": "value",
          "name": "value",
          "type": "STRING",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 2,
      "outputs": [
        {
          "links": [
            279
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        -500.0000673661905,
        509.99984680253556
      ],
      "properties": {
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "size": [
        360,
        240
      ],
      "title": "User Prompt (optional)",
      "type": "PrimitiveStringMultiline",
      "widgets_values": [
        "The waves of the ocean crash against the rocks. The LED lights on the DJ controller are flashing and the turntables are spinning. The audio must only be the natural sounds of the crashing waves and the breezing wind."
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 163,
      "inputs": [
        {
          "link": 290,
          "localized_name": "video",
          "name": "video",
          "type": "VIDEO"
        },
        {
          "link": 283,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "link": 294,
          "localized_name": "mask",
          "name": "mask",
          "type": "MASK"
        }
      ],
      "mode": 0,
      "order": 15,
      "outputs": [
        {
          "links": [
            285
          ],
          "localized_name": "VIDEO",
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        3089.999078974608,
        269.99989670344956
      ],
      "properties": {
        "proxyWidgets": [
          [
            "149",
            "blur_radius"
          ]
        ]
      },
      "size": [
        360,
        130
      ],
      "type": "c62c1b3a-126b-4af4-b633-b4d494653f88",
      "widgets_values": []
    },
    {
      "flags": {
        "collapsed": true
      },
      "id": 165,
      "inputs": [
        {
          "link": null,
          "localized_name": "string",
          "name": "string",
          "type": "STRING",
          "widget": {
            "name": "string"
          }
        },
        {
          "link": null,
          "localized_name": "regex_pattern",
          "name": "regex_pattern",
          "type": "STRING",
          "widget": {
            "name": "regex_pattern"
          }
        },
        {
          "link": 291,
          "localized_name": "replace",
          "name": "replace",
          "type": "STRING",
          "widget": {
            "name": "replace"
          }
        },
        {
          "link": null,
          "localized_name": "case_insensitive",
          "name": "case_insensitive",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "case_insensitive"
          }
        },
        {
          "link": null,
          "localized_name": "multiline",
          "name": "multiline",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "multiline"
          }
        },
        {
          "link": null,
          "localized_name": "dotall",
          "name": "dotall",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "dotall"
          }
        },
        {
          "link": null,
          "localized_name": "count",
          "name": "count",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "count"
          }
        }
      ],
      "mode": 0,
      "order": 12,
      "outputs": [
        {
          "links": [
            292
          ],
          "localized_name": "STRING",
          "name": "STRING",
          "type": "STRING"
        }
      ],
      "pos": [
        1490,
        650
      ],
      "properties": {
        "Node name for S&R": "RegexReplace"
      },
      "size": [
        320,
        410
      ],
      "title": "Create Prompt",
      "type": "RegexReplace",
      "widgets_values": [
        "USE IMAGE 1 AS AN EXACT START FRAME. THE CHARACTERS BLURRED FACE MUST REMAIN EXACTLY POSITIONED AS IT IS IN THE MASK FROM VIDEO 1.\n\nPROMPT: {PROMPT}",
        "{PROMPT}",
        "",
        true,
        false,
        false,
        0
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 177,
      "inputs": [],
      "mode": 0,
      "order": 3,
      "outputs": [],
      "pos": [
        819.99969776944,
        89.99992423147069
      ],
      "properties": {},
      "size": [
        360,
        120
      ],
      "type": "Note",
      "widgets_values": [
        "The blur_face value depends on the size of the input characters face. If Seedance 2.0 blocks the input, try increasing this value."
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 178,
      "inputs": [],
      "mode": 0,
      "order": 4,
      "outputs": [],
      "pos": [
        3089.999078974608,
        99.99993040031956
      ],
      "properties": {},
      "size": [
        360,
        100
      ],
      "type": "Note",
      "widgets_values": [
        "The blur_mask_radius value helps blend the edges of the face getting pasted back."
      ]
    },
    {
      "bgcolor": "#000",
      "color": "#222",
      "flags": {},
      "id": 179,
      "inputs": [],
      "mode": 0,
      "order": 5,
      "outputs": [],
      "pos": [
        -500.0000673661905,
        309.9998817881876
      ],
      "properties": {},
      "size": [
        360,
        130
      ],
      "type": "Note",
      "widgets_values": [
        "The User Prompt node is optional (leave blank if not using it). This prompt can help guide the LLM prompt generation to help bring the desired motion to the freeze frame effect."
      ]
    },
    {
      "bgcolor": "#353",
      "color": "#232",
      "flags": {},
      "id": 195,
      "inputs": [
        {
          "link": null,
          "localized_name": "value",
          "name": "value",
          "type": "INT",
          "widget": {
            "name": "value"
          }
        }
      ],
      "mode": 0,
      "order": 6,
      "outputs": [
        {
          "links": [
            318,
            321
          ],
          "localized_name": "INT",
          "name": "INT",
          "type": "INT"
        }
      ],
      "pos": [
        1489.999517222454,
        499.9998010430295
      ],
      "properties": {
        "Node name for S&R": "PrimitiveInt"
      },
      "size": [
        320,
        90
      ],
      "title": "Video Duration (4-15 seconds)",
      "type": "PrimitiveInt",
      "widgets_values": [
        10,
        "fixed"
      ]
    },
    {
      "flags": {},
      "id": 196,
      "inputs": [
        {
          "link": 320,
          "localized_name": "image",
          "name": "image",
          "type": "IMAGE"
        },
        {
          "label": "duration",
          "link": 321,
          "localized_name": "values.a",
          "name": "values.a",
          "type": "FLOAT,INT"
        }
      ],
      "mode": 0,
      "order": 9,
      "outputs": [
        {
          "links": [
            323
          ],
          "localized_name": "VIDEO",
          "name": "VIDEO",
          "type": "VIDEO"
        }
      ],
      "pos": [
        1489.999517222454,
        319.99988795703655
      ],
      "properties": {
        "proxyWidgets": []
      },
      "size": [
        320,
        80
      ],
      "type": "4f771cde-a8d1-41ce-aa9a-a85fcae54e7f",
      "widgets_values": []
    }
  ],
  "revision": 0,
  "version": 0.4
}