{
  "id": "1aa3b166-1861-429f-92ae-7ee12e64ab01",
  "revision": 0,
  "last_node_id": 97,
  "last_link_id": 149,
  "nodes": [
    {
      "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
        },
        {
          "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": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "ComfyMathExpression"
      },
      "widgets_values": [
        "a * 4"
      ],
      "widgets_values_named": {
        "expression": "a * 4"
      }
    },
    {
      "id": 74,
      "type": "ComfyMathExpression",
      "pos": [
        671.8070430075916,
        1173.415179658996
      ],
      "size": [
        210,
        128
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "label": "a",
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN",
          "link": 139
        },
        {
          "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": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "ComfyMathExpression"
      },
      "widgets_values": [
        "a * 4"
      ],
      "widgets_values_named": {
        "expression": "a * 4"
      }
    },
    {
      "id": 62,
      "type": "VAELoader",
      "pos": [
        1360.9976510179852,
        555.9717618776077
      ],
      "size": [
        235.80000000000018,
        58
      ],
      "flags": {},
      "order": 0,
      "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"
      ],
      "widgets_values_named": {
        "vae_name": "pixel_space"
      }
    },
    {
      "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": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "VAEEncode"
      }
    },
    {
      "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": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "GetImageSize"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "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": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.75"
      },
      "widgets_values": [
        "ComfyUI"
      ],
      "widgets_values_named": {
        "filename_prefix": "ComfyUI"
      }
    },
    {
      "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": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "EmptyChromaRadianceLatentImage"
      },
      "widgets_values": [
        896,
        1152,
        1
      ],
      "widgets_values_named": {
        "width": 896,
        "height": 1152,
        "batch_size": 1
      }
    },
    {
      "id": 90,
      "type": "ContextWindowsManual",
      "pos": [
        914.3048544471521,
        326.3776092603588
      ],
      "size": [
        299.9609375,
        322
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 144
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            145
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "ContextWindowsManual"
      },
      "widgets_values": [
        1536,
        384,
        "standard_static",
        1,
        false,
        "pyramid",
        0,
        false,
        "",
        false,
        "",
        true
      ],
      "widgets_values_named": {
        "context_length": 1536,
        "context_overlap": 384,
        "context_schedule": "standard_static",
        "context_stride": 1,
        "closed_loop": false,
        "fuse_method": "pyramid",
        "dim": 0,
        "freenoise": false,
        "cond_retain_index_list": "",
        "split_conds_to_windows": false,
        "latent_retain_index_list": "",
        "causal_window_fix": true
      }
    },
    {
      "id": 77,
      "type": "ModelSamplingSD3",
      "pos": [
        647.074781051246,
        326.3776092603588
      ],
      "size": [
        234.02274434806372,
        58
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 125
        }
      ],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            144
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "ModelSamplingSD3"
      },
      "widgets_values": [
        4
      ],
      "widgets_values_named": {
        "shift": 4
      }
    },
    {
      "id": 67,
      "type": "PiDConditioning",
      "pos": [
        944.2657919471521,
        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": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "PiDConditioning"
      },
      "widgets_values": [
        "flux",
        0
      ],
      "widgets_values_named": {
        "latent_format": "flux",
        "degrade_sigma": 0
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "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"
      }
    },
    {
      "id": 79,
      "type": "LoadImage",
      "pos": [
        -532.4361549440936,
        1095.0166207447435
      ],
      "size": [
        316.7987915039063,
        467.0000366210936
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            134
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "viewfilename=ComfyUI_temp_rpijz_00022_.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "viewfilename=ComfyUI_temp_rpijz_00022_.png",
        "upload": "image"
      }
    },
    {
      "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",
        "models": [
          {
            "name": "pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/PixelDiT/resolve/main/diffusion_models/pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors",
            "directory": "diffusion_models"
          }
        ]
      },
      "widgets_values": [
        "pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors",
        "default"
      ],
      "widgets_values_named": {
        "unet_name": "pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors",
        "weight_dtype": "default"
      },
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 61,
      "type": "KSampler",
      "pos": [
        1281.7976510179856,
        674.4492063356142
      ],
      "size": [
        315,
        262
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 145
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 113
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 149
        },
        {
          "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
      ],
      "widgets_values_named": {
        "seed": 1234,
        "control_after_generate": "fixed",
        "steps": 4,
        "cfg": 1,
        "sampler_name": "lcm",
        "scheduler": "simple",
        "denoise": 1
      }
    },
    {
      "id": 89,
      "type": "MarkdownNote",
      "pos": [
        -135.8324089797664,
        326.3776092603588
      ],
      "size": [
        414.3873929207863,
        299.6311117170049
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "## models\n\n* diffusion_models\n\n  *  [pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/diffusion_models/pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors) (2.8 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  * [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-9b/blob/main/split_files/vae/flux2-vae.safetensors) (336 MB)\n\n\n```text\n📂ComfyUI/\n└── 📂models/\n    ├── 📂diffusion_models/\n    │    └── pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors\n    ├── 📂text_encoders/\n    │    └── gemma_2_2b_it_elm_bf16.safetensors\n    └── 📂vae/\n          └── flux2-vae.safetensors\n\n```"
      ],
      "widgets_values_named": {
        "text": "## models\n\n* diffusion_models\n\n  *  [pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/diffusion_models/pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors) (2.8 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  * [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-9b/blob/main/split_files/vae/flux2-vae.safetensors) (336 MB)\n\n\n```text\n📂ComfyUI/\n└── 📂models/\n    ├── 📂diffusion_models/\n    │    └── pid_1.5_flux2_1024_to_4096_4step_bf16.safetensors\n    ├── 📂text_encoders/\n    │    └── gemma_2_2b_it_elm_bf16.safetensors\n    └── 📂vae/\n          └── flux2-vae.safetensors\n\n```"
      },
      "color": "#323",
      "bgcolor": "#535"
    },
    {
      "id": 82,
      "type": "ResizeImageMaskNode",
      "pos": [
        -187.68646898516153,
        1095.0166207447435
      ],
      "size": [
        266.5849202168248,
        106
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 134
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            135
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "ResizeImageMaskNode"
      },
      "widgets_values": [
        "scale total pixels",
        1,
        "bicubic"
      ],
      "widgets_values_named": {
        "resize_type": "scale total pixels",
        "resize_type.megapixels": 1,
        "scale_method": "bicubic"
      }
    },
    {
      "id": 83,
      "type": "ResizeImageMaskNode",
      "pos": [
        106.8493456866891,
        1095.0166207447435
      ],
      "size": [
        266.5849202168248,
        106
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "input",
          "type": "IMAGE,MASK",
          "link": 135
        }
      ],
      "outputs": [
        {
          "name": "resized",
          "type": "IMAGE",
          "links": [
            136,
            137
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "ResizeImageMaskNode"
      },
      "widgets_values": [
        "scale to multiple",
        16,
        "bicubic"
      ],
      "widgets_values_named": {
        "resize_type": "scale to multiple",
        "resize_type.multiple": 16,
        "scale_method": "bicubic"
      }
    },
    {
      "id": 81,
      "type": "VAELoader",
      "pos": [
        106.8493456866891,
        977.4828493922302
      ],
      "size": [
        266.5849202168248,
        58
      ],
      "flags": {},
      "order": 4,
      "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",
        "models": [
          {
            "name": "flux2-vae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/vae-text-encorder-for-flux-klein-9b/resolve/main/split_files/vae/flux2-vae.safetensors",
            "directory": "vae"
          }
        ]
      },
      "widgets_values": [
        "flux2-vae.safetensors"
      ],
      "widgets_values_named": {
        "vae_name": "flux2-vae.safetensors"
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 60,
      "type": "CLIPLoader",
      "pos": [
        106.8493456866891,
        694.9903029515484
      ],
      "size": [
        301.3524169921875,
        106
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "slot_index": 0,
          "links": [
            109
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CLIPLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.33",
        "models": [
          {
            "name": "gemma_2_2b_it_elm_bf16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/PixelDiT/resolve/main/text_encoders/gemma_2_2b_it_elm_bf16.safetensors",
            "directory": "text_encoders"
          }
        ]
      },
      "widgets_values": [
        "gemma_2_2b_it_elm_bf16.safetensors",
        "pixeldit",
        "default"
      ],
      "widgets_values_named": {
        "clip_name": "gemma_2_2b_it_elm_bf16.safetensors",
        "type": "pixeldit",
        "device": "default"
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 63,
      "type": "CLIPTextEncode",
      "pos": [
        493.627226048558,
        694.9903029515484
      ],
      "size": [
        399.327757205883,
        161.90817282197872
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 109
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            112,
            148
          ]
        }
      ],
      "title": "CLIP Text Encode (Positive Prompt)",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.33"
      },
      "widgets_values": [
        ""
      ],
      "widgets_values_named": {
        "text": ""
      }
    },
    {
      "id": 97,
      "type": "ConditioningZeroOut",
      "pos": [
        671.8070430075916,
        909.4459013661387
      ],
      "size": [
        221.14794024684943,
        26
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 148
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            149
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "Node name for S&R": "ConditioningZeroOut"
      }
    }
  ],
  "links": [
    [
      102,
      61,
      0,
      57,
      0,
      "LATENT"
    ],
    [
      103,
      62,
      0,
      57,
      1,
      "VAE"
    ],
    [
      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"
    ],
    [
      125,
      59,
      0,
      77,
      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"
    ],
    [
      144,
      77,
      0,
      90,
      0,
      "MODEL"
    ],
    [
      145,
      90,
      0,
      61,
      0,
      "MODEL"
    ],
    [
      148,
      63,
      0,
      97,
      0,
      "CONDITIONING"
    ],
    [
      149,
      97,
      0,
      61,
      2,
      "CONDITIONING"
    ]
  ],
  "groups": [
    {
      "id": 2,
      "title": "Pid_1024→4096",
      "bounding": [
        -554.3908824317602,
        238.6952183841798,
        3081.2835698845024,
        1345.6484688397118
      ],
      "color": "#8A8",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.473624407447671,
      "offset": [
        977.8966693104766,
        89.8812080100734
      ]
    },
    "frontendVersion": "1.51.9",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}