{
  "id": "acf8731e-f19a-50f0-ac9d-34e7d4f7aae9",
  "revision": 0,
  "last_node_id": 35,
  "last_link_id": 42,
  "nodes": [
    {
      "id": 1,
      "type": "MarkdownNote",
      "pos": [
        -940,
        30
      ],
      "size": [
        900,
        670
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "About this workflow",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "MarkdownNote",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "## DesireX × PiD — Fast High-Res\n\n**[DesireX](https://civitai.red/models/2945475/bss-desirex-krea2)** renders a small image in **8 steps**; **[NVIDIA's PiD (Pixel Diffusion Decoder)](https://huggingface.co/nvidia/PiD)** (Qwen-Image 2K→4K v1.5) then decodes that latent straight to **4× the width and height** in 4 steps — no VAE decode, no separate upscaler.\n\n**Size: set it once in 0 · Size and steps.** The default is **512×896 → 2048×3584**. Any width and height in multiples of\n16 work; the PiD output size is computed for you (4×), e.g. 896×512 → 3584×2048, 768×768 → 3072×3072, 1024×576 → 4096×2304.\n\n**Why it is fast:** Krea 2 renders at a quarter of the output's width and height (1/16 of the pixels); PiD, a smaller\ndecoder, draws the full-size image from that latent and the prompt.\n\n**How to use:** write a long, detailed prompt in **1 · Prompt** and press Run. The draft preview shows the Krea 2 render;\nthe saved image is PiD's 4× output.\n\n**Settings:** DesireX — 8 steps, CFG 1, euler / simple. PiD — 4 steps, CFG 1, lcm / simple,\nlatent_format `qwenimage` (Krea 2 uses the Qwen-Image VAE), degrade_sigma 0. PiD's v1.5 is trained for outputs from 2048\nto 4096 px: keep the Krea 2 render at 512 px or more on its long side (smaller renders decode soft)."
      ],
      "widgets_values_named": {
        "text": "## DesireX × PiD — Fast High-Res\n\n**[DesireX](https://civitai.red/models/2945475/bss-desirex-krea2)** renders a small image in **8 steps**; **[NVIDIA's PiD (Pixel Diffusion Decoder)](https://huggingface.co/nvidia/PiD)** (Qwen-Image 2K→4K v1.5) then decodes that latent straight to **4× the width and height** in 4 steps — no VAE decode, no separate upscaler.\n\n**Size: set it once in 0 · Size and steps.** The default is **512×896 → 2048×3584**. Any width and height in multiples of\n16 work; the PiD output size is computed for you (4×), e.g. 896×512 → 3584×2048, 768×768 → 3072×3072, 1024×576 → 4096×2304.\n\n**Why it is fast:** Krea 2 renders at a quarter of the output's width and height (1/16 of the pixels); PiD, a smaller\ndecoder, draws the full-size image from that latent and the prompt.\n\n**How to use:** write a long, detailed prompt in **1 · Prompt** and press Run. The draft preview shows the Krea 2 render;\nthe saved image is PiD's 4× output.\n\n**Settings:** DesireX — 8 steps, CFG 1, euler / simple. PiD — 4 steps, CFG 1, lcm / simple,\nlatent_format `qwenimage` (Krea 2 uses the Qwen-Image VAE), degrade_sigma 0. PiD's v1.5 is trained for outputs from 2048\nto 4096 px: keep the Krea 2 render at 512 px or more on its long side (smaller renders decode soft)."
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 2,
      "type": "MarkdownNote",
      "pos": [
        -940,
        760
      ],
      "size": [
        900,
        870
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Models",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "MarkdownNote",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "## Models (local ComfyUI)\n\nComfyUI with native Krea2 and PiD support (update ComfyUI first).\n\n- `BSS_DesireX(X).safetensors` → `models/diffusion_models/` ([download](https://civitai.red/models/2945475/bss-desirex-krea2))\n- `qwen3vl_4b_bf16.safetensors` → `models/text_encoders/` ([download](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_bf16.safetensors))\n- `qwen_image_vae.safetensors` → `models/vae/` ([download](https://huggingface.co/Comfy-Org/Qwen-Image/blob/main/split_files/vae/qwen_image_vae.safetensors))\n- `pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors` → `models/diffusion_models/` ([download](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/diffusion_models/pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors))\n- `gemma_2_2b_it_elm_fp8_scaled.safetensors` → `models/text_encoders/` ([download](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/text_encoders/gemma_2_2b_it_elm_fp8_scaled.safetensors))\n\nPiD uses the built-in **pixel_space** VAE — no file needed."
      ],
      "widgets_values_named": {
        "text": "## Models (local ComfyUI)\n\nComfyUI with native Krea2 and PiD support (update ComfyUI first).\n\n- `BSS_DesireX(X).safetensors` → `models/diffusion_models/` ([download](https://civitai.red/models/2945475/bss-desirex-krea2))\n- `qwen3vl_4b_bf16.safetensors` → `models/text_encoders/` ([download](https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_bf16.safetensors))\n- `qwen_image_vae.safetensors` → `models/vae/` ([download](https://huggingface.co/Comfy-Org/Qwen-Image/blob/main/split_files/vae/qwen_image_vae.safetensors))\n- `pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors` → `models/diffusion_models/` ([download](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/diffusion_models/pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors))\n- `gemma_2_2b_it_elm_fp8_scaled.safetensors` → `models/text_encoders/` ([download](https://huggingface.co/Comfy-Org/PixelDiT/blob/main/text_encoders/gemma_2_2b_it_elm_fp8_scaled.safetensors))\n\nPiD uses the built-in **pixel_space** VAE — no file needed."
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 3,
      "type": "PrimitiveStringMultiline",
      "pos": [
        20,
        1110
      ],
      "size": [
        380,
        500
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "STRING",
          "type": "STRING",
          "links": [
            4,
            14
          ]
        }
      ],
      "title": "Prompt (Krea 2 + PiD)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "PrimitiveStringMultiline",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "Photograph of a young woman with pale skin, with black, wavy, shoulder-length hair. She has striking blue eyes with black eyeliner and red lipstick. She is wearing a black, off-shoulder top with a black halter necklace and a silver chain necklace. Her right hand is gently touching her cheek, with long, manicured nails. She is lying on a beige, chevron-patterned couch. In the background, there is a dark wooden floor and a small, black bag with white straps on the left. The overall style is casual and slightly goth, with a focus on her makeup and necklace."
      ],
      "widgets_values_named": {
        "value": "Photograph of a young woman with pale skin, with black, wavy, shoulder-length hair. She has striking blue eyes with black eyeliner and red lipstick. She is wearing a black, off-shoulder top with a black halter necklace and a silver chain necklace. Her right hand is gently touching her cheek, with long, manicured nails. She is lying on a beige, chevron-patterned couch. In the background, there is a dark wooden floor and a small, black bag with white straps on the left. The overall style is casual and slightly goth, with a focus on her makeup and necklace."
      }
    },
    {
      "id": 4,
      "type": "UNETLoader",
      "pos": [
        480,
        90
      ],
      "size": [
        380,
        120
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            39
          ]
        }
      ],
      "title": "Load Krea 2 Turbo (bf16)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "UNETLoader",
        "models": [
          {
            "name": "krea2_turbo_bf16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_bf16.safetensors",
            "directory": "diffusion_models"
          }
        ],
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "BSS_DesireX4_Amateur_INT8_ConvRot.safetensors",
        "default"
      ],
      "widgets_values_named": {
        "unet_name": "BSS_DesireX4_Amateur_INT8_ConvRot.safetensors",
        "weight_dtype": "default"
      }
    },
    {
      "id": 7,
      "type": "MarkdownNote",
      "pos": [
        480,
        610
      ],
      "size": [
        380,
        150
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Optional",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "MarkdownNote",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "**Recommended LoRa's** (Optional):\n- **[BSS High/Low Res Slider](https://civitai.red/models/3039356/bss-highlow-res-slider-krea2)**: -1.0 or less\n- **[UGLY Slider](https://civitai.red/models/2224397/bss-ugly-slider)**: -1.0 or less"
      ],
      "widgets_values_named": {
        "text": "**Recommended LoRa's** (Optional):\n- **[BSS High/Low Res Slider](https://civitai.red/models/3039356/bss-highlow-res-slider-krea2)**: -1.0 or less\n- **[UGLY Slider](https://civitai.red/models/2224397/bss-ugly-slider)**: -1.0 or less"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 8,
      "type": "CLIPLoader",
      "pos": [
        480,
        820
      ],
      "size": [
        380,
        150
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            41
          ]
        }
      ],
      "title": "Load Krea 2 text encoder (Qwen3-VL 4B)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "CLIPLoader",
        "models": [
          {
            "name": "qwen3vl_4b_bf16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_bf16.safetensors",
            "directory": "text_encoders"
          }
        ],
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "Huihui-Qwen3-VL-4B-Instruct-abliterated-fp8_scaled.safetensors",
        "krea2",
        "default"
      ],
      "widgets_values_named": {
        "clip_name": "Huihui-Qwen3-VL-4B-Instruct-abliterated-fp8_scaled.safetensors",
        "type": "krea2",
        "device": "default"
      }
    },
    {
      "id": 9,
      "type": "VAELoader",
      "pos": [
        480,
        1030
      ],
      "size": [
        380,
        80
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            11
          ]
        }
      ],
      "title": "Load Qwen-Image VAE (draft preview)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "VAELoader",
        "models": [
          {
            "name": "qwen_image_vae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors",
            "directory": "vae"
          }
        ],
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "qwen_image_vae.safetensors"
      ],
      "widgets_values_named": {
        "vae_name": "qwen_image_vae.safetensors"
      }
    },
    {
      "id": 10,
      "type": "CLIPTextEncode",
      "pos": [
        940,
        90
      ],
      "size": [
        380,
        90
      ],
      "flags": {},
      "order": 20,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 42
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 4
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            5,
            7
          ]
        }
      ],
      "title": "Krea 2 prompt",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "CLIPTextEncode",
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        ""
      ],
      "widgets_values_named": {
        "text": ""
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 11,
      "type": "ConditioningZeroOut",
      "pos": [
        940,
        230
      ],
      "size": [
        380,
        60
      ],
      "flags": {},
      "order": 23,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 5
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            8
          ]
        }
      ],
      "title": "No negative (CFG 1)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "ConditioningZeroOut",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      }
    },
    {
      "id": 12,
      "type": "EmptyLatentImage",
      "pos": [
        940,
        350
      ],
      "size": [
        380,
        140
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 27
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 28
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            9
          ]
        }
      ],
      "title": "Krea 2 latent (size from 0 · Size and steps)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "EmptyLatentImage",
        "ue_properties": {
          "widget_ue_connectable": {
            "width": true,
            "height": true
          },
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        512,
        896,
        1
      ],
      "widgets_values_named": {
        "width": 512,
        "height": 896,
        "batch_size": 1
      }
    },
    {
      "id": 13,
      "type": "KSampler",
      "pos": [
        940,
        530
      ],
      "size": [
        380,
        600
      ],
      "flags": {},
      "order": 24,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 40
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 7
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 8
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 9
        },
        {
          "name": "steps",
          "type": "INT",
          "widget": {
            "name": "steps"
          },
          "link": 29
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            10,
            17
          ]
        }
      ],
      "title": "Krea 2 render (steps from 0 · Size and steps)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "KSampler",
        "ue_properties": {
          "widget_ue_connectable": {
            "steps": true
          },
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        1111,
        "fixed",
        4,
        1,
        "euler",
        "simple",
        1
      ],
      "widgets_values_named": {
        "seed": 1111,
        "control_after_generate": "fixed",
        "steps": 4,
        "cfg": 1,
        "sampler_name": "euler",
        "scheduler": "simple",
        "denoise": 1
      }
    },
    {
      "id": 14,
      "type": "VAEDecode",
      "pos": [
        940,
        1200
      ],
      "size": [
        380,
        80
      ],
      "flags": {},
      "order": 25,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 10
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 11
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            12
          ]
        }
      ],
      "title": "Draft decode",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "VAEDecode",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      }
    },
    {
      "id": 15,
      "type": "PreviewImage",
      "pos": [
        940,
        1330
      ],
      "size": [
        380,
        270
      ],
      "flags": {},
      "order": 27,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 12
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "title": "Draft (the Krea 2 render, before PiD)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "PreviewImage",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 16,
      "type": "UNETLoader",
      "pos": [
        1400,
        90
      ],
      "size": [
        380,
        120
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            18,
            19
          ]
        }
      ],
      "title": "Load PiD (Qwen-Image 2K→4K v1.5)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "UNETLoader",
        "models": [
          {
            "name": "pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/PixelDiT/resolve/main/diffusion_models/pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors",
            "directory": "diffusion_models"
          }
        ],
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors",
        "default"
      ],
      "widgets_values_named": {
        "unet_name": "pid_1.5_qwenimage_1024_to_4096_4step_bf16.safetensors",
        "weight_dtype": "default"
      }
    },
    {
      "id": 17,
      "type": "CLIPLoader",
      "pos": [
        1400,
        270
      ],
      "size": [
        380,
        150
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            13
          ]
        }
      ],
      "title": "Load PiD text encoder (Gemma 2 2B)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "CLIPLoader",
        "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"
          }
        ],
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "gemma_2_2b_it_elm_fp8_scaled.safetensors",
        "pixeldit",
        "default"
      ],
      "widgets_values_named": {
        "clip_name": "gemma_2_2b_it_elm_fp8_scaled.safetensors",
        "type": "pixeldit",
        "device": "default"
      }
    },
    {
      "id": 18,
      "type": "CLIPTextEncode",
      "pos": [
        1400,
        480
      ],
      "size": [
        380,
        90
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 13
        },
        {
          "name": "text",
          "type": "STRING",
          "widget": {
            "name": "text"
          },
          "link": 14
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            15,
            16
          ]
        }
      ],
      "title": "PiD prompt",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "CLIPTextEncode",
        "ue_properties": {
          "widget_ue_connectable": {
            "text": true
          },
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        ""
      ],
      "widgets_values_named": {
        "text": ""
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 19,
      "type": "ConditioningZeroOut",
      "pos": [
        1400,
        620
      ],
      "size": [
        380,
        60
      ],
      "flags": {},
      "order": 21,
      "mode": 0,
      "inputs": [
        {
          "name": "conditioning",
          "type": "CONDITIONING",
          "link": 15
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            21
          ]
        }
      ],
      "title": "No negative (CFG 1)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "ConditioningZeroOut",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      }
    },
    {
      "id": 20,
      "type": "PiDConditioning",
      "pos": [
        1400,
        730
      ],
      "size": [
        380,
        130
      ],
      "flags": {},
      "order": 26,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 16
        },
        {
          "name": "latent",
          "type": "LATENT",
          "link": 17
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "links": [
            20
          ]
        }
      ],
      "title": "PiD Conditioning (Krea 2 latent: qwenimage)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "PiDConditioning",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "qwenimage",
        0
      ],
      "widgets_values_named": {
        "latent_format": "qwenimage",
        "degrade_sigma": 0
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 21,
      "type": "KSamplerSelect",
      "pos": [
        1820,
        90
      ],
      "size": [
        380,
        80
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            22
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "KSamplerSelect",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "lcm"
      ],
      "widgets_values_named": {
        "sampler_name": "lcm"
      }
    },
    {
      "id": 22,
      "type": "BasicScheduler",
      "pos": [
        1820,
        230
      ],
      "size": [
        380,
        140
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 18
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            23
          ]
        }
      ],
      "title": "PiD 4 steps",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "BasicScheduler",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "simple",
        4,
        1
      ],
      "widgets_values_named": {
        "scheduler": "simple",
        "steps": 4,
        "denoise": 1
      }
    },
    {
      "id": 23,
      "type": "EmptyChromaRadianceLatentImage",
      "pos": [
        1820,
        430
      ],
      "size": [
        380,
        140
      ],
      "flags": {},
      "order": 22,
      "mode": 0,
      "inputs": [
        {
          "name": "width",
          "type": "INT",
          "widget": {
            "name": "width"
          },
          "link": 32
        },
        {
          "name": "height",
          "type": "INT",
          "widget": {
            "name": "height"
          },
          "link": 33
        }
      ],
      "outputs": [
        {
          "name": "LATENT",
          "type": "LATENT",
          "links": [
            24
          ]
        }
      ],
      "title": "PiD output (4× the Krea 2 size, computed)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "EmptyChromaRadianceLatentImage",
        "ue_properties": {
          "widget_ue_connectable": {
            "width": true,
            "height": true
          },
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        2048,
        3584,
        1
      ],
      "widgets_values_named": {
        "width": 2048,
        "height": 3584,
        "batch_size": 1
      }
    },
    {
      "id": 24,
      "type": "SamplerCustom",
      "pos": [
        1820,
        630
      ],
      "size": [
        380,
        550
      ],
      "flags": {},
      "order": 28,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 19
        },
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 20
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 21
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 22
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 23
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 24
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "links": [
            25
          ]
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": []
        }
      ],
      "title": "PiD decode",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "SamplerCustom",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        true,
        0,
        "fixed",
        1
      ],
      "widgets_values_named": {
        "add_noise": true,
        "noise_seed": 0,
        "control_after_generate": "fixed",
        "cfg": 1
      }
    },
    {
      "id": 25,
      "type": "VAELoader",
      "pos": [
        1820,
        1230
      ],
      "size": [
        380,
        80
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            26
          ]
        }
      ],
      "title": "pixel_space (built in)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "VAELoader",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "pixel_space"
      ],
      "widgets_values_named": {
        "vae_name": "pixel_space"
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 26,
      "type": "VAEDecode",
      "pos": [
        1820,
        1370
      ],
      "size": [
        380,
        80
      ],
      "flags": {},
      "order": 29,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 25
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 26
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            34
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "VAEDecode",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      }
    },
    {
      "id": 27,
      "type": "PrimitiveInt",
      "pos": [
        20,
        90
      ],
      "size": [
        380,
        100
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            27,
            30
          ]
        }
      ],
      "title": "Width (Krea 2) — default 512, multiple of 16",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "PrimitiveInt",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        512,
        "fixed"
      ],
      "widgets_values_named": {
        "value": 512,
        "control_after_generate": "fixed"
      }
    },
    {
      "id": 28,
      "type": "PrimitiveInt",
      "pos": [
        20,
        250
      ],
      "size": [
        380,
        100
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            28,
            31
          ]
        }
      ],
      "title": "Height (Krea 2) — default 896, multiple of 16",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "PrimitiveInt",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        896,
        "fixed"
      ],
      "widgets_values_named": {
        "value": 896,
        "control_after_generate": "fixed"
      }
    },
    {
      "id": 29,
      "type": "PrimitiveInt",
      "pos": [
        10,
        400
      ],
      "size": [
        410,
        100
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "INT",
          "type": "INT",
          "links": [
            29
          ]
        }
      ],
      "title": "Steps — default 8",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "PrimitiveInt",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        8,
        "fixed"
      ],
      "widgets_values_named": {
        "value": 8,
        "control_after_generate": "fixed"
      },
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 30,
      "type": "ComfyMathExpression",
      "pos": [
        20,
        550
      ],
      "size": [
        380,
        180
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "label": "a",
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN",
          "link": 30
        },
        {
          "name": "values.b",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": []
        },
        {
          "name": "INT",
          "type": "INT",
          "links": [
            32
          ]
        },
        {
          "name": "BOOL",
          "type": "BOOLEAN",
          "links": []
        }
      ],
      "title": "PiD width = 4 × width",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "ComfyMathExpression",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "a * 4"
      ],
      "widgets_values_named": {
        "expression": "a * 4"
      }
    },
    {
      "id": 31,
      "type": "ComfyMathExpression",
      "pos": [
        20,
        780
      ],
      "size": [
        380,
        180
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "label": "a",
          "name": "values.a",
          "type": "FLOAT,INT,BOOLEAN",
          "link": 31
        },
        {
          "name": "values.b",
          "shape": 7,
          "type": "FLOAT,INT,BOOLEAN",
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "links": []
        },
        {
          "name": "INT",
          "type": "INT",
          "links": [
            33
          ]
        },
        {
          "name": "BOOL",
          "type": "BOOLEAN",
          "links": []
        }
      ],
      "title": "PiD height = 4 × height",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "ComfyMathExpression",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "a * 4"
      ],
      "widgets_values_named": {
        "expression": "a * 4"
      }
    },
    {
      "id": 32,
      "type": "SaveImage",
      "pos": [
        2280,
        90
      ],
      "size": [
        860,
        1510
      ],
      "flags": {},
      "order": 30,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 34
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.38.0",
        "Node name for S&R": "SaveImage",
        "ue_properties": {
          "widget_ue_connectable": {},
          "version": "8.0.1",
          "input_ue_unconnectable": {}
        }
      },
      "widgets_values": [
        "BSS_PiD/BSS_PiD"
      ],
      "widgets_values_named": {
        "filename_prefix": "BSS_PiD/BSS_PiD"
      }
    },
    {
      "id": 35,
      "type": "Power Lora Loader (rgthree)",
      "pos": [
        480,
        250
      ],
      "size": [
        380,
        120
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "dir": 3,
          "name": "model",
          "type": "MODEL",
          "link": 39
        },
        {
          "dir": 3,
          "name": "clip",
          "type": "CLIP",
          "link": 41
        }
      ],
      "outputs": [
        {
          "dir": 4,
          "name": "MODEL",
          "shape": 3,
          "type": "MODEL",
          "links": [
            40
          ]
        },
        {
          "dir": 4,
          "name": "CLIP",
          "shape": 3,
          "type": "CLIP",
          "links": [
            42
          ]
        }
      ],
      "properties": {
        "cnr_id": "rgthree-comfy",
        "ver": "1.0.2610300006",
        "Show Strengths": "Single Strength",
        "Match": "",
        "ue_properties": {
          "version": "8.0.1",
          "widget_ue_connectable": {},
          "input_ue_unconnectable": {},
          "title_regex": null,
          "input_regex": null,
          "group_regex": null,
          "title_regex_invert": false,
          "input_regex_invert": false,
          "group_regex_invert": false,
          "apply_to_unrepeated": 0,
          "send_to_any": 0,
          "string_to_combo": 0,
          "repeated_type_rule": 0,
          "group_restricted": 0,
          "color_restricted": 0
        }
      },
      "widgets_values": [
        {},
        {
          "type": "PowerLoraLoaderHeaderWidget"
        },
        {},
        ""
      ],
      "widgets_values_named": {
        "divider": {},
        "PowerLoraLoaderHeaderWidget": {
          "type": "PowerLoraLoaderHeaderWidget"
        },
        "divider#2": {},
        "➕ Add Lora": ""
      }
    }
  ],
  "links": [
    [
      4,
      3,
      0,
      10,
      1,
      "STRING"
    ],
    [
      5,
      10,
      0,
      11,
      0,
      "CONDITIONING"
    ],
    [
      7,
      10,
      0,
      13,
      1,
      "CONDITIONING"
    ],
    [
      8,
      11,
      0,
      13,
      2,
      "CONDITIONING"
    ],
    [
      9,
      12,
      0,
      13,
      3,
      "LATENT"
    ],
    [
      10,
      13,
      0,
      14,
      0,
      "LATENT"
    ],
    [
      11,
      9,
      0,
      14,
      1,
      "VAE"
    ],
    [
      12,
      14,
      0,
      15,
      0,
      "IMAGE"
    ],
    [
      13,
      17,
      0,
      18,
      0,
      "CLIP"
    ],
    [
      14,
      3,
      0,
      18,
      1,
      "STRING"
    ],
    [
      15,
      18,
      0,
      19,
      0,
      "CONDITIONING"
    ],
    [
      16,
      18,
      0,
      20,
      0,
      "CONDITIONING"
    ],
    [
      17,
      13,
      0,
      20,
      1,
      "LATENT"
    ],
    [
      18,
      16,
      0,
      22,
      0,
      "MODEL"
    ],
    [
      19,
      16,
      0,
      24,
      0,
      "MODEL"
    ],
    [
      20,
      20,
      0,
      24,
      1,
      "CONDITIONING"
    ],
    [
      21,
      19,
      0,
      24,
      2,
      "CONDITIONING"
    ],
    [
      22,
      21,
      0,
      24,
      3,
      "SAMPLER"
    ],
    [
      23,
      22,
      0,
      24,
      4,
      "SIGMAS"
    ],
    [
      24,
      23,
      0,
      24,
      5,
      "LATENT"
    ],
    [
      25,
      24,
      0,
      26,
      0,
      "LATENT"
    ],
    [
      26,
      25,
      0,
      26,
      1,
      "VAE"
    ],
    [
      27,
      27,
      0,
      12,
      0,
      "INT"
    ],
    [
      28,
      28,
      0,
      12,
      1,
      "INT"
    ],
    [
      32,
      30,
      1,
      23,
      0,
      "INT"
    ],
    [
      33,
      31,
      1,
      23,
      1,
      "INT"
    ],
    [
      34,
      26,
      0,
      32,
      0,
      "IMAGE"
    ],
    [
      29,
      29,
      0,
      13,
      4,
      "INT"
    ],
    [
      39,
      4,
      0,
      35,
      0,
      "MODEL"
    ],
    [
      40,
      35,
      0,
      13,
      0,
      "MODEL"
    ],
    [
      41,
      8,
      0,
      35,
      1,
      "CLIP"
    ],
    [
      42,
      35,
      1,
      10,
      0,
      "CLIP"
    ],
    [
      30,
      27,
      0,
      30,
      0,
      "INT"
    ],
    [
      31,
      28,
      0,
      31,
      0,
      "INT"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "0 · Size and steps",
      "bounding": [
        0,
        0,
        420,
        974
      ],
      "color": "#6a4c93",
      "flags": {}
    },
    {
      "id": 2,
      "title": "1 · Prompt",
      "bounding": [
        0,
        1010,
        420,
        610
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 3,
      "title": "2 · Load Models",
      "bounding": [
        460,
        0,
        420,
        1624
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 4,
      "title": "3 · Krea 2 render",
      "bounding": [
        920,
        0,
        420,
        1624
      ],
      "color": "#3f789e",
      "flags": {}
    },
    {
      "id": 5,
      "title": "4 · PiD decode (4×)",
      "bounding": [
        1380,
        0,
        840,
        1624
      ],
      "color": "#8a5a2b",
      "flags": {}
    },
    {
      "id": 6,
      "title": "5 · Output (4× the Krea 2 size)",
      "bounding": [
        2260,
        0,
        900,
        1624
      ],
      "color": "#2b6a3a",
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.35049389948139237,
      "offset": [
        842.3528230761958,
        707.8509171212368
      ]
    },
    "ue_links": [],
    "links_added_by_ue": [],
    "frontendVersion": "1.58.5",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4,
  "seed_widgets": {
    "13": 0,
    "24": 1
  }
}