{
  "id": "6a4074a7-1ccb-44c9-9e88-30e2428371ad",
  "revision": 0,
  "last_node_id": 546,
  "last_link_id": 1119,
  "nodes": [
    {
      "id": 330,
      "type": "Reroute",
      "pos": [
        1680,
        -600
      ],
      "size": [
        75,
        26
      ],
      "flags": {},
      "order": 28,
      "mode": 0,
      "inputs": [
        {
          "name": "",
          "type": "*",
          "link": 626
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "VAE",
          "links": [
            628,
            630
          ]
        }
      ],
      "properties": {
        "showOutputText": false,
        "horizontal": false
      }
    },
    {
      "id": 331,
      "type": "VAEDecodeTiled",
      "pos": [
        1830,
        -530
      ],
      "size": [
        210,
        150
      ],
      "flags": {
        "collapsed": true
      },
      "order": 71,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 627
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 628
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            638
          ]
        }
      ],
      "title": "VAE Decode",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "VAEDecodeTiled"
      },
      "widgets_values": [
        1024,
        64,
        64,
        8
      ],
      "color": "#332922",
      "bgcolor": "#593930"
    },
    {
      "id": 333,
      "type": "GetNode",
      "pos": [
        1830,
        -490
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            639
          ]
        }
      ],
      "title": "Get_overlay",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "overlay"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 334,
      "type": "GetNode",
      "pos": [
        1860,
        -450
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CROP_REGION",
          "type": "CROP_REGION",
          "links": [
            640
          ]
        }
      ],
      "title": "Get_cr",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "cr"
      ]
    },
    {
      "id": 335,
      "type": "PrimitiveBoolean",
      "pos": [
        -1120,
        -140
      ],
      "size": [
        210,
        58
      ],
      "flags": {
        "collapsed": true
      },
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "BOOLEAN",
          "type": "BOOLEAN",
          "links": [
            840
          ]
        }
      ],
      "title": "Don't touch",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.42",
        "Node name for S&R": "PrimitiveBoolean"
      },
      "widgets_values": [
        false
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 338,
      "type": "Switch conditioning [Crystools]",
      "pos": [
        240,
        -180
      ],
      "size": [
        270,
        78
      ],
      "flags": {
        "collapsed": true
      },
      "order": 58,
      "mode": 0,
      "inputs": [
        {
          "name": "on_true",
          "type": "CONDITIONING",
          "link": 632
        },
        {
          "name": "on_false",
          "type": "CONDITIONING",
          "link": 1093
        },
        {
          "name": "boolean",
          "type": "BOOLEAN",
          "widget": {
            "name": "boolean"
          },
          "link": 634
        }
      ],
      "outputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "links": [
            653
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-crystools",
        "ver": "1.26.6",
        "Node name for S&R": "Switch conditioning [Crystools]"
      },
      "widgets_values": [
        true
      ]
    },
    {
      "id": 340,
      "type": "GetNode",
      "pos": [
        -320,
        890
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "*",
          "type": "*",
          "links": [
            671
          ]
        }
      ],
      "title": "Get_ppres",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "ppres"
      ]
    },
    {
      "id": 342,
      "type": "Reroute",
      "pos": [
        40,
        -210
      ],
      "size": [
        75,
        26
      ],
      "flags": {},
      "order": 29,
      "mode": 0,
      "inputs": [
        {
          "name": "",
          "type": "*",
          "widget": {
            "name": "value"
          },
          "link": 636
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "BOOLEAN",
          "links": [
            634
          ]
        }
      ],
      "properties": {
        "showOutputText": false,
        "horizontal": false
      }
    },
    {
      "id": 343,
      "type": "ColorToMask",
      "pos": [
        -1450,
        -280
      ],
      "size": [
        270,
        178
      ],
      "flags": {
        "collapsed": true
      },
      "order": 55,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 637
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            687,
            691
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "1.1.2",
        "Node name for S&R": "ColorToMask"
      },
      "widgets_values": [
        false,
        255,
        255,
        255,
        255,
        1
      ]
    },
    {
      "id": 344,
      "type": "OverlayInpaintedImage",
      "pos": [
        1990,
        -530
      ],
      "size": [
        192.43026733398438,
        66
      ],
      "flags": {
        "collapsed": true
      },
      "order": 73,
      "mode": 0,
      "inputs": [
        {
          "name": "inpainted",
          "type": "IMAGE",
          "link": 638
        },
        {
          "name": "overlay_image",
          "type": "IMAGE",
          "link": 639
        },
        {
          "name": "crop_region",
          "type": "CROP_REGION",
          "link": 640
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            641
          ]
        }
      ],
      "title": "Overlay Inpainted",
      "properties": {
        "cnr_id": "comfyui-art-venture",
        "ver": "1.0.7",
        "Node name for S&R": "OverlayInpaintedImage",
        "aux_id": "m0rtus59/comfyui-art-venture"
      },
      "widgets_values": []
    },
    {
      "id": 345,
      "type": "GetNode",
      "pos": [
        2020,
        -490
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "BOOLEAN",
          "type": "BOOLEAN",
          "links": [
            643
          ]
        }
      ],
      "title": "Get_inpaint",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "inpaint"
      ]
    },
    {
      "id": 346,
      "type": "Switch image [Crystools]",
      "pos": [
        2170,
        -570
      ],
      "size": [
        270,
        78
      ],
      "flags": {
        "collapsed": true
      },
      "order": 85,
      "mode": 0,
      "inputs": [
        {
          "name": "on_true",
          "type": "IMAGE",
          "link": 641
        },
        {
          "name": "on_false",
          "type": "IMAGE",
          "link": 642
        },
        {
          "name": "boolean",
          "type": "BOOLEAN",
          "widget": {
            "name": "boolean"
          },
          "link": 643
        }
      ],
      "outputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "links": [
            674
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-crystools",
        "ver": "1.27.3",
        "Node name for S&R": "Switch image [Crystools]"
      },
      "widgets_values": [
        true
      ]
    },
    {
      "id": 349,
      "type": "LoadImage",
      "pos": [
        -290,
        310
      ],
      "size": [
        390,
        460
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            650
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            651
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "LoadImage",
        "image": "clipspace/clipspace-painted-masked-1769447466101.png [input]"
      },
      "widgets_values": [
        "clipspace/clipspace-painted-masked-77015504.png [input]",
        "image"
      ]
    },
    {
      "id": 351,
      "type": "InpaintModelConditioning",
      "pos": [
        760,
        230
      ],
      "size": [
        210,
        138
      ],
      "flags": {
        "collapsed": true
      },
      "order": 66,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 645
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 646
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 647
        },
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 648
        },
        {
          "name": "mask",
          "type": "MASK",
          "link": 649
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            676
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            677
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "links": [
            678
          ]
        }
      ],
      "title": "Inpaint",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.40",
        "Node name for S&R": "InpaintModelConditioning"
      },
      "widgets_values": [
        true
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 357,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -1530,
        -80
      ],
      "size": [
        440,
        160
      ],
      "flags": {
        "collapsed": true
      },
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            695
          ]
        }
      ],
      "title": "Code",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "import os\nfrom PIL import Image\nimport torchvision.transforms as T\nimport torch\n\n# --- Paths ---\ntemp_dir = os.path.join('.', 'ComfyUI', 'temp')\nos.makedirs(temp_dir, exist_ok=True)\nsave_path = os.path.join(temp_dir, 'imagebuffer.png')  # persistent buffer\n\n# --- Extract input tensor ---\ntensor = image1.tensor if hasattr(image1, 'tensor') else image1.image if hasattr(image1, 'image') else image1.data\n\n# Take first frame and first 3 channels, permute to [C,H,W]\ntensor = tensor[0, :, :, :3].permute(2, 0, 1)\n\n# Normalize if needed\nif tensor.max() > 1.0:\n    tensor = tensor / 255.0\n\n# Convert to PIL and tensor for comparison\nimg_pil = T.ToPILImage()(tensor)\ncurr_tensor = T.ToTensor()(img_pil)  # [C,H,W]\n\n# --- Compare with saved image ---\nif os.path.exists(save_path):\n    prev_img = Image.open(save_path).convert(\"RGB\")\n    prev_tensor = T.ToTensor()(prev_img)\n\n    # Resize if dimensions differ\n    if prev_tensor.shape != curr_tensor.shape:\n        prev_tensor = torch.nn.functional.interpolate(prev_tensor.unsqueeze(0), size=curr_tensor.shape[1:], mode='bilinear', align_corners=False).squeeze(0)\n\n    # Compute MSE\n    mse = torch.mean((curr_tensor - prev_tensor) ** 2).item()\nelse:\n    mse = 1.0  # force \"never\" on first run\n\n# --- Decide output with tolerance ---\nthreshold = 1e-3  # adjust tolerance: higher = more tolerant\nif mse < threshold:\n    text1.data = \"always\"\nelse:\n    text1.data = \"never\"\n\n# --- Save current image to buffer ---\nimg_pil.save(save_path)\n"
      ]
    },
    {
      "id": 358,
      "type": "ImageResizeKJv2",
      "pos": [
        -1630,
        -280
      ],
      "size": [
        270,
        360
      ],
      "flags": {
        "collapsed": true
      },
      "order": 46,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 660
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 661
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 662
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            637
          ]
        },
        {
          "name": "width",
          "type": "INT",
          "links": null
        },
        {
          "name": "height",
          "type": "INT",
          "links": null
        },
        {
          "name": "mask",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "1.1.3",
        "Node name for S&R": "ImageResizeKJv2"
      },
      "widgets_values": [
        512,
        512,
        "nearest-exact",
        "resize",
        "0, 0, 0",
        "center",
        2,
        "cpu"
      ]
    },
    {
      "id": 359,
      "type": "Exec Python Code Script",
      "pos": [
        -2020,
        -280
      ],
      "size": [
        290,
        790
      ],
      "flags": {
        "collapsed": true
      },
      "order": 30,
      "mode": 0,
      "inputs": [
        {
          "name": "image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 1082
        },
        {
          "name": "image2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "mask1",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "mask2",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "list1",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "dict1",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any1",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any2",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any3",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any4",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "raw_code",
          "type": "STRING",
          "widget": {
            "name": "raw_code"
          },
          "link": 664
        }
      ],
      "outputs": [
        {
          "name": "image1",
          "type": "*",
          "links": null
        },
        {
          "name": "image2",
          "type": "*",
          "links": null
        },
        {
          "name": "mask1",
          "type": "*",
          "links": null
        },
        {
          "name": "mask2",
          "type": "*",
          "links": null
        },
        {
          "name": "number1",
          "type": "*",
          "links": [
            661
          ]
        },
        {
          "name": "number2",
          "type": "*",
          "links": [
            662
          ]
        },
        {
          "name": "text1",
          "type": "*",
          "links": [
            665,
            697
          ]
        },
        {
          "name": "text2",
          "type": "*",
          "links": null
        },
        {
          "name": "list1",
          "type": "*",
          "links": null
        },
        {
          "name": "dict1",
          "type": "*",
          "links": null
        },
        {
          "name": "any1",
          "type": "*",
          "links": null
        },
        {
          "name": "any2",
          "type": "*",
          "links": null
        },
        {
          "name": "any3",
          "type": "*",
          "links": null
        },
        {
          "name": "any4",
          "type": "*",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "python-interpreter-node",
        "ver": "2.1.0",
        "Node name for S&R": "Exec Python Code Script"
      },
      "widgets_values": [
        "",
        0,
        0,
        "hello",
        "world",
        true,
        ""
      ]
    },
    {
      "id": 360,
      "type": "SetNode",
      "pos": [
        -1830,
        -310
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 39,
      "mode": 0,
      "inputs": [
        {
          "name": "*",
          "type": "*",
          "link": 665
        }
      ],
      "outputs": [
        {
          "name": "*",
          "type": "*",
          "links": []
        }
      ],
      "title": "Set_ppres",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": ""
      },
      "widgets_values": [
        "ppres"
      ]
    },
    {
      "id": 364,
      "type": "CLIPTextEncode",
      "pos": [
        40,
        -220
      ],
      "size": [
        400,
        200
      ],
      "flags": {
        "collapsed": true
      },
      "order": 52,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 672
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 673
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            632
          ]
        }
      ],
      "title": "Positive",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.12.2",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "worst quality, bad quality, grainy, noisy, render, filmgrain, watermark\n\n(source_anime, source_cartoon, panels,score_1, daz_studio, blender, source_filmmaker, 3d, sfm:1.6)"
      ]
    },
    {
      "id": 372,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -2170,
        -280
      ],
      "size": [
        510,
        200
      ],
      "flags": {
        "collapsed": true
      },
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            664
          ]
        }
      ],
      "title": "Code",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "# Extract image tensor, assuming it's a batched Torch tensor\nimg = image1.data[0]  # remove batch dimension\n\n# Get shape: height and width\nheight, width = img.shape[:2]\n\n# Pick smaller side\nsmaller = min(height, width)\n\n# Bucket to nearest multiple of 64\nsmaller = round(smaller / 64) * 64\n\n# Set outputs\nnumber1.to(int(width))\nnumber2.to(int(height))\ntext1.to(int(smaller))\n\n# For debugging\nprint(f\"Fixed image shape: {img.shape}\")\nprint(f\"Width: {width}, Height: {height}\")\nprint(f\"Smaller side (bucketed to 64): {smaller}\")\n"
      ]
    },
    {
      "id": 373,
      "type": "GetNode",
      "pos": [
        510,
        230
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            647
          ]
        }
      ],
      "title": "Get_vae",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "vae"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 374,
      "type": "SetNode",
      "pos": [
        620,
        340
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 49,
      "mode": 0,
      "inputs": [
        {
          "name": "CROP_REGION",
          "type": "CROP_REGION",
          "link": 684
        }
      ],
      "outputs": [
        {
          "name": "*",
          "type": "*",
          "links": null
        }
      ],
      "title": "Set_cr",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": ""
      },
      "widgets_values": [
        "cr"
      ]
    },
    {
      "id": 375,
      "type": "SetNode",
      "pos": [
        200,
        630
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 36,
      "mode": 0,
      "inputs": [
        {
          "name": "BOOLEAN",
          "type": "BOOLEAN",
          "link": 685
        }
      ],
      "outputs": [
        {
          "name": "*",
          "type": "*",
          "links": null
        }
      ],
      "title": "Set_inpaint",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": ""
      },
      "widgets_values": [
        "inpaint"
      ]
    },
    {
      "id": 377,
      "type": "SetNode",
      "pos": [
        620,
        300
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 48,
      "mode": 0,
      "inputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "link": 686
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            834
          ]
        }
      ],
      "title": "Set_overlay",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": ""
      },
      "widgets_values": [
        "overlay"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 379,
      "type": "MaskComposite",
      "pos": [
        -1280,
        -280
      ],
      "size": [
        270,
        126
      ],
      "flags": {
        "collapsed": true
      },
      "order": 59,
      "mode": 0,
      "inputs": [
        {
          "name": "destination",
          "type": "MASK",
          "link": 687
        },
        {
          "name": "source",
          "type": "MASK",
          "link": 688
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            680
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.76",
        "Node name for S&R": "MaskComposite"
      },
      "widgets_values": [
        0,
        0,
        "add"
      ]
    },
    {
      "id": 381,
      "type": "ImageAndMaskPreview",
      "pos": [
        -1270,
        -210
      ],
      "size": [
        270,
        126
      ],
      "flags": {
        "collapsed": true
      },
      "order": 60,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "shape": 7,
          "type": "IMAGE",
          "link": 1084
        },
        {
          "name": "mask",
          "shape": 7,
          "type": "MASK",
          "link": 691
        }
      ],
      "outputs": [
        {
          "name": "composite",
          "type": "IMAGE",
          "links": [
            839
          ]
        }
      ],
      "title": "Preview",
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "1.1.2",
        "Node name for S&R": "ImageAndMaskPreview"
      },
      "widgets_values": [
        0.8000000000000002,
        "255, 0, 255",
        true
      ]
    },
    {
      "id": 382,
      "type": "SegmDetectorCombined_v2",
      "pos": [
        -2000,
        -180
      ],
      "size": [
        271.8443359375,
        102
      ],
      "flags": {
        "collapsed": true
      },
      "order": 31,
      "mode": 0,
      "inputs": [
        {
          "name": "segm_detector",
          "type": "SEGM_DETECTOR",
          "link": 692
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1085
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            689
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "8.28.1",
        "Node name for S&R": "SegmDetectorCombined_v2"
      },
      "widgets_values": [
        0.6,
        10
      ]
    },
    {
      "id": 383,
      "type": "Exec Python Code Script",
      "pos": [
        -1990,
        -120
      ],
      "size": [
        290,
        790
      ],
      "flags": {
        "collapsed": true
      },
      "order": 32,
      "mode": 0,
      "inputs": [
        {
          "name": "image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 1086
        },
        {
          "name": "image2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "mask1",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "mask2",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "list1",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "dict1",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any1",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any2",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any3",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any4",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "raw_code",
          "type": "STRING",
          "widget": {
            "name": "raw_code"
          },
          "link": 695
        }
      ],
      "outputs": [
        {
          "name": "image1",
          "type": "*",
          "links": []
        },
        {
          "name": "image2",
          "type": "*",
          "links": null
        },
        {
          "name": "mask1",
          "type": "*",
          "links": null
        },
        {
          "name": "mask2",
          "type": "*",
          "links": null
        },
        {
          "name": "number1",
          "type": "*",
          "links": []
        },
        {
          "name": "number2",
          "type": "*",
          "links": []
        },
        {
          "name": "text1",
          "type": "*",
          "links": [
            837,
            841
          ]
        },
        {
          "name": "text2",
          "type": "*",
          "links": null
        },
        {
          "name": "list1",
          "type": "*",
          "links": null
        },
        {
          "name": "dict1",
          "type": "*",
          "links": null
        },
        {
          "name": "any1",
          "type": "*",
          "links": null
        },
        {
          "name": "any2",
          "type": "*",
          "links": null
        },
        {
          "name": "any3",
          "type": "*",
          "links": null
        },
        {
          "name": "any4",
          "type": "*",
          "links": null
        }
      ],
      "title": "Check update",
      "properties": {
        "cnr_id": "python-interpreter-node",
        "ver": "2.1.0",
        "Node name for S&R": "Exec Python Code Script"
      },
      "widgets_values": [
        "import numpy as np  # Extract image tensor, assuming it's a batched Torch tensor img = image1.data[0]  # remove batch dimension  # Get shape: height and width height, width = img.shape[:2]  # Pick smaller side smaller = min(height, width)  # Set output text1.to(str(smaller))  # For debugging print(f\"Fixed image shape: {img.shape}\") print(f\"Smaller side: {smaller}\")",
        0,
        0,
        "hello",
        "world",
        true
      ]
    },
    {
      "id": 384,
      "type": "UltralyticsDetectorProvider",
      "pos": [
        -2270,
        -180
      ],
      "size": [
        390,
        78
      ],
      "flags": {
        "collapsed": true
      },
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "BBOX_DETECTOR",
          "type": "BBOX_DETECTOR",
          "links": null
        },
        {
          "name": "SEGM_DETECTOR",
          "type": "SEGM_DETECTOR",
          "links": [
            692
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-subpack",
        "ver": "1.3.5",
        "Node name for S&R": "UltralyticsDetectorProvider"
      },
      "widgets_values": [
        "segm/fdetailerAdetailerFor_v11.pt"
      ]
    },
    {
      "id": 386,
      "type": "PrimitiveBoolean",
      "pos": [
        -1420,
        -70
      ],
      "size": [
        210,
        58
      ],
      "flags": {
        "collapsed": false
      },
      "order": 10,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "BOOLEAN",
          "type": "BOOLEAN",
          "links": [
            836
          ]
        }
      ],
      "title": "Stop if mask empty",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "Node name for S&R": "PrimitiveBoolean"
      },
      "widgets_values": [
        false
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 394,
      "type": "MaskComposite",
      "pos": [
        -320,
        -280
      ],
      "size": [
        270,
        126
      ],
      "flags": {
        "collapsed": true
      },
      "order": 72,
      "mode": 0,
      "inputs": [
        {
          "name": "destination",
          "type": "MASK",
          "link": 715
        },
        {
          "name": "source",
          "type": "MASK",
          "link": 838
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            718
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "MaskComposite"
      },
      "widgets_values": [
        0,
        0,
        "add"
      ]
    },
    {
      "id": 395,
      "type": "GrowMask",
      "pos": [
        -570,
        -280
      ],
      "size": [
        210,
        82
      ],
      "flags": {
        "collapsed": true
      },
      "order": 70,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 717
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            715
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.41",
        "Node name for S&R": "GrowMask"
      },
      "widgets_values": [
        5,
        true
      ]
    },
    {
      "id": 396,
      "type": "ImpactGaussianBlurMask",
      "pos": [
        -120,
        -280
      ],
      "size": [
        210,
        82
      ],
      "flags": {
        "collapsed": true
      },
      "order": 74,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 718
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            740,
            824,
            1023
          ]
        }
      ],
      "title": "Blur Mask",
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "8.17.1",
        "Node name for S&R": "ImpactGaussianBlurMask"
      },
      "widgets_values": [
        5,
        10
      ]
    },
    {
      "id": 401,
      "type": "Reroute",
      "pos": [
        -90,
        -390
      ],
      "size": [
        75,
        26
      ],
      "flags": {},
      "order": 33,
      "mode": 0,
      "inputs": [
        {
          "name": "",
          "type": "*",
          "link": 1088
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "IMAGE",
          "links": [
            755
          ]
        }
      ],
      "properties": {
        "showOutputText": false,
        "horizontal": false
      }
    },
    {
      "id": 406,
      "type": "InvertMask",
      "pos": [
        40,
        -330
      ],
      "size": [
        210,
        26
      ],
      "flags": {
        "collapsed": true
      },
      "order": 75,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 740
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "slot_index": 0,
          "links": [
            1016
          ]
        }
      ],
      "title": "Invert",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "InvertMask"
      },
      "widgets_values": [],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 407,
      "type": "ControlNetLoader",
      "pos": [
        250,
        -570
      ],
      "size": [
        360,
        58
      ],
      "flags": {
        "collapsed": true
      },
      "order": 11,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CONTROL_NET",
          "type": "CONTROL_NET",
          "slot_index": 0,
          "links": [
            754,
            809,
            1014,
            1021
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "ControlNetLoader"
      },
      "widgets_values": [
        "xinsircontrolnet-union-sdxl-10_promax.safetensors"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 415,
      "type": "SetNode",
      "pos": [
        -670,
        -700
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 38,
      "mode": 0,
      "inputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "link": 758
        }
      ],
      "outputs": [
        {
          "name": "*",
          "type": "*",
          "links": []
        }
      ],
      "title": "Set_vae",
      "properties": {
        "Node name for S&R": "SetNode",
        "aux_id": "kijai/ComfyUI-KJNodes",
        "previousName": ""
      },
      "widgets_values": [
        "vae"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 388,
      "type": "INTConstant",
      "pos": [
        1000,
        -340
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "value",
          "type": "INT",
          "links": [
            702,
            705,
            749
          ]
        }
      ],
      "title": "Steps",
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "1.2.3",
        "Node name for S&R": "INTConstant"
      },
      "widgets_values": [
        23
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 453,
      "type": "MaskPreview",
      "pos": [
        40,
        -140
      ],
      "size": [
        380,
        400
      ],
      "flags": {},
      "order": 76,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 824
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.2",
        "Node name for S&R": "MaskPreview"
      },
      "widgets_values": []
    },
    {
      "id": 390,
      "type": "CLIPSetLastLayer",
      "pos": [
        -240,
        -470
      ],
      "size": [
        210,
        58
      ],
      "flags": {
        "collapsed": false
      },
      "order": 45,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 708
        }
      ],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "slot_index": 0,
          "links": [
            672,
            712,
            713
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "CLIPSetLastLayer"
      },
      "widgets_values": [
        -2
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 457,
      "type": "PreviewBridge",
      "pos": [
        -740,
        -240
      ],
      "size": [
        400,
        510
      ],
      "flags": {},
      "order": 67,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 842
        },
        {
          "name": "block",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "block"
          },
          "link": 836
        },
        {
          "name": "restore_mask",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "restore_mask"
          },
          "link": 837
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": null
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            838
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "8.28.2",
        "Node name for S&R": "PreviewBridge"
      },
      "widgets_values": [
        "$457-1777657288.8900526",
        {
          "filename": "clipspace-paint-70907520.png",
          "subfolder": "clipspace",
          "type": "input"
        },
        "never"
      ]
    },
    {
      "id": 458,
      "type": "PreviewBridge",
      "pos": [
        -1160,
        -240
      ],
      "size": [
        400,
        510
      ],
      "flags": {},
      "order": 63,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 839
        },
        {
          "name": "block",
          "shape": 7,
          "type": "BOOLEAN",
          "widget": {
            "name": "block"
          },
          "link": 840
        },
        {
          "name": "restore_mask",
          "shape": 7,
          "type": "COMBO",
          "widget": {
            "name": "restore_mask"
          },
          "link": 841
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            842
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            843
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-impact-pack",
        "ver": "8.28.2",
        "Node name for S&R": "PreviewBridge"
      },
      "widgets_values": [
        "$458-0",
        false,
        "never"
      ]
    },
    {
      "id": 460,
      "type": "PreviewImage",
      "pos": [
        500,
        410
      ],
      "size": [
        250,
        260
      ],
      "flags": {},
      "order": 50,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 849
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.2",
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 413,
      "type": "SetUnionControlNetType",
      "pos": [
        690,
        -570
      ],
      "size": [
        210,
        58
      ],
      "flags": {
        "collapsed": true
      },
      "order": 26,
      "mode": 0,
      "inputs": [
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 754
        }
      ],
      "outputs": [
        {
          "name": "CONTROL_NET",
          "type": "CONTROL_NET",
          "links": [
            1032
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.76",
        "Node name for S&R": "SetUnionControlNetType"
      },
      "widgets_values": [
        "normal"
      ]
    },
    {
      "id": 412,
      "type": "GetNode",
      "pos": [
        60,
        -600
      ],
      "size": [
        210,
        34
      ],
      "flags": {
        "collapsed": true
      },
      "order": 13,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            626,
            753,
            1018,
            1024
          ]
        }
      ],
      "title": "Get_vae",
      "properties": {
        "Node name for S&R": "GetNode",
        "aux_id": "kijai/ComfyUI-KJNodes"
      },
      "widgets_values": [
        "vae"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 365,
      "type": "PreviewImage",
      "pos": [
        2340,
        -600
      ],
      "size": [
        500,
        660
      ],
      "flags": {},
      "order": 86,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 674
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.65",
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 410,
      "type": "BNK_Unsampler",
      "pos": [
        1290,
        -530
      ],
      "size": [
        210,
        240
      ],
      "flags": {
        "collapsed": true
      },
      "order": 82,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 997
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1039
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1041
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 942
        },
        {
          "name": "steps",
          "type": "INT",
          "widget": {
            "name": "steps"
          },
          "link": 749
        },
        {
          "name": "end_at_step",
          "type": "INT",
          "widget": {
            "name": "end_at_step"
          },
          "link": 750
        },
        {
          "name": "cfg",
          "type": "FLOAT",
          "widget": {
            "name": "cfg"
          },
          "link": 751
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            701
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-noise",
        "ver": "0c9ec19b16dc72334cb8ce82c3774aed183048e4",
        "Node name for S&R": "BNK_Unsampler"
      },
      "widgets_values": [
        22,
        0,
        2.5,
        "euler",
        "beta",
        "disable"
      ]
    },
    {
      "id": 411,
      "type": "VAEEncode",
      "pos": [
        250,
        -630
      ],
      "size": [
        140,
        46
      ],
      "flags": {
        "collapsed": true
      },
      "order": 47,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 752
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 753
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            942
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.62",
        "Node name for S&R": "VAEEncode"
      },
      "widgets_values": []
    },
    {
      "id": 368,
      "type": "MaskComposite",
      "pos": [
        -750,
        -280
      ],
      "size": [
        270,
        126
      ],
      "flags": {
        "collapsed": true
      },
      "order": 68,
      "mode": 0,
      "inputs": [
        {
          "name": "destination",
          "type": "MASK",
          "link": 680
        },
        {
          "name": "source",
          "type": "MASK",
          "link": 843
        }
      ],
      "outputs": [
        {
          "name": "MASK",
          "type": "MASK",
          "links": [
            717
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "MaskComposite"
      },
      "widgets_values": [
        0,
        0,
        "subtract"
      ]
    },
    {
      "id": 387,
      "type": "KSamplerAdvanced",
      "pos": [
        1450,
        -530
      ],
      "size": [
        252.353515625,
        546.0000000000001
      ],
      "flags": {},
      "order": 83,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 996
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1038
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1040
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 701
        },
        {
          "name": "steps",
          "type": "INT",
          "widget": {
            "name": "steps"
          },
          "link": 702
        },
        {
          "name": "cfg",
          "type": "FLOAT",
          "widget": {
            "name": "cfg"
          },
          "link": 703
        },
        {
          "name": "start_at_step",
          "type": "INT",
          "widget": {
            "name": "start_at_step"
          },
          "link": 704
        },
        {
          "name": "end_at_step",
          "type": "INT",
          "widget": {
            "name": "end_at_step"
          },
          "link": 705
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            629
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "KSamplerAdvanced"
      },
      "widgets_values": [
        "disable",
        0,
        "fixed",
        22,
        2.5,
        "euler_ancestral",
        "beta",
        0,
        22,
        "disable"
      ]
    },
    {
      "id": 397,
      "type": "PrimitiveFloat",
      "pos": [
        1000,
        -240
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": [
            703,
            751
          ]
        }
      ],
      "title": "CFG",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.8.2",
        "Node name for S&R": "PrimitiveFloat"
      },
      "widgets_values": [
        3
      ]
    },
    {
      "id": 392,
      "type": "CLIPTextEncode",
      "pos": [
        40,
        -440
      ],
      "size": [
        400,
        200
      ],
      "flags": {
        "collapsed": true
      },
      "order": 53,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 712
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1096,
            1097,
            1098
          ]
        }
      ],
      "title": "Negative",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.1",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "worst quality, bad quality, grainy, noisy, render, filmgrain, logo, print, text, watermark\n\n(source_anime, source_cartoon, panels,score_1, daz_studio, blender, source_filmmaker, 3d, sfm:1.6), (nipples, logo, badge:1.7)"
      ]
    },
    {
      "id": 414,
      "type": "Exec Python Code Script",
      "pos": [
        40,
        -550
      ],
      "size": [
        290,
        790
      ],
      "flags": {
        "collapsed": true
      },
      "order": 42,
      "mode": 0,
      "inputs": [
        {
          "name": "image1",
          "shape": 7,
          "type": "IMAGE",
          "link": 755
        },
        {
          "name": "image2",
          "shape": 7,
          "type": "IMAGE",
          "link": null
        },
        {
          "name": "mask1",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "mask2",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "list1",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "dict1",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any1",
          "shape": 7,
          "type": "*",
          "link": 756
        },
        {
          "name": "any2",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any3",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "any4",
          "shape": 7,
          "type": "*",
          "link": null
        },
        {
          "name": "raw_code",
          "type": "STRING",
          "widget": {
            "name": "raw_code"
          },
          "link": 757
        }
      ],
      "outputs": [
        {
          "name": "image1",
          "type": "*",
          "links": [
            752,
            1034,
            1035,
            1036
          ]
        },
        {
          "name": "image2",
          "type": "*",
          "links": []
        },
        {
          "name": "mask1",
          "type": "*",
          "links": []
        },
        {
          "name": "mask2",
          "type": "*",
          "links": []
        },
        {
          "name": "number1",
          "type": "*",
          "links": []
        },
        {
          "name": "number2",
          "type": "*",
          "links": []
        },
        {
          "name": "text1",
          "type": "*",
          "links": []
        },
        {
          "name": "text2",
          "type": "*",
          "links": null
        },
        {
          "name": "list1",
          "type": "*",
          "links": null
        },
        {
          "name": "dict1",
          "type": "*",
          "links": null
        },
        {
          "name": "any1",
          "type": "*",
          "links": null
        },
        {
          "name": "any2",
          "type": "*",
          "links": null
        },
        {
          "name": "any3",
          "type": "*",
          "links": null
        },
        {
          "name": "any4",
          "type": "*",
          "links": null
        }
      ],
      "title": "Upscale to a bucket",
      "properties": {
        "cnr_id": "python-interpreter-node",
        "ver": "2.1.0",
        "Node name for S&R": "Exec Python Code Script"
      },
      "widgets_values": [
        "import numpy as np  # Extract image tensor, assuming it's a batched Torch tensor img = image1.data[0]  # remove batch dimension  # Get shape: height and width height, width = img.shape[:2]  # Pick smaller side smaller = min(height, width)  # Set output text1.to(str(smaller))  # For debugging print(f\"Fixed image shape: {img.shape}\") print(f\"Smaller side: {smaller}\")",
        0,
        0,
        "hello",
        "world",
        true
      ]
    },
    {
      "id": 526,
      "type": "ACN_AdvancedControlNetApply_v2",
      "pos": [
        440,
        -910
      ],
      "size": [
        271.1734375,
        266
      ],
      "flags": {},
      "order": 77,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1095
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1097
        },
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 1021
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1035
        },
        {
          "name": "mask_optional",
          "shape": 7,
          "type": "MASK",
          "link": 1023
        },
        {
          "name": "timestep_kf",
          "shape": 7,
          "type": "TIMESTEP_KEYFRAME",
          "link": null
        },
        {
          "name": "latent_kf_override",
          "shape": 7,
          "type": "LATENT_KEYFRAME",
          "link": null
        },
        {
          "name": "weights_override",
          "shape": 7,
          "type": "CONTROL_NET_WEIGHTS",
          "link": null
        },
        {
          "name": "vae_optional",
          "shape": 7,
          "type": "VAE",
          "link": 1024
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            1029
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            1027
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-advanced-controlnet",
        "ver": "1.5.7",
        "Node name for S&R": "ACN_AdvancedControlNetApply_v2"
      },
      "widgets_values": [
        1,
        0,
        1
      ]
    },
    {
      "id": 530,
      "type": "ACN_AdvancedControlNetApply_v2",
      "pos": [
        1000,
        -130
      ],
      "size": [
        210,
        266
      ],
      "flags": {
        "collapsed": false
      },
      "order": 81,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1030
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1031
        },
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 1032
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1036
        },
        {
          "name": "mask_optional",
          "shape": 7,
          "type": "MASK",
          "link": null
        },
        {
          "name": "timestep_kf",
          "shape": 7,
          "type": "TIMESTEP_KEYFRAME",
          "link": 1037
        },
        {
          "name": "latent_kf_override",
          "shape": 7,
          "type": "LATENT_KEYFRAME",
          "link": null
        },
        {
          "name": "weights_override",
          "shape": 7,
          "type": "CONTROL_NET_WEIGHTS",
          "link": null
        },
        {
          "name": "vae_optional",
          "shape": 7,
          "type": "VAE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            1038,
            1039
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            1040,
            1041
          ]
        }
      ],
      "title": "Apply ControlNet",
      "properties": {
        "cnr_id": "comfyui-advanced-controlnet",
        "ver": "1.5.7",
        "Node name for S&R": "ACN_AdvancedControlNetApply_v2"
      },
      "widgets_values": [
        1,
        0,
        1
      ]
    },
    {
      "id": 528,
      "type": "ConditioningCombine",
      "pos": [
        830,
        -130
      ],
      "size": [
        216.92578125,
        46
      ],
      "flags": {
        "collapsed": true
      },
      "order": 80,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning_1",
          "type": "CONDITIONING",
          "link": 1026
        },
        {
          "name": "conditioning_2",
          "type": "CONDITIONING",
          "link": 1027
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1031
          ]
        }
      ],
      "title": "Negative",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "ConditioningCombine"
      },
      "widgets_values": [],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 529,
      "type": "ConditioningCombine",
      "pos": [
        830,
        -170
      ],
      "size": [
        216.92578125,
        46
      ],
      "flags": {
        "collapsed": true
      },
      "order": 79,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning_1",
          "type": "CONDITIONING",
          "link": 1028
        },
        {
          "name": "conditioning_2",
          "type": "CONDITIONING",
          "link": 1029
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1030
          ]
        }
      ],
      "title": "Positive",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "ConditioningCombine"
      },
      "widgets_values": [],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 332,
      "type": "VAEDecodeTiled",
      "pos": [
        1830,
        -570
      ],
      "size": [
        270,
        150
      ],
      "flags": {
        "collapsed": true
      },
      "order": 84,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 629
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 630
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            642
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.62",
        "Node name for S&R": "VAEDecodeTiled"
      },
      "widgets_values": [
        1024,
        64,
        64,
        8
      ]
    },
    {
      "id": 393,
      "type": "CLIPTextEncode",
      "pos": [
        50,
        -390
      ],
      "size": [
        370,
        200
      ],
      "flags": {
        "collapsed": true
      },
      "order": 54,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 713
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 714
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            1093,
            1094,
            1095
          ]
        }
      ],
      "title": "Positive",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.1",
        "Node name for S&R": "CLIPTextEncode"
      },
      "widgets_values": [
        "(real life, natural lighting, stunningly beautiful, masterpiece, best quality, good quality:1.5)\n\nchromatic abberration, bokeh, vibrant colors, high contrast, high dynamic range\n\nreal, detailed, digital photography, professional photo, photorealism, sharp, volumetric, ray tracing, hdr, 4k, 8k, absurd res, realistic\n\nFull body shot of a stunning anthropomorphic cheetah female, athletic and lithe build, standing in a dimly lit, rustic Slavic cabin. She is wearing a tight, low-cut white linen peasant blouse that slightly slips off one shoulder, and a dark velvet corset that accentuates her curves, intricate red and blue floral embroidery along the edges. Her head covering is slightly askew, with gold bead chains dangling messily around her face. Intense, smoldering gaze, seductive expression, partially unlaced bodice. The lighting is moody and dramatic, coming from a nearby flickering fireplace, casting deep shadows and highlighting her sleek, spotted fur. Hyper-realistic, 8k, raw texture, candid posture, a sense of intimacy and unbridled curiosity, messy aesthetic."
      ]
    },
    {
      "id": 348,
      "type": "PrimitiveBoolean",
      "pos": [
        -210,
        -20
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "BOOLEAN",
          "type": "BOOLEAN",
          "links": [
            636
          ]
        }
      ],
      "title": "Replace prompt",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.43",
        "Node name for S&R": "PrimitiveBoolean"
      },
      "widgets_values": [
        true
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 385,
      "type": "AIO_Preprocessor",
      "pos": [
        -1830,
        -230
      ],
      "size": [
        320,
        82
      ],
      "flags": {
        "collapsed": true
      },
      "order": 40,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1087
        },
        {
          "name": "resolution",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "resolution"
          },
          "link": 697
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            660
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui_controlnet_aux",
        "ver": "1.0.7",
        "Node name for S&R": "AIO_Preprocessor"
      },
      "widgets_values": [
        "Manga2Anime_LineArt_Preprocessor",
        1344
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 512,
      "type": "PerturbedAttentionGuidance",
      "pos": [
        730,
        -500
      ],
      "size": [
        240,
        58
      ],
      "flags": {
        "collapsed": true
      },
      "order": 64,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1116
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            996,
            997
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.2",
        "Node name for S&R": "PerturbedAttentionGuidance"
      },
      "widgets_values": [
        1.8
      ]
    },
    {
      "id": 542,
      "type": "LoadImage",
      "pos": [
        -2830,
        -360
      ],
      "size": [
        410,
        490
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1082,
            1084,
            1085,
            1086,
            1087,
            1088,
            1091
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.3",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ComfyUI_temp_ysgop_00001_.png",
        "image"
      ]
    },
    {
      "id": 513,
      "type": "ACN_AdvancedControlNetApply_v2",
      "pos": [
        440,
        -1230
      ],
      "size": [
        271.1734375,
        266
      ],
      "flags": {},
      "order": 78,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 1094
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1096
        },
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 1014
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1034
        },
        {
          "name": "mask_optional",
          "shape": 7,
          "type": "MASK",
          "link": 1016
        },
        {
          "name": "timestep_kf",
          "shape": 7,
          "type": "TIMESTEP_KEYFRAME",
          "link": 1017
        },
        {
          "name": "latent_kf_override",
          "shape": 7,
          "type": "LATENT_KEYFRAME",
          "link": null
        },
        {
          "name": "weights_override",
          "shape": 7,
          "type": "CONTROL_NET_WEIGHTS",
          "link": null
        },
        {
          "name": "vae_optional",
          "shape": 7,
          "type": "VAE",
          "link": 1018
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "links": [
            1028
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "links": [
            1026
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-advanced-controlnet",
        "ver": "1.5.7",
        "Node name for S&R": "ACN_AdvancedControlNetApply_v2"
      },
      "widgets_values": [
        1,
        0,
        1
      ]
    },
    {
      "id": 363,
      "type": "AIO_Preprocessor",
      "pos": [
        -160,
        820
      ],
      "size": [
        260,
        82
      ],
      "flags": {
        "collapsed": false
      },
      "order": 34,
      "mode": 4,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1091
        },
        {
          "name": "resolution",
          "shape": 7,
          "type": "INT",
          "widget": {
            "name": "resolution"
          },
          "link": 671
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1099
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui_controlnet_aux",
        "ver": "1.0.7",
        "Node name for S&R": "AIO_Preprocessor"
      },
      "widgets_values": [
        "LineArtPreprocessor",
        1344
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 417,
      "type": "StringFunction|pysssss",
      "pos": [
        -1190,
        -380
      ],
      "size": [
        400,
        274.00000000000006
      ],
      "flags": {
        "collapsed": true
      },
      "order": 35,
      "mode": 0,
      "inputs": [
        {
          "name": "text_b",
          "shape": 7,
          "type": "STRING",
          "widget": {
            "name": "text_b"
          },
          "link": 761
        }
      ],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            714
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-custom-scripts",
        "ver": "1.2.5",
        "Node name for S&R": "StringFunction|pysssss"
      },
      "widgets_values": [
        "append",
        "yes",
        "(real life, natural lighting, stunningly beautiful, masterpiece, best quality, good quality:1.5)\n\nchromatic abberration, bokeh, vibrant colors, high contrast, high dynamic range\n\nreal, detailed, digital photography, professional photo, photorealism, sharp, volumetric, ray tracing, hdr, 4k, 8k, absurd res, realistic",
        "\n(real life, natural lighting, stunningly beautiful, masterpiece, best quality, good quality:1.5)\n\nchromatic abberration, bokeh, vibrant colors, high contrast, high dynamic range\n\nreal, detailed, digital photography, professional photo, photorealism, sharp, volumetric, ray tracing, hdr, 4k, 8k, absurd res, realistic",
        ""
      ]
    },
    {
      "id": 95,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -2830,
        -560
      ],
      "size": [
        410,
        160
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            761
          ]
        }
      ],
      "title": "Prompt",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.1",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "solo, horse, male, feral, sitting on ground, on haunches, on meadow by the tree, equine penis, full length, hoof masturbation, long mane, precum, shy, grey body, blue eyes, equine hooves, horseshoes"
      ]
    },
    {
      "id": 531,
      "type": "ACN_TimestepKeyframeInterpolation",
      "pos": [
        480,
        -360
      ],
      "size": [
        263.6197265625,
        310
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "prev_timestep_kf",
          "shape": 7,
          "type": "TIMESTEP_KEYFRAME",
          "link": null
        },
        {
          "name": "cn_weights",
          "shape": 7,
          "type": "CONTROL_NET_WEIGHTS",
          "link": null
        },
        {
          "name": "latent_keyframe",
          "shape": 7,
          "type": "LATENT_KEYFRAME",
          "link": null
        },
        {
          "name": "mask_optional",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "TIMESTEP_KF",
          "type": "TIMESTEP_KEYFRAME",
          "links": [
            1037
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-advanced-controlnet",
        "ver": "1.5.7",
        "Node name for S&R": "ACN_TimestepKeyframeInterpolation"
      },
      "widgets_values": [
        0,
        1,
        1,
        0,
        "ease-in",
        50,
        0,
        true,
        false
      ]
    },
    {
      "id": 380,
      "type": "RemapMaskRange",
      "pos": [
        -1520,
        -190
      ],
      "size": [
        210,
        81.99999999999999
      ],
      "flags": {
        "collapsed": true
      },
      "order": 41,
      "mode": 4,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 689
        }
      ],
      "outputs": [
        {
          "name": "mask",
          "type": "MASK",
          "links": [
            688
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "1.1.8",
        "Node name for S&R": "RemapMaskRange"
      },
      "widgets_values": [
        0,
        0.8
      ]
    },
    {
      "id": 522,
      "type": "ACN_TimestepKeyframeInterpolation",
      "pos": [
        30,
        -1330
      ],
      "size": [
        263.6197265625,
        310
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "prev_timestep_kf",
          "shape": 7,
          "type": "TIMESTEP_KEYFRAME",
          "link": null
        },
        {
          "name": "cn_weights",
          "shape": 7,
          "type": "CONTROL_NET_WEIGHTS",
          "link": null
        },
        {
          "name": "latent_keyframe",
          "shape": 7,
          "type": "LATENT_KEYFRAME",
          "link": null
        },
        {
          "name": "mask_optional",
          "shape": 7,
          "type": "MASK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "TIMESTEP_KF",
          "type": "TIMESTEP_KEYFRAME",
          "links": [
            1017
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-advanced-controlnet",
        "ver": "1.5.7",
        "Node name for S&R": "ACN_TimestepKeyframeInterpolation"
      },
      "widgets_values": [
        0,
        1,
        1,
        0,
        "linear",
        50,
        0,
        true,
        false
      ]
    },
    {
      "id": 443,
      "type": "SetUnionControlNetType",
      "pos": [
        340,
        730
      ],
      "size": [
        210,
        58
      ],
      "flags": {
        "collapsed": false
      },
      "order": 27,
      "mode": 0,
      "inputs": [
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 809
        }
      ],
      "outputs": [
        {
          "name": "CONTROL_NET",
          "type": "CONTROL_NET",
          "links": [
            810
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.76",
        "Node name for S&R": "SetUnionControlNetType"
      },
      "widgets_values": [
        "normal"
      ]
    },
    {
      "id": 369,
      "type": "INTConstant",
      "pos": [
        1000,
        -450
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "value",
          "type": "INT",
          "links": [
            704,
            750
          ]
        }
      ],
      "title": "Switch step",
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "1.2.3",
        "Node name for S&R": "INTConstant"
      },
      "widgets_values": [
        15
      ],
      "color": "#1b4669",
      "bgcolor": "#29699c"
    },
    {
      "id": 376,
      "type": "PrimitiveBoolean",
      "pos": [
        190,
        590
      ],
      "size": [
        210,
        60
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "BOOLEAN",
          "type": "BOOLEAN",
          "links": [
            685
          ]
        }
      ],
      "title": "Inpaint",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.43",
        "Node name for S&R": "PrimitiveBoolean"
      },
      "widgets_values": [
        true
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 456,
      "type": "PreviewImage",
      "pos": [
        760,
        270
      ],
      "size": [
        340,
        400
      ],
      "flags": {},
      "order": 56,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 834
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.18.2",
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 367,
      "type": "Reroute",
      "pos": [
        810,
        60
      ],
      "size": [
        75,
        26
      ],
      "flags": {},
      "order": 65,
      "mode": 0,
      "inputs": [
        {
          "name": "",
          "type": "*",
          "link": 1117
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "MODEL",
          "links": [
            675
          ]
        }
      ],
      "properties": {
        "showOutputText": false,
        "horizontal": false
      }
    },
    {
      "id": 378,
      "type": "PrimitiveFloat",
      "pos": [
        -220,
        -680
      ],
      "size": [
        210,
        58
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": [
            756
          ]
        }
      ],
      "title": "Upscale by",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.68",
        "Node name for S&R": "PrimitiveFloat"
      },
      "widgets_values": [
        1.3
      ]
    },
    {
      "id": 416,
      "type": "CheckpointLoaderSimple",
      "pos": [
        -1100,
        -780
      ],
      "size": [
        390,
        98
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            850
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            851
          ]
        },
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            758
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.17.0",
        "Node name for S&R": "CheckpointLoaderSimple"
      },
      "widgets_values": [
        "furry-refiner-mix-11.safetensors"
      ]
    },
    {
      "id": 353,
      "type": "ControlNetApplyAdvanced",
      "pos": [
        510,
        0
      ],
      "size": [
        210,
        186
      ],
      "flags": {},
      "order": 62,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 653
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 1098
        },
        {
          "name": "control_net",
          "type": "CONTROL_NET",
          "link": 810
        },
        {
          "name": "image",
          "type": "IMAGE",
          "link": 656
        },
        {
          "name": "vae",
          "shape": 7,
          "type": "VAE",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            645
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "slot_index": 1,
          "links": [
            646
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.15",
        "Node name for S&R": "ControlNetApplyAdvanced"
      },
      "widgets_values": [
        0.8,
        0,
        1
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 389,
      "type": "Lora Loader (LoraManager)",
      "pos": [
        -550,
        -780
      ],
      "size": [
        271.8921875,
        346.0000000000001
      ],
      "flags": {},
      "order": 37,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 850
        },
        {
          "name": "clip",
          "shape": 7,
          "type": "CLIP",
          "link": 851
        },
        {
          "name": "lora_stack",
          "shape": 7,
          "type": "LORA_STACK",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1118
          ]
        },
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            708
          ]
        },
        {
          "name": "trigger_words",
          "type": "STRING",
          "links": []
        },
        {
          "name": "loaded_loras",
          "type": "STRING",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfyui-lora-manager",
        "ver": "de3d0571f809e9187600b6fd4fcdc3ff61eb34de",
        "Node name for S&R": "Lora Loader (LoraManager)",
        "__lm_widget_ids": [
          "__lm_autocomplete_meta_text",
          "text",
          "loras"
        ]
      },
      "widgets_values": [
        {
          "version": 1,
          "textWidgetName": "text"
        },
        "<lora:Zootopia_Art_Style_ill_3D:0.80><lora:KFT_Furropean_Extreme_IL_V2:0.80><lora:Flared_Equine_Penis_IL:0.80>",
        [
          {
            "name": "Zootopia_Art_Style_ill_3D",
            "strength": 0.8,
            "active": false,
            "expanded": false,
            "clipStrength": 0.8,
            "locked": false
          },
          {
            "name": "KFT_Furropean_Extreme_IL_V2",
            "strength": 0.8,
            "active": true,
            "expanded": false,
            "clipStrength": 0.8,
            "locked": false
          },
          {
            "name": "Flared_Equine_Penis_IL",
            "strength": "0.80",
            "active": true,
            "expanded": false,
            "clipStrength": "0.80",
            "locked": false
          }
        ]
      ]
    },
    {
      "id": 339,
      "type": "DifferentialDiffusion",
      "pos": [
        530,
        -500
      ],
      "size": [
        210,
        50
      ],
      "flags": {
        "collapsed": true
      },
      "order": 61,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1115
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1116,
            1117
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.40",
        "Node name for S&R": "DifferentialDiffusion"
      },
      "widgets_values": [
        1
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 355,
      "type": "PathchSageAttentionKJ",
      "pos": [
        -240,
        -510
      ],
      "size": [
        270,
        82
      ],
      "flags": {
        "collapsed": true
      },
      "order": 44,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1118
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            1119
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-kjnodes",
        "ver": "1.2.7",
        "Node name for S&R": "PathchSageAttentionKJ"
      },
      "widgets_values": [
        "sageattn_qk_int8_pv_fp8_cuda++",
        false
      ]
    },
    {
      "id": 341,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -140,
        -560
      ],
      "size": [
        440,
        160
      ],
      "flags": {
        "collapsed": true
      },
      "order": 24,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            757
          ]
        }
      ],
      "title": "Code",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.48",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "import torch\nimport torch.nn.functional as F\n\nimg = image1.data  # [B,H,W,C] NHWC\nscale = float(any1.data)\n\n# Convert to float if needed\nif not torch.is_floating_point(img):\n    img = img.float() / 255.0\n\nB, H, W, C = img.shape\n\n# Determine smaller side\nif H < W:\n    smaller, larger = H, W\n    smaller_is_height = True\nelse:\n    smaller, larger = W, H\n    smaller_is_height = False\n\n# Scale smaller side and bucket to nearest multiple of 64\nsmaller_scaled = smaller * scale\nsmaller_bucket = max(64, round(smaller_scaled / 64) * 64)\n\n# Compute larger side to preserve aspect ratio\nlarger_scaled = larger * (smaller_bucket / smaller)\n# Bucket larger side to nearest multiple of 64\nlarger_bucket = max(64, round(larger_scaled / 64) * 64)\n\n# Assign final H and W preserving aspect ratio\nif smaller_is_height:\n    new_H, new_W = smaller_bucket, larger_bucket\nelse:\n    new_W, new_H = smaller_bucket, larger_bucket\n\n# Resize with interpolate\nupscaled = F.interpolate(img.permute(0,3,1,2), size=(new_H,new_W), mode='bilinear', align_corners=False)\nupscaled = upscaled.permute(0,2,3,1)\n\n# Output\nimage1.to(upscaled)\n"
      ]
    },
    {
      "id": 354,
      "type": "ApplyMSWMSAAttentionSimple",
      "pos": [
        40,
        -490
      ],
      "size": [
        237.52694702148438,
        58
      ],
      "flags": {
        "collapsed": true
      },
      "order": 51,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 1119
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            659
          ]
        }
      ],
      "title": "ApplyMSWMSAA",
      "properties": {
        "cnr_id": "comfyui_jankhidiffusion",
        "ver": "54d60e0d187a391682633ab5b6211fd8fe4d73bb",
        "Node name for S&R": "ApplyMSWMSAAttentionSimple"
      },
      "widgets_values": [
        "auto"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 356,
      "type": "ApplyRAUNetSimple",
      "pos": [
        270,
        -490
      ],
      "size": [
        250,
        130
      ],
      "flags": {
        "collapsed": true
      },
      "order": 57,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 659
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            1115
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui_jankhidiffusion",
        "ver": "54d60e0d187a391682633ab5b6211fd8fe4d73bb",
        "Node name for S&R": "ApplyRAUNetSimple"
      },
      "widgets_values": [
        "auto",
        "high (1536-2048)",
        "bicubic",
        "bicubic"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 366,
      "type": "KSampler",
      "pos": [
        1450,
        60
      ],
      "size": [
        260,
        490
      ],
      "flags": {},
      "order": 69,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 675
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 676
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 677
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 678
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            627
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.40",
        "Node name for S&R": "KSampler"
      },
      "widgets_values": [
        1228,
        "fixed",
        12,
        4,
        "euler_ancestral",
        "normal",
        0.3
      ]
    },
    {
      "id": 352,
      "type": "PrepareImageAndMaskForInpaint",
      "pos": [
        160,
        320
      ],
      "size": [
        260.0103515625,
        234
      ],
      "flags": {
        "collapsed": false
      },
      "order": 43,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 650
        },
        {
          "name": "mask",
          "type": "MASK",
          "link": 651
        },
        {
          "name": "controlnet_image",
          "shape": 7,
          "type": "IMAGE",
          "link": 1099
        }
      ],
      "outputs": [
        {
          "name": "inpaint_image",
          "type": "IMAGE",
          "links": [
            648
          ]
        },
        {
          "name": "inpaint_mask",
          "type": "MASK",
          "links": [
            649
          ]
        },
        {
          "name": "overlay_image",
          "type": "IMAGE",
          "links": [
            686
          ]
        },
        {
          "name": "crop_region",
          "type": "CROP_REGION",
          "links": [
            684
          ]
        },
        {
          "name": "controlnet_image",
          "type": "IMAGE",
          "links": [
            656,
            849
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfyui-art-venture",
        "ver": "1.0.7",
        "Node name for S&R": "PrepareImageAndMaskForInpaint",
        "aux_id": "m0rtus59/comfyui-art-venture"
      },
      "widgets_values": [
        8,
        true,
        400,
        1024,
        1024
      ]
    },
    {
      "id": 350,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -320,
        -240
      ],
      "size": [
        320,
        180
      ],
      "flags": {},
      "order": 25,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            673
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.50",
        "Node name for S&R": "PrimitiveStringMultiline"
      },
      "widgets_values": [
        "equine penis"
      ]
    }
  ],
  "links": [
    [
      626,
      412,
      0,
      330,
      0,
      "*"
    ],
    [
      627,
      366,
      0,
      331,
      0,
      "LATENT"
    ],
    [
      628,
      330,
      0,
      331,
      1,
      "VAE"
    ],
    [
      629,
      387,
      0,
      332,
      0,
      "LATENT"
    ],
    [
      630,
      330,
      0,
      332,
      1,
      "VAE"
    ],
    [
      632,
      364,
      0,
      338,
      0,
      "CONDITIONING"
    ],
    [
      634,
      342,
      0,
      338,
      2,
      "BOOLEAN"
    ],
    [
      636,
      348,
      0,
      342,
      0,
      "*"
    ],
    [
      637,
      358,
      0,
      343,
      0,
      "IMAGE"
    ],
    [
      638,
      331,
      0,
      344,
      0,
      "IMAGE"
    ],
    [
      639,
      333,
      0,
      344,
      1,
      "IMAGE"
    ],
    [
      640,
      334,
      0,
      344,
      2,
      "CROP_REGION"
    ],
    [
      641,
      344,
      0,
      346,
      0,
      "IMAGE"
    ],
    [
      642,
      332,
      0,
      346,
      1,
      "IMAGE"
    ],
    [
      643,
      345,
      0,
      346,
      2,
      "BOOLEAN"
    ],
    [
      645,
      353,
      0,
      351,
      0,
      "CONDITIONING"
    ],
    [
      646,
      353,
      1,
      351,
      1,
      "CONDITIONING"
    ],
    [
      647,
      373,
      0,
      351,
      2,
      "VAE"
    ],
    [
      648,
      352,
      0,
      351,
      3,
      "IMAGE"
    ],
    [
      649,
      352,
      1,
      351,
      4,
      "MASK"
    ],
    [
      650,
      349,
      0,
      352,
      0,
      "IMAGE"
    ],
    [
      651,
      349,
      1,
      352,
      1,
      "MASK"
    ],
    [
      653,
      338,
      0,
      353,
      0,
      "CONDITIONING"
    ],
    [
      656,
      352,
      4,
      353,
      3,
      "IMAGE"
    ],
    [
      659,
      354,
      0,
      356,
      0,
      "MODEL"
    ],
    [
      660,
      385,
      0,
      358,
      0,
      "IMAGE"
    ],
    [
      661,
      359,
      4,
      358,
      2,
      "INT"
    ],
    [
      662,
      359,
      5,
      358,
      3,
      "INT"
    ],
    [
      664,
      372,
      0,
      359,
      10,
      "STRING"
    ],
    [
      665,
      359,
      6,
      360,
      0,
      "*"
    ],
    [
      671,
      340,
      0,
      363,
      1,
      "INT"
    ],
    [
      672,
      390,
      0,
      364,
      0,
      "CLIP"
    ],
    [
      673,
      350,
      0,
      364,
      1,
      "STRING"
    ],
    [
      674,
      346,
      0,
      365,
      0,
      "IMAGE"
    ],
    [
      675,
      367,
      0,
      366,
      0,
      "MODEL"
    ],
    [
      676,
      351,
      0,
      366,
      1,
      "CONDITIONING"
    ],
    [
      677,
      351,
      1,
      366,
      2,
      "CONDITIONING"
    ],
    [
      678,
      351,
      2,
      366,
      3,
      "LATENT"
    ],
    [
      680,
      379,
      0,
      368,
      0,
      "MASK"
    ],
    [
      684,
      352,
      3,
      374,
      0,
      "*"
    ],
    [
      685,
      376,
      0,
      375,
      0,
      "*"
    ],
    [
      686,
      352,
      2,
      377,
      0,
      "*"
    ],
    [
      687,
      343,
      0,
      379,
      0,
      "MASK"
    ],
    [
      688,
      380,
      0,
      379,
      1,
      "MASK"
    ],
    [
      689,
      382,
      0,
      380,
      0,
      "MASK"
    ],
    [
      691,
      343,
      0,
      381,
      1,
      "MASK"
    ],
    [
      692,
      384,
      1,
      382,
      0,
      "SEGM_DETECTOR"
    ],
    [
      695,
      357,
      0,
      383,
      10,
      "STRING"
    ],
    [
      697,
      359,
      6,
      385,
      1,
      "INT"
    ],
    [
      701,
      410,
      0,
      387,
      3,
      "LATENT"
    ],
    [
      702,
      388,
      0,
      387,
      4,
      "INT"
    ],
    [
      703,
      397,
      0,
      387,
      5,
      "FLOAT"
    ],
    [
      704,
      369,
      0,
      387,
      6,
      "INT"
    ],
    [
      705,
      388,
      0,
      387,
      7,
      "INT"
    ],
    [
      708,
      389,
      1,
      390,
      0,
      "CLIP"
    ],
    [
      712,
      390,
      0,
      392,
      0,
      "CLIP"
    ],
    [
      713,
      390,
      0,
      393,
      0,
      "CLIP"
    ],
    [
      714,
      417,
      0,
      393,
      1,
      "STRING"
    ],
    [
      715,
      395,
      0,
      394,
      0,
      "MASK"
    ],
    [
      717,
      368,
      0,
      395,
      0,
      "MASK"
    ],
    [
      718,
      394,
      0,
      396,
      0,
      "MASK"
    ],
    [
      740,
      396,
      0,
      406,
      0,
      "MASK"
    ],
    [
      749,
      388,
      0,
      410,
      4,
      "INT"
    ],
    [
      750,
      369,
      0,
      410,
      5,
      "INT"
    ],
    [
      751,
      397,
      0,
      410,
      6,
      "FLOAT"
    ],
    [
      752,
      414,
      0,
      411,
      0,
      "IMAGE"
    ],
    [
      753,
      412,
      0,
      411,
      1,
      "VAE"
    ],
    [
      754,
      407,
      0,
      413,
      0,
      "CONTROL_NET"
    ],
    [
      755,
      401,
      0,
      414,
      0,
      "IMAGE"
    ],
    [
      756,
      378,
      0,
      414,
      6,
      "*"
    ],
    [
      757,
      341,
      0,
      414,
      10,
      "STRING"
    ],
    [
      758,
      416,
      2,
      415,
      0,
      "*"
    ],
    [
      761,
      95,
      0,
      417,
      0,
      "STRING"
    ],
    [
      809,
      407,
      0,
      443,
      0,
      "CONTROL_NET"
    ],
    [
      810,
      443,
      0,
      353,
      2,
      "CONTROL_NET"
    ],
    [
      824,
      396,
      0,
      453,
      0,
      "MASK"
    ],
    [
      834,
      377,
      0,
      456,
      0,
      "IMAGE"
    ],
    [
      836,
      386,
      0,
      457,
      1,
      "BOOLEAN"
    ],
    [
      837,
      383,
      6,
      457,
      2,
      "COMBO"
    ],
    [
      838,
      457,
      1,
      394,
      1,
      "MASK"
    ],
    [
      839,
      381,
      0,
      458,
      0,
      "IMAGE"
    ],
    [
      840,
      335,
      0,
      458,
      1,
      "BOOLEAN"
    ],
    [
      841,
      383,
      6,
      458,
      2,
      "COMBO"
    ],
    [
      842,
      458,
      0,
      457,
      0,
      "IMAGE"
    ],
    [
      843,
      458,
      1,
      368,
      1,
      "MASK"
    ],
    [
      849,
      352,
      4,
      460,
      0,
      "IMAGE"
    ],
    [
      850,
      416,
      0,
      389,
      0,
      "MODEL"
    ],
    [
      851,
      416,
      1,
      389,
      1,
      "CLIP"
    ],
    [
      942,
      411,
      0,
      410,
      3,
      "LATENT"
    ],
    [
      996,
      512,
      0,
      387,
      0,
      "MODEL"
    ],
    [
      997,
      512,
      0,
      410,
      0,
      "MODEL"
    ],
    [
      1014,
      407,
      0,
      513,
      2,
      "CONTROL_NET"
    ],
    [
      1016,
      406,
      0,
      513,
      4,
      "MASK"
    ],
    [
      1017,
      522,
      0,
      513,
      5,
      "TIMESTEP_KEYFRAME"
    ],
    [
      1018,
      412,
      0,
      513,
      8,
      "VAE"
    ],
    [
      1021,
      407,
      0,
      526,
      2,
      "CONTROL_NET"
    ],
    [
      1023,
      396,
      0,
      526,
      4,
      "MASK"
    ],
    [
      1024,
      412,
      0,
      526,
      8,
      "VAE"
    ],
    [
      1026,
      513,
      1,
      528,
      0,
      "CONDITIONING"
    ],
    [
      1027,
      526,
      1,
      528,
      1,
      "CONDITIONING"
    ],
    [
      1028,
      513,
      0,
      529,
      0,
      "CONDITIONING"
    ],
    [
      1029,
      526,
      0,
      529,
      1,
      "CONDITIONING"
    ],
    [
      1030,
      529,
      0,
      530,
      0,
      "CONDITIONING"
    ],
    [
      1031,
      528,
      0,
      530,
      1,
      "CONDITIONING"
    ],
    [
      1032,
      413,
      0,
      530,
      2,
      "CONTROL_NET"
    ],
    [
      1034,
      414,
      0,
      513,
      3,
      "IMAGE"
    ],
    [
      1035,
      414,
      0,
      526,
      3,
      "IMAGE"
    ],
    [
      1036,
      414,
      0,
      530,
      3,
      "IMAGE"
    ],
    [
      1037,
      531,
      0,
      530,
      5,
      "TIMESTEP_KEYFRAME"
    ],
    [
      1038,
      530,
      0,
      387,
      1,
      "CONDITIONING"
    ],
    [
      1039,
      530,
      0,
      410,
      1,
      "CONDITIONING"
    ],
    [
      1040,
      530,
      1,
      387,
      2,
      "CONDITIONING"
    ],
    [
      1041,
      530,
      1,
      410,
      2,
      "CONDITIONING"
    ],
    [
      1082,
      542,
      0,
      359,
      0,
      "IMAGE"
    ],
    [
      1084,
      542,
      0,
      381,
      0,
      "IMAGE"
    ],
    [
      1085,
      542,
      0,
      382,
      1,
      "IMAGE"
    ],
    [
      1086,
      542,
      0,
      383,
      0,
      "IMAGE"
    ],
    [
      1087,
      542,
      0,
      385,
      0,
      "IMAGE"
    ],
    [
      1088,
      542,
      0,
      401,
      0,
      "*"
    ],
    [
      1091,
      542,
      0,
      363,
      0,
      "IMAGE"
    ],
    [
      1093,
      393,
      0,
      338,
      1,
      "CONDITIONING"
    ],
    [
      1094,
      393,
      0,
      513,
      0,
      "CONDITIONING"
    ],
    [
      1095,
      393,
      0,
      526,
      0,
      "CONDITIONING"
    ],
    [
      1096,
      392,
      0,
      513,
      1,
      "CONDITIONING"
    ],
    [
      1097,
      392,
      0,
      526,
      1,
      "CONDITIONING"
    ],
    [
      1098,
      392,
      0,
      353,
      1,
      "CONDITIONING"
    ],
    [
      1099,
      363,
      0,
      352,
      2,
      "IMAGE"
    ],
    [
      1115,
      356,
      0,
      339,
      0,
      "MODEL"
    ],
    [
      1116,
      339,
      0,
      512,
      0,
      "MODEL"
    ],
    [
      1117,
      339,
      0,
      367,
      0,
      "*"
    ],
    [
      1118,
      389,
      0,
      355,
      0,
      "MODEL"
    ],
    [
      1119,
      355,
      0,
      354,
      0,
      "MODEL"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.6934334949441405,
      "offset": [
        910.8167271158667,
        588.9884960099846
      ]
    },
    "frontendVersion": "1.29.1"
  },
  "version": 0.4
}