Skip to content
Back to workflow

Z Image Turbo + PiD: raw JSON

Generate with Z Image Turbo, then enlarge the image through PiD.

52 KB ยท JSON file

{
  "id": "0e795202-8c8d-45fd-89ae-0db75e25e1b1",
  "revision": 0,
  "last_node_id": 257,
  "last_link_id": 556,
  "nodes": [
    {
      "id": 208,
      "type": "LoraLoaderModelOnly",
      "pos": [
        -882.9076712962575,
        -75.44187803216145
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 15,
      "mode": 4,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 462
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            463
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "LoraLoaderModelOnly",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "Your_Character_LoRA_Here.safetensors",
        1
      ]
    },
    {
      "id": 209,
      "type": "LoraLoaderModelOnly",
      "pos": [
        -884.1258955302861,
        68.48757536018847
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 16,
      "mode": 4,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 463
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            464
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "LoraLoaderModelOnly",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "Your_Character_LoRA_Here.safetensors",
        1
      ]
    },
    {
      "id": 6,
      "type": "CLIPTextEncode",
      "pos": [
        -392.99503249259163,
        -43.77898620365961
      ],
      "size": [
        365.88193474026025,
        240.32836952663223
      ],
      "flags": {
        "collapsed": true
      },
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 430
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 475
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            443
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.49",
        "Node name for S&R": "CLIPTextEncode",
        "ue_properties": {
          "version": "7.0.1",
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "prompt"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 249,
      "type": "VAEDecode",
      "pos": [
        663.148896935152,
        -481.4926617489057
      ],
      "size": [
        140,
        46
      ],
      "flags": {
        "collapsed": true
      },
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 538
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 540
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            539,
            548
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "VAEDecode",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": []
    },
    {
      "id": 7,
      "type": "CLIPTextEncode",
      "pos": [
        -400.29803466796875,
        -0.820580244064331
      ],
      "size": [
        522.5441284179688,
        165.83148193359375
      ],
      "flags": {
        "collapsed": true
      },
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 431
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            444
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.49",
        "Node name for S&R": "CLIPTextEncode",
        "ue_properties": {
          "version": "7.0.1",
          "widget_ue_connectable": {}
        }
      },
      "widgets_values": [
        "prompt"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 255,
      "type": "Note",
      "pos": [
        -467.4029272797868,
        104.20632457467077
      ],
      "size": [
        232.816941152425,
        88
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        ""
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 256,
      "type": "SaveImage",
      "pos": [
        1956.5423902154591,
        -545.6341146547414
      ],
      "size": [
        816.8118224576624,
        879.7394559923011
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 550
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "SaveImage",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "id": 205,
      "type": "ModelSamplingAuraFlow",
      "pos": [
        301.6419303743725,
        -417.40270928742103
      ],
      "size": [
        270,
        58
      ],
      "flags": {
        "collapsed": false
      },
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 464
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            454
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.16.4",
        "Node name for S&R": "ModelSamplingAuraFlow",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        1.75
      ]
    },
    {
      "id": 218,
      "type": "PrimitiveStringMultiline",
      "pos": [
        -448.7130736589009,
        -303.75346060605693
      ],
      "size": [
        400.30339617367963,
        211.9841488603467
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            475,
            536
          ]
        }
      ],
      "title": "Prompt",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "PrimitiveStringMultiline",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "prompt"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 248,
      "type": "Image Comparer (rgthree)",
      "pos": [
        1069.2668430714925,
        -552.5026869477585
      ],
      "size": [
        800.6330207917691,
        884.2996932699924
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "dir": 3,
          "name": "image_a",
          "type": "IMAGE",
          "link": 539
        },
        {
          "dir": 3,
          "name": "image_b",
          "type": "IMAGE",
          "link": 537
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "rgthree-comfy",
        "ver": "738105af5fb14e96fbecaf406dc356e284797e8c",
        "comparer_mode": "Slide",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        {}
      ]
    },
    {
      "id": 232,
      "type": "KSamplerSelect",
      "pos": [
        606.0818708443625,
        -47.21651006862165
      ],
      "size": [
        270,
        80.328125
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            530
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "KSamplerSelect",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "sa_solver"
      ]
    },
    {
      "id": 229,
      "type": "BasicScheduler",
      "pos": [
        606.6313410907621,
        78.60212107197238
      ],
      "size": [
        264.2086150763837,
        106
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 553
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            531
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.22.0",
        "Node name for S&R": "BasicScheduler",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "7.8",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "linear_quadratic",
        4,
        1
      ]
    },
    {
      "id": 195,
      "type": "PrimitiveInt",
      "pos": [
        -197.4523960153458,
        47.54425417595855
      ],
      "size": [
        210,
        82
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            451
          ]
        }
      ],
      "title": "Image Width",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.60",
        "Node name for S&R": "PrimitiveInt",
        "ue_properties": {
          "widget_ue_connectable": {
            "value": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        1328,
        "fixed"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 196,
      "type": "PrimitiveInt",
      "pos": [
        -194.576715091884,
        178.86856447869337
      ],
      "size": [
        210,
        82
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            452
          ]
        }
      ],
      "title": "Image Height",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.60",
        "Node name for S&R": "PrimitiveInt",
        "ue_properties": {
          "widget_ue_connectable": {
            "value": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        1328,
        "fixed"
      ],
      "color": "#2a363b",
      "bgcolor": "#3f5159"
    },
    {
      "id": 207,
      "type": "LoraLoaderModelOnly",
      "pos": [
        -879.8688259732563,
        -198.5049957497044
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 14,
      "mode": 4,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 461
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            462
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "LoraLoaderModelOnly",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "Your_Character_LoRA_Here.safetensors",
        0.65
      ]
    },
    {
      "id": 206,
      "type": "LoraLoaderModelOnly",
      "pos": [
        -879.8152637593795,
        -334.5557213367377
      ],
      "size": [
        270,
        82
      ],
      "flags": {},
      "order": 12,
      "mode": 4,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 460
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            461
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "LoraLoaderModelOnly",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [
        "Qwen-Image-Lightning-8steps-V2.0.safetensors",
        0.4
      ]
    },
    {
      "id": 95,
      "type": "EmptyLatentImage",
      "pos": [
        66.45469229419676,
        141.67094092286487
      ],
      "size": [
        210,
        106
      ],
      "flags": {
        "collapsed": true
      },
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 451
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 452
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            445
          ]
        }
      ],
      "title": "Empty Latent",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.49",
        "Node name for S&R": "EmptyLatentImage",
        "ue_properties": {
          "version": "7.0.1",
          "widget_ue_connectable": {
            "width": true,
            "height": true,
            "batch_size": true
          },
          "input_ue_unconnectable": {}
        },
        "widget_ue_connectable": {}
      },
      "widgets_values": [
        1144,
        1472,
        1
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 204,
      "type": "KSampler",
      "pos": [
        294.80822434220073,
        -302.0503447395674
      ],
      "size": [
        270,
        474
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 454
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 443
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 444
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 445
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            538
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75",
        "Node name for S&R": "KSampler",
        "ue_properties": {
          "widget_ue_connectable": {
            "seed": true,
            "steps": true,
            "cfg": true,
            "sampler_name": true,
            "scheduler": true,
            "denoise": true
          },
          "version": "7.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        1116461079078883,
        "randomize",
        4,
        1,
        "res_3s",
        "beta",
        1
      ]
    },
    {
      "id": 39,
      "type": "VAELoader",
      "pos": [
        -1318.1757513221398,
        126.06034471638023
      ],
      "size": [
        288.9561462402344,
        58.316253662109375
      ],
      "flags": {
        "collapsed": false
      },
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "slot_index": 0,
          "links": [
            540
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.49",
        "Node name for S&R": "VAELoader",
        "ue_properties": {
          "version": "7.0.1",
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "ae.safetensors"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 99,
      "type": "CLIPLoader",
      "pos": [
        -1317.0090115309624,
        -42.86956267169838
      ],
      "size": [
        297.8836669921875,
        115.81897735595703
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            430,
            431
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.52",
        "Node name for S&R": "CLIPLoader",
        "ue_properties": {
          "version": "7.0.1",
          "widget_ue_connectable": {
            "clip_name": true,
            "type": true,
            "device": true
          },
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "qwen_3_4b.safetensors",
        "lumina2",
        "default"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 96,
      "type": "UNETLoader",
      "pos": [
        -1322.2911800502325,
        -292.738034344327
      ],
      "size": [
        302.80438232421875,
        82
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            460
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.52",
        "Node name for S&R": "UNETLoader",
        "ue_properties": {
          "version": "7.0.1",
          "widget_ue_connectable": {
            "unet_name": true,
            "weight_dtype": true
          },
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "z_image_turbo_bf16.safetensors",
        "default"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 237,
      "type": "Fast Bypasser (rgthree)",
      "pos": [
        608.6756305354622,
        -433.76451650317995
      ],
      "size": [
        235.25014078080008,
        58
      ],
      "flags": {},
      "order": 24,
      "mode": 0,
      "inputs": [
        {
          "dir": 3,
          "label": " ",
          "name": "PiD",
          "type": "*",
          "link": 555
        },
        {
          "dir": 3,
          "label": " ",
          "name": "",
          "type": "*",
          "link": null
        }
      ],
      "outputs": [
        {
          "dir": 4,
          "label": " ",
          "name": "OPT_CONNECTION",
          "type": "*",
          "links": null
        }
      ],
      "title": "Enable PiD",
      "properties": {
        "toggleRestriction": "default",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        },
        "collapse_connections": true
      },
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 247,
      "type": "be65316b-d17b-4000-b677-2e10d7c0b036",
      "pos": [
        621.8237720222188,
        -325.7649074624614
      ],
      "size": [
        210,
        148
      ],
      "flags": {
        "collapsed": false
      },
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "latent",
          "type": "LATENT",
          "link": 556
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 530
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 531
        },
        {
          "label": "Pos Prompt",
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 536
        },
        {
          "label": "pid_model",
          "name": "model",
          "type": "MODEL",
          "link": 554
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            537,
            550,
            555
          ]
        }
      ],
      "properties": {
        "proxyWidgets": [
          [
            "246",
            "text"
          ]
        ],
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 257,
      "type": "UNETLoader",
      "pos": [
        -1325.8553890552955,
        -169.70482849710848
      ],
      "size": [
        302.80438232421875,
        82
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            553,
            554
          ]
        }
      ],
      "title": "PiD Model",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.52",
        "Node name for S&R": "UNETLoader",
        "ue_properties": {
          "version": "7.0.1",
          "widget_ue_connectable": {
            "unet_name": true,
            "weight_dtype": true
          },
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "z_image_pid.pth",
        "default"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 254,
      "type": "09c6c775-d26e-4f30-acfc-3e69eb36f4db",
      "pos": [
        631.1855784483279,
        -129.12624910947645
      ],
      "size": [
        185.48262993084245,
        26
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 548
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            556
          ]
        }
      ],
      "properties": {
        "proxyWidgets": [],
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "ue_properties": {
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "version": "7.8"
        }
      },
      "widgets_values": [],
      "color": "#322",
      "bgcolor": "#533"
    }
  ],
  "links": [
    [
      430,
      99,
      0,
      6,
      0,
      "CLIP"
    ],
    [
      431,
      99,
      0,
      7,
      0,
      "CLIP"
    ],
    [
      443,
      6,
      0,
      204,
      1,
      "CONDITIONING"
    ],
    [
      444,
      7,
      0,
      204,
      2,
      "CONDITIONING"
    ],
    [
      445,
      95,
      0,
      204,
      3,
      "LATENT"
    ],
    [
      451,
      195,
      0,
      95,
      0,
      "INT"
    ],
    [
      452,
      196,
      0,
      95,
      1,
      "INT"
    ],
    [
      454,
      205,
      0,
      204,
      0,
      "MODEL"
    ],
    [
      460,
      96,
      0,
      206,
      0,
      "MODEL"
    ],
    [
      461,
      206,
      0,
      207,
      0,
      "MODEL"
    ],
    [
      462,
      207,
      0,
      208,
      0,
      "MODEL"
    ],
    [
      463,
      208,
      0,
      209,
      0,
      "MODEL"
    ],
    [
      464,
      209,
      0,
      205,
      0,
      "MODEL"
    ],
    [
      475,
      218,
      0,
      6,
      1,
      "STRING"
    ],
    [
      530,
      232,
      0,
      247,
      1,
      "SAMPLER"
    ],
    [
      531,
      229,
      0,
      247,
      2,
      "SIGMAS"
    ],
    [
      536,
      218,
      0,
      247,
      3,
      "STRING"
    ],
    [
      537,
      247,
      0,
      248,
      1,
      "IMAGE"
    ],
    [
      538,
      204,
      0,
      249,
      0,
      "LATENT"
    ],
    [
      539,
      249,
      0,
      248,
      0,
      "IMAGE"
    ],
    [
      540,
      39,
      0,
      249,
      1,
      "VAE"
    ],
    [
      548,
      249,
      0,
      254,
      0,
      "IMAGE"
    ],
    [
      550,
      247,
      0,
      256,
      0,
      "IMAGE"
    ],
    [
      553,
      257,
      0,
      229,
      0,
      "MODEL"
    ],
    [
      554,
      257,
      0,
      247,
      4,
      "MODEL"
    ],
    [
      555,
      247,
      0,
      237,
      0,
      "IMAGE"
    ],
    [
      556,
      254,
      0,
      247,
      0,
      "LATENT"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Model Loaders",
      "bounding": [
        -1386.2235107421875,
        -369.1780090332031,
        418.6479797363281,
        575.1849365234375
      ],
      "color": "#b58b2a",
      "flags": {}
    },
    {
      "id": 2,
      "title": "LoRA Loaders",
      "bounding": [
        -954.3433837890625,
        -421.3369445800781,
        430.5108337402344,
        698.2196655273438
      ],
      "color": "#b58b2a",
      "flags": {}
    },
    {
      "id": 3,
      "title": "Prompts & Resolution",
      "bounding": [
        -507.6691589355469,
        -422.570556640625,
        732.6517944335938,
        699.0110473632812
      ],
      "color": "#b58b2a",
      "flags": {}
    },
    {
      "id": 4,
      "title": "Sampling",
      "bounding": [
        240.62575726318286,
        -568.0536736655016,
        668.0703225602631,
        952.5208652804363
      ],
      "color": "#b58b2a",
      "flags": {}
    },
    {
      "id": 5,
      "title": "Final Image",
      "bounding": [
        926.9877739419215,
        -655.6856061110705,
        2050.478063569276,
        1040.2132687179883
      ],
      "color": "#b58b2a",
      "flags": {}
    }
  ],
  "definitions": {
    "subgraphs": [
      {
        "id": "be65316b-d17b-4000-b677-2e10d7c0b036",
        "version": 1,
        "state": {
          "lastGroupId": 5,
          "lastNodeId": 257,
          "lastLinkId": 556,
          "lastRerouteId": 0
        },
        "revision": 0,
        "config": {},
        "name": "PiD",
        "inputNode": {
          "id": -10,
          "bounding": [
            -142.48434993026808,
            -495.7213190543684,
            128,
            148
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            1480.8955808654762,
            -485.7213190543684,
            128,
            68
          ]
        },
        "inputs": [
          {
            "id": "f26840a2-7549-45cd-bfe2-eaa320ec5ac9",
            "name": "latent",
            "type": "LATENT",
            "linkIds": [
              523
            ],
            "localized_name": "latent",
            "pos": [
              -38.48434993026808,
              -471.7213190543684
            ]
          },
          {
            "id": "44ea2656-ef07-4ba2-bfbe-df86678c8392",
            "name": "sampler",
            "type": "SAMPLER",
            "linkIds": [
              524
            ],
            "localized_name": "sampler",
            "pos": [
              -38.48434993026808,
              -451.7213190543684
            ]
          },
          {
            "id": "fb40eb9b-6c92-404d-b5ca-b060998756a0",
            "name": "sigmas",
            "type": "SIGMAS",
            "linkIds": [
              525
            ],
            "localized_name": "sigmas",
            "pos": [
              -38.48434993026808,
              -431.7213190543684
            ]
          },
          {
            "id": "4dfb28e1-5c2c-462a-ae05-794946edbb99",
            "name": "text",
            "type": "STRING",
            "linkIds": [
              535
            ],
            "label": "Pos Prompt",
            "pos": [
              -38.48434993026808,
              -411.7213190543684
            ]
          },
          {
            "id": "69619f26-e2c6-42cb-95c2-28fb32945295",
            "name": "model",
            "type": "MODEL",
            "linkIds": [
              552
            ],
            "label": "pid_model",
            "pos": [
              -38.48434993026808,
              -391.7213190543684
            ]
          }
        ],
        "outputs": [
          {
            "id": "631f4067-adef-4a28-a1cd-60353583e3ef",
            "name": "IMAGE",
            "type": "IMAGE",
            "linkIds": [
              528
            ],
            "localized_name": "IMAGE",
            "pos": [
              1504.8955808654762,
              -461.7213190543684
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 238,
            "type": "CLIPLoader",
            "pos": [
              45.51565006973192,
              -706.3621048617721
            ],
            "size": [
              395.725814595314,
              144.01441572976546
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [],
            "outputs": [
              {
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP",
                "links": [
                  514
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.22.0",
              "Node name for S&R": "CLIPLoader",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.8",
                "input_ue_unconnectable": {}
              }
            },
            "widgets_values": [
              "gemma_2_2b_it_elm_bf16.safetensors",
              "pixeldit",
              "default"
            ],
            "color": "#432",
            "bgcolor": "#653"
          },
          {
            "id": 243,
            "type": "VAEDecode",
            "pos": [
              1188.6835407257865,
              -686.6674569275647
            ],
            "size": [
              225,
              46
            ],
            "flags": {
              "collapsed": false
            },
            "order": 4,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT",
                "link": 516
              },
              {
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE",
                "link": 517
              }
            ],
            "outputs": [
              {
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE",
                "links": [
                  528
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.22.0",
              "Node name for S&R": "VAEDecode",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.8",
                "input_ue_unconnectable": {}
              }
            },
            "widgets_values": [],
            "color": "#322",
            "bgcolor": "#533"
          },
          {
            "id": 246,
            "type": "CLIPTextEncode",
            "pos": [
              448.3852947725048,
              -705.487960956586
            ],
            "size": [
              400,
              200
            ],
            "flags": {},
            "order": 7,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP",
                "link": 514
              },
              {
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                },
                "link": 535
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  515,
                  518
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.22.0",
              "Node name for S&R": "CLIPTextEncode",
              "ue_properties": {
                "widget_ue_connectable": {
                  "text": true
                },
                "version": "7.8",
                "input_ue_unconnectable": {}
              }
            },
            "widgets_values": [
              "prompt"
            ],
            "color": "#232",
            "bgcolor": "#353"
          },
          {
            "id": 239,
            "type": "ConditioningZeroOut",
            "pos": [
              876.2321825193675,
              -470.4077550668238
            ],
            "size": [
              225,
              47.328125
            ],
            "flags": {
              "collapsed": false
            },
            "order": 3,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "conditioning",
                "name": "conditioning",
                "type": "CONDITIONING",
                "link": 515
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  521
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.22.0",
              "Node name for S&R": "ConditioningZeroOut",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.8",
                "input_ue_unconnectable": {}
              }
            },
            "widgets_values": [],
            "color": "#332922",
            "bgcolor": "#593930"
          },
          {
            "id": 241,
            "type": "VAELoader",
            "pos": [
              930.3611458570823,
              -770.2484382291711
            ],
            "size": [
              225,
              50
            ],
            "flags": {
              "collapsed": true
            },
            "order": 1,
            "mode": 0,
            "inputs": [],
            "outputs": [
              {
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE",
                "links": [
                  517
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.22.0",
              "Node name for S&R": "VAELoader",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.8",
                "input_ue_unconnectable": {}
              }
            },
            "widgets_values": [
              "pixel_space"
            ],
            "color": "#322",
            "bgcolor": "#533"
          },
          {
            "id": 244,
            "type": "PiDConditioning",
            "pos": [
              864.0598374694637,
              -682.6062747405374
            ],
            "size": [
              270,
              137.328125
            ],
            "flags": {},
            "order": 5,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING",
                "link": 518
              },
              {
                "localized_name": "latent",
                "name": "latent",
                "type": "LATENT",
                "link": 523
              }
            ],
            "outputs": [
              {
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "type": "CONDITIONING",
                "links": [
                  520
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.22.0",
              "Node name for S&R": "PiDConditioning",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.8",
                "input_ue_unconnectable": {}
              }
            },
            "widgets_values": [
              "flux",
              0
            ],
            "color": "#332922",
            "bgcolor": "#593930"
          },
          {
            "id": 245,
            "type": "SamplerCustom",
            "pos": [
              1149.7705808654762,
              -603.4360148349404
            ],
            "size": [
              271.125,
              495.125
            ],
            "flags": {},
            "order": 6,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "model",
                "name": "model",
                "type": "MODEL",
                "link": 552
              },
              {
                "localized_name": "positive",
                "name": "positive",
                "type": "CONDITIONING",
                "link": 520
              },
              {
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING",
                "link": 521
              },
              {
                "localized_name": "sampler",
                "name": "sampler",
                "type": "SAMPLER",
                "link": 524
              },
              {
                "localized_name": "sigmas",
                "name": "sigmas",
                "type": "SIGMAS",
                "link": 525
              },
              {
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT",
                "link": 522
              }
            ],
            "outputs": [
              {
                "localized_name": "output",
                "name": "output",
                "type": "LATENT",
                "links": [
                  516
                ]
              },
              {
                "localized_name": "denoised_output",
                "name": "denoised_output",
                "type": "LATENT",
                "links": []
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.22.0",
              "Node name for S&R": "SamplerCustom",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.8",
                "input_ue_unconnectable": {}
              }
            },
            "widgets_values": [
              true,
              983744741398137,
              "randomize",
              1
            ]
          },
          {
            "id": 240,
            "type": "EmptyChromaRadianceLatentImage",
            "pos": [
              829.0958345434003,
              -373.59581573098956
            ],
            "size": [
              278.7218113808042,
              122.68876657806209
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [],
            "outputs": [
              {
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT",
                "links": [
                  522
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.22.0",
              "Node name for S&R": "EmptyChromaRadianceLatentImage",
              "ue_properties": {
                "widget_ue_connectable": {},
                "version": "7.8",
                "input_ue_unconnectable": {}
              }
            },
            "widgets_values": [
              4096,
              4096,
              1
            ],
            "color": "#323",
            "bgcolor": "#535"
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 515,
            "origin_id": 246,
            "origin_slot": 0,
            "target_id": 239,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 516,
            "origin_id": 245,
            "origin_slot": 0,
            "target_id": 243,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 517,
            "origin_id": 241,
            "origin_slot": 0,
            "target_id": 243,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 518,
            "origin_id": 246,
            "origin_slot": 0,
            "target_id": 244,
            "target_slot": 0,
            "type": "CONDITIONING"
          },
          {
            "id": 520,
            "origin_id": 244,
            "origin_slot": 0,
            "target_id": 245,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 521,
            "origin_id": 239,
            "origin_slot": 0,
            "target_id": 245,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 522,
            "origin_id": 240,
            "origin_slot": 0,
            "target_id": 245,
            "target_slot": 5,
            "type": "LATENT"
          },
          {
            "id": 514,
            "origin_id": 238,
            "origin_slot": 0,
            "target_id": 246,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 523,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 244,
            "target_slot": 1,
            "type": "LATENT"
          },
          {
            "id": 524,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 245,
            "target_slot": 3,
            "type": "SAMPLER"
          },
          {
            "id": 525,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 245,
            "target_slot": 4,
            "type": "SIGMAS"
          },
          {
            "id": 528,
            "origin_id": 243,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 535,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 246,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 552,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 245,
            "target_slot": 0,
            "type": "MODEL"
          }
        ],
        "extra": {
          "ue_links": [],
          "links_added_by_ue": []
        }
      },
      {
        "id": "09c6c775-d26e-4f30-acfc-3e69eb36f4db",
        "version": 1,
        "state": {
          "lastGroupId": 5,
          "lastNodeId": 257,
          "lastLinkId": 556,
          "lastRerouteId": 0
        },
        "revision": 0,
        "config": {},
        "name": "Up/Down Scale",
        "inputNode": {
          "id": -10,
          "bounding": [
            111.19482398358412,
            326.6017444079363,
            128,
            68
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            935.5338573447877,
            326.6017444079363,
            128,
            68
          ]
        },
        "inputs": [
          {
            "id": "01101508-1359-474b-9fd3-eeb52db6b551",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              544
            ],
            "localized_name": "image",
            "pos": [
              215.19482398358412,
              350.6017444079363
            ]
          }
        ],
        "outputs": [
          {
            "id": "2520ef05-c3d1-40e9-8a29-ce513028583f",
            "name": "LATENT",
            "type": "LATENT",
            "linkIds": [
              547
            ],
            "localized_name": "LATENT",
            "pos": [
              959.5338573447877,
              350.6017444079363
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 251,
            "type": "ImageResizeKJv2",
            "pos": [
              299.1948239835841,
              207.6017444079362
            ],
            "size": [
              270,
              336.0000000000001
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 544
              },
              {
                "localized_name": "mask",
                "name": "mask",
                "shape": 7,
                "type": "MASK",
                "link": null
              }
            ],
            "outputs": [
              {
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE",
                "links": [
                  545
                ]
              },
              {
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "links": null
              },
              {
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "links": null
              },
              {
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK",
                "links": null
              }
            ],
            "properties": {
              "cnr_id": "comfyui-kjnodes",
              "ver": "f8fce8ea890557659ef1d454305f2eebecf760ee",
              "Node name for S&R": "ImageResizeKJv2",
              "ue_properties": {
                "widget_ue_connectable": {},
                "input_ue_unconnectable": {},
                "version": "7.8"
              }
            },
            "widgets_values": [
              1024,
              1024,
              "lanczos",
              "stretch",
              "0, 0, 0",
              "center",
              2,
              "cpu"
            ]
          },
          {
            "id": 252,
            "type": "VAEEncode",
            "pos": [
              659.5454941725474,
              215.8440748638688
            ],
            "size": [
              140,
              46
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "pixels",
                "name": "pixels",
                "type": "IMAGE",
                "link": 545
              },
              {
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE",
                "link": 546
              }
            ],
            "outputs": [
              {
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT",
                "links": [
                  547
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.24.0",
              "Node name for S&R": "VAEEncode",
              "ue_properties": {
                "widget_ue_connectable": {},
                "input_ue_unconnectable": {},
                "version": "7.8"
              }
            },
            "widgets_values": []
          },
          {
            "id": 253,
            "type": "VAELoader",
            "pos": [
              605.5338573447877,
              311.5657427565727
            ],
            "size": [
              270,
              58
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [],
            "outputs": [
              {
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE",
                "links": [
                  546
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.24.0",
              "Node name for S&R": "VAELoader",
              "ue_properties": {
                "widget_ue_connectable": {},
                "input_ue_unconnectable": {},
                "version": "7.8"
              }
            },
            "widgets_values": [
              "ae.safetensors"
            ]
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 545,
            "origin_id": 251,
            "origin_slot": 0,
            "target_id": 252,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 546,
            "origin_id": 253,
            "origin_slot": 0,
            "target_id": 252,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 544,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 251,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 547,
            "origin_id": 252,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "LATENT"
          }
        ],
        "extra": {
          "ue_links": [],
          "links_added_by_ue": []
        }
      }
    ]
  },
  "config": {},
  "extra": {
    "frontendVersion": "1.45.15",
    "ue_links": [],
    "links_added_by_ue": [],
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true,
    "workflowRendererVersion": "LG",
    "ds": {
      "scale": 0.6588450000000009,
      "offset": [
        181.0497939384135,
        903.8228688815088
      ]
    }
  },
  "version": 0.4
}