{
  "id": "1aa3b166-1861-429f-92ae-7ee12e64ab01",
  "revision": 0,
  "last_node_id": 89,
  "last_link_id": 143,
  "nodes": [
    {
      "id": 60,
      "type": "CLIPLoader",
      "pos": [
        178.4554950121201,
        811.9490780397168
      ],
      "size": [
        301.3524169921875,
        106
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "slot_index": 0,
          "links": [
            104,
            109
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": [
        "gemma_2_2b_it_elm_bf16.safetensors",
        "pixeldit",
        "default"
      ],
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 63,
      "type": "CLIPTextEncode",
      "pos": [
        538.1873071000066,
        694.9903029515484
      ],
      "size": [
        361.1895922851561,
        152.373631591797
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 109
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            112
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": [
        ""
      ]
    },
    {
      "id": 70,
      "type": "ComfyMathExpression",
      "pos": [
        671.8070430075916,
        989.4245396947579
      ],
      "size": [
        210,
        128
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "label": "a",
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN",
          "link": 138
        },
        {
          "label": "b",
          "name": "values.b",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": null
        },
        {
          "name": "INT",
          "type": "INT",
          "links": [
            121
          ]
        },
        {
          "name": "BOOL",
          "type": "BOOLEAN",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "ComfyMathExpression"
      },
      "widgets_values": [
        "a * 4"
      ]
    },
    {
      "id": 74,
      "type": "ComfyMathExpression",
      "pos": [
        671.926902524347,
        1173.415179658996
      ],
      "size": [
        210,
        128
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "label": "a",
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN",
          "link": 139
        },
        {
          "label": "b",
          "name": "values.b",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": null
        },
        {
          "name": "INT",
          "type": "INT",
          "links": [
            122
          ]
        },
        {
          "name": "BOOL",
          "type": "BOOLEAN",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "ComfyMathExpression"
      },
      "widgets_values": [
        "a * 4"
      ]
    },
    {
      "id": 61,
      "type": "KSampler",
      "pos": [
        1281.7976510179856,
        674.4492063356142
      ],
      "size": [
        315,
        262
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 124
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 113
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 107
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 108
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            102
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSampler",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": [
        1234,
        "fixed",
        4,
        1,
        "lcm",
        "simple",
        1
      ]
    },
    {
      "id": 77,
      "type": "ModelSamplingSD3",
      "pos": [
        647.074781051246,
        326.3776092603588
      ],
      "size": [
        234.02274434806372,
        58
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 125
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            126
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ModelSamplingSD3"
      },
      "widgets_values": [
        4
      ]
    },
    {
      "id": 62,
      "type": "VAELoader",
      "pos": [
        1360.9976510179852,
        555.9717618776077
      ],
      "size": [
        235.80000000000018,
        58
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "slot_index": 0,
          "links": [
            103
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": [
        "pixel_space"
      ]
    },
    {
      "id": 82,
      "type": "ResizeImageMaskNode",
      "pos": [
        -187.68646898516153,
        1095.0166207447435
      ],
      "size": [
        266.5849202168248,
        106
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 134
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            135
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeImageMaskNode"
      },
      "widgets_values": [
        "scale total pixels",
        1,
        "nearest-exact"
      ]
    },
    {
      "id": 80,
      "type": "VAEEncode",
      "pos": [
        407.88598227132763,
        1095.0166207447435
      ],
      "size": [
        170.05260120738637,
        46
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 136
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 132
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            133
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEEncode"
      },
      "widgets_values": []
    },
    {
      "id": 58,
      "type": "CLIPTextEncode",
      "pos": [
        540.3078029573284,
        910.6321261399594
      ],
      "size": [
        419.26959228515625,
        107.08506774902344
      ],
      "flags": {
        "collapsed": true
      },
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 104
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            107
          ]
        }
      ],
      "title": "CLIP Text Encode (Negative Prompt)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": [
        ""
      ]
    },
    {
      "id": 84,
      "type": "GetImageSize",
      "pos": [
        409.91468906546555,
        1197.5924621383035
      ],
      "size": [
        210,
        136
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 137
        }
      ],
      "outputs": [
        {
          "name": "width",
          "type": "INT",
          "links": [
            138
          ]
        },
        {
          "name": "height",
          "type": "INT",
          "links": [
            139
          ]
        },
        {
          "name": "batch_size",
          "type": "INT",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "GetImageSize"
      },
      "widgets_values": []
    },
    {
      "id": 65,
      "type": "SaveImage",
      "pos": [
        1826.4226403881014,
        674.4492063356142
      ],
      "size": [
        644.1825674446068,
        806.9942591157356
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 110
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75"
      },
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "id": 59,
      "type": "UNETLoader",
      "pos": [
        313.05994271638855,
        326.3776092603588
      ],
      "size": [
        305.3782043457031,
        82
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "slot_index": 0,
          "links": [
            125
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": [
        "pid_flux1_1024_to_4096_4step_bf16.safetensors",
        "default"
      ],
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 81,
      "type": "VAELoader",
      "pos": [
        85.79355151979729,
        989.5464055577053
      ],
      "size": [
        287.64071438371656,
        58
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "slot_index": 0,
          "links": [
            132
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": [
        "ae.safetensors"
      ],
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 57,
      "type": "VAEDecode",
      "pos": [
        1635.4756905687632,
        674.4492063356142
      ],
      "size": [
        157.56002807617188,
        46
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 102
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 103
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            110
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": []
    },
    {
      "id": 76,
      "type": "ContextWindowsManual",
      "pos": [
        915.0561692480533,
        326.3776092603588
      ],
      "size": [
        299.2096226990984,
        298
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 126
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            124
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ContextWindowsManual"
      },
      "widgets_values": [
        1536,
        384,
        "standard_static",
        1,
        false,
        "pyramid",
        2,
        false,
        "",
        false,
        false
      ]
    },
    {
      "id": 79,
      "type": "LoadImage",
      "pos": [
        -532.4361549440936,
        1095.0166207447435
      ],
      "size": [
        316.7987915039063,
        467.0000366210936
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            134
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "ComfyUI_00091_.png",
        "image"
      ]
    },
    {
      "id": 83,
      "type": "ResizeImageMaskNode",
      "pos": [
        106.84934568668905,
        1095.0166207447435
      ],
      "size": [
        266.5849202168248,
        106
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 135
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            136,
            137
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ResizeImageMaskNode"
      },
      "widgets_values": [
        "scale to multiple",
        16,
        "nearest-exact"
      ]
    },
    {
      "id": 67,
      "type": "PiDConditioning",
      "pos": [
        944.265791947152,
        694.9903029515484
      ],
      "size": [
        270,
        102
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 112
        },
        {
          "name": "latent",
          "type": "LATENT",
          "link": 133
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            113
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "PiDConditioning"
      },
      "widgets_values": [
        "flux",
        0
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 89,
      "type": "MarkdownNote",
      "pos": [
        -135.8324089797664,
        326.3776092603588
      ],
      "size": [
        413.71462239515324,
        313.08611572179626
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## models\n\n* diffusion_models\n\n  * [pid_flux1_512_to_2048_4step_bf16.safetensors](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/diffusion_models/pid_flux1_512_to_2048_4step_bf16.safetensors) (2.72 GB)\n  *  [pid_flux1_1024_to_4096_4step_bf16.safetensors](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/diffusion_models/pid_flux1_1024_to_4096_4step_bf16.safetensors) (2.72 GB)\n\n* text_encoders\n\n  * [gemma_2_2b_it_elm_bf16.safetensors](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/text_encoders/gemma_2_2b_it_elm_bf16.safetensors) (5.23 GB)\n\n* vae\n\n  * [ae.safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/blob/main/split_files/vae/ae.safetensors) (335 MB)\n\n\n```text\n📂ComfyUI/\n└── 📂models/\n    ├── 📂diffusion_models/\n    │    ├── pid_flux1_512_to_2048_4step_bf16.safetensors\n    │    └── pid_flux1_1024_to_4096_4step_bf16.safetensors\n    ├── 📂text_encoders/\n    │    └── gemma_2_2b_it_elm_bf16.safetensors\n    └── 📂vae/\n          └── ae.safetensors\n\n```"
      ],
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 64,
      "type": "EmptyChromaRadianceLatentImage",
      "pos": [
        914.3139120643391,
        987.6451858178366
      ],
      "size": [
        300.8609375,
        106
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 121
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 122
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            108
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "EmptyChromaRadianceLatentImage"
      },
      "widgets_values": [
        896,
        1152,
        1
      ]
    }
  ],
  "links": [
    [
      102,
      61,
      0,
      57,
      0,
      "LATENT"
    ],
    [
      103,
      62,
      0,
      57,
      1,
      "VAE"
    ],
    [
      104,
      60,
      0,
      58,
      0,
      "CLIP"
    ],
    [
      107,
      58,
      0,
      61,
      2,
      "CONDITIONING"
    ],
    [
      108,
      64,
      0,
      61,
      3,
      "LATENT"
    ],
    [
      109,
      60,
      0,
      63,
      0,
      "CLIP"
    ],
    [
      110,
      57,
      0,
      65,
      0,
      "IMAGE"
    ],
    [
      112,
      63,
      0,
      67,
      0,
      "CONDITIONING"
    ],
    [
      113,
      67,
      0,
      61,
      1,
      "CONDITIONING"
    ],
    [
      121,
      70,
      1,
      64,
      0,
      "INT"
    ],
    [
      122,
      74,
      1,
      64,
      1,
      "INT"
    ],
    [
      124,
      76,
      0,
      61,
      0,
      "MODEL"
    ],
    [
      125,
      59,
      0,
      77,
      0,
      "MODEL"
    ],
    [
      126,
      77,
      0,
      76,
      0,
      "MODEL"
    ],
    [
      132,
      81,
      0,
      80,
      1,
      "VAE"
    ],
    [
      133,
      80,
      0,
      67,
      1,
      "LATENT"
    ],
    [
      134,
      79,
      0,
      82,
      0,
      "IMAGE"
    ],
    [
      135,
      82,
      0,
      83,
      0,
      "IMAGE"
    ],
    [
      136,
      83,
      0,
      80,
      0,
      "IMAGE"
    ],
    [
      137,
      83,
      0,
      84,
      0,
      "IMAGE"
    ],
    [
      138,
      84,
      0,
      70,
      0,
      "INT"
    ],
    [
      139,
      84,
      1,
      74,
      0,
      "INT"
    ]
  ],
  "groups": [
    {
      "id": 2,
      "title": "Pid_1024→4096",
      "bounding": [
        -554.3908824317602,
        238.6952183841798,
        3081.2835698845024,
        1345.6484688397118
      ],
      "color": "#8A8",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.5209868481924432,
      "offset": [
        749.0102116191479,
        6.514142817800455
      ]
    },
    "frontendVersion": "1.45.15",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}