{
  "id": "dbedd4b2-c963-475d-8057-72a15e532fd5",
  "revision": 0,
  "last_node_id": 59,
  "last_link_id": 455,
  "nodes": [
    {
      "id": 7,
      "type": "CLIPTextEncode",
      "pos": [
        170,
        -250
      ],
      "size": [
        420,
        140
      ],
      "flags": {},
      "order": 12,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 421
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            451
          ]
        }
      ],
      "title": "Negative",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        "low quality, blurry, distorted"
      ],
      "color": "#223",
      "bgcolor": "#335"
    },
    {
      "id": 9,
      "type": "SaveImage",
      "pos": [
        630,
        -500
      ],
      "size": [
        830,
        620
      ],
      "flags": {},
      "order": 19,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 9
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "id": 49,
      "type": "BasicScheduler",
      "pos": [
        900,
        -670
      ],
      "size": [
        315,
        106
      ],
      "flags": {},
      "order": 15,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 429
        }
      ],
      "outputs": [
        {
          "name": "SIGMAS",
          "type": "SIGMAS",
          "links": [
            439
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "BasicScheduler",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        "simple",
        20,
        1
      ]
    },
    {
      "id": 46,
      "type": "KSamplerSelect",
      "pos": [
        900,
        -770
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "SAMPLER",
          "type": "SAMPLER",
          "links": [
            438
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "KSamplerSelect",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        "euler"
      ]
    },
    {
      "id": 53,
      "type": "DualCFGGuider",
      "pos": [
        900,
        -980
      ],
      "size": [
        315,
        166
      ],
      "flags": {},
      "order": 16,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 432
        },
        {
          "name": "cond1",
          "type": "CONDITIONING",
          "link": 433
        },
        {
          "name": "cond2",
          "type": "CONDITIONING",
          "link": 434
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 452
        },
        {
          "name": "cfg_conds",
          "type": "FLOAT",
          "widget": {
            "name": "cfg_conds"
          },
          "link": 454
        },
        {
          "name": "cfg_cond2_negative",
          "type": "FLOAT",
          "widget": {
            "name": "cfg_cond2_negative"
          },
          "link": 455
        }
      ],
      "outputs": [
        {
          "name": "GUIDER",
          "type": "GUIDER",
          "slot_index": 0,
          "links": [
            437
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "DualCFGGuider",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        3,
        1.5,
        "regular"
      ]
    },
    {
      "id": 47,
      "type": "RandomNoise",
      "pos": [
        900,
        -1110
      ],
      "size": [
        315,
        82
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "NOISE",
          "type": "NOISE",
          "links": [
            436
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "RandomNoise",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        567500569211369,
        "randomize"
      ]
    },
    {
      "id": 8,
      "type": "VAEDecode",
      "pos": [
        1270,
        -950
      ],
      "size": [
        210,
        46
      ],
      "flags": {},
      "order": 18,
      "mode": 0,
      "inputs": [
        {
          "name": "samples",
          "type": "LATENT",
          "link": 446
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 422
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            9
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAEDecode",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": []
    },
    {
      "id": 54,
      "type": "SamplerCustomAdvanced",
      "pos": [
        1260,
        -1100
      ],
      "size": [
        230,
        110
      ],
      "flags": {},
      "order": 17,
      "mode": 0,
      "inputs": [
        {
          "name": "noise",
          "type": "NOISE",
          "link": 436
        },
        {
          "name": "guider",
          "type": "GUIDER",
          "link": 437
        },
        {
          "name": "sampler",
          "type": "SAMPLER",
          "link": 438
        },
        {
          "name": "sigmas",
          "type": "SIGMAS",
          "link": 439
        },
        {
          "name": "latent_image",
          "type": "LATENT",
          "link": 440
        }
      ],
      "outputs": [
        {
          "name": "output",
          "type": "LATENT",
          "slot_index": 0,
          "links": [
            446
          ]
        },
        {
          "name": "denoised_output",
          "type": "LATENT",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "SamplerCustomAdvanced",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": []
    },
    {
      "id": 52,
      "type": "InstructPixToPixConditioning",
      "pos": [
        650,
        -960
      ],
      "size": [
        217.319921875,
        86
      ],
      "flags": {},
      "order": 14,
      "mode": 0,
      "inputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "link": 453
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "link": 451
        },
        {
          "name": "vae",
          "type": "VAE",
          "link": 444
        },
        {
          "name": "pixels",
          "type": "IMAGE",
          "link": 445
        }
      ],
      "outputs": [
        {
          "name": "positive",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            433
          ]
        },
        {
          "name": "negative",
          "type": "CONDITIONING",
          "slot_index": 1,
          "links": [
            434
          ]
        },
        {
          "name": "latent",
          "type": "LATENT",
          "slot_index": 2,
          "links": [
            440
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "InstructPixToPixConditioning",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": []
    },
    {
      "id": 56,
      "type": "PrimitiveNode",
      "pos": [
        657.3199462890625,
        -780
      ],
      "size": [
        210,
        82
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "widget": {
            "name": "cfg_conds"
          },
          "links": [
            454
          ]
        }
      ],
      "title": "CFG",
      "properties": {
        "Run widget replace on values": false
      },
      "widgets_values": [
        3,
        "fixed"
      ]
    },
    {
      "id": 57,
      "type": "PrimitiveNode",
      "pos": [
        657.3199462890625,
        -650
      ],
      "size": [
        210,
        82
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "FLOAT",
          "type": "FLOAT",
          "widget": {
            "name": "cfg_cond2_negative"
          },
          "links": [
            455
          ]
        }
      ],
      "title": "Image CFG",
      "properties": {
        "Run widget replace on values": false
      },
      "widgets_values": [
        1.5,
        "fixed"
      ]
    },
    {
      "id": 48,
      "type": "Reroute",
      "pos": [
        790,
        -860
      ],
      "size": [
        75,
        26
      ],
      "flags": {},
      "order": 13,
      "mode": 0,
      "inputs": [
        {
          "name": "",
          "type": "*",
          "link": 448
        }
      ],
      "outputs": [
        {
          "name": "",
          "type": "MODEL",
          "links": [
            429,
            432
          ]
        }
      ],
      "properties": {
        "showOutputText": false,
        "horizontal": false
      }
    },
    {
      "id": 13,
      "type": "LoadImage",
      "pos": [
        -370,
        -460
      ],
      "size": [
        500.7899169921875,
        405.3478698730469
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "slot_index": 0,
          "links": [
            427
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        "hidream_e1_1_input_image.jpg",
        "image"
      ]
    },
    {
      "id": 6,
      "type": "CLIPTextEncode",
      "pos": [
        170,
        -460
      ],
      "size": [
        422.84503173828125,
        164.31304931640625
      ],
      "flags": {},
      "order": 11,
      "mode": 0,
      "inputs": [
        {
          "name": "clip",
          "type": "CLIP",
          "link": 420
        }
      ],
      "outputs": [
        {
          "name": "CONDITIONING",
          "type": "CONDITIONING",
          "slot_index": 0,
          "links": [
            452,
            453
          ]
        }
      ],
      "title": "Positive",
      "properties": {
        "Node name for S&R": "CLIPTextEncode",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        "Change the image to let the girl’s hair fall loose around her shoulders, natural and flowing. Don’t change other parts"
      ],
      "color": "#232",
      "bgcolor": "#353"
    },
    {
      "id": 55,
      "type": "CFGNorm",
      "pos": [
        161.34642028808594,
        -920.825439453125
      ],
      "size": [
        260,
        60
      ],
      "flags": {},
      "order": 10,
      "mode": 0,
      "inputs": [
        {
          "name": "model",
          "type": "MODEL",
          "link": 449
        }
      ],
      "outputs": [
        {
          "name": "patched_model",
          "type": "MODEL",
          "links": [
            448
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "CFGNorm",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        1
      ]
    },
    {
      "id": 45,
      "type": "ImageScaleToTotalPixels",
      "pos": [
        157.24700927734375,
        -629.96142578125
      ],
      "size": [
        240,
        82
      ],
      "flags": {},
      "order": 9,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 427
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            445
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "ImageScaleToTotalPixels",
        "cnr_id": "comfy-core",
        "ver": "0.3.44"
      },
      "widgets_values": [
        "area",
        1
      ]
    },
    {
      "id": 41,
      "type": "UNETLoader",
      "pos": [
        -370,
        -920
      ],
      "size": [
        315,
        82
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "MODEL",
          "type": "MODEL",
          "links": [
            449
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "UNETLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "models": [
          {
            "name": "hidream_e1_1_bf16.safetensors",
            "url": "https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/diffusion_models/hidream_e1_1_bf16.safetensors",
            "directory": "diffusion_models"
          }
        ]
      },
      "widgets_values": [
        "hidream_e1_1_bf16.safetensors",
        "fp8_e4m3fn_fast"
      ]
    },
    {
      "id": 42,
      "type": "QuadrupleCLIPLoader",
      "pos": [
        -370,
        -800
      ],
      "size": [
        315,
        130
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "CLIP",
          "type": "CLIP",
          "links": [
            420,
            421
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "QuadrupleCLIPLoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "models": [
          {
            "name": "clip_g_hidream.safetensors",
            "url": "https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/text_encoders/clip_g_hidream.safetensors",
            "directory": "text_encoders"
          },
          {
            "name": "clip_l_hidream.safetensors",
            "url": "https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/text_encoders/clip_l_hidream.safetensors",
            "directory": "text_encoders"
          },
          {
            "name": "t5xxl_fp8_e4m3fn_scaled.safetensors",
            "url": "https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/text_encoders/t5xxl_fp8_e4m3fn_scaled.safetensors",
            "directory": "text_encoders"
          },
          {
            "name": "llama_3.1_8b_instruct_fp8_scaled.safetensors",
            "url": "https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/text_encoders/llama_3.1_8b_instruct_fp8_scaled.safetensors",
            "directory": "text_encoders"
          }
        ]
      },
      "widgets_values": [
        "clip_g_hidream.safetensors",
        "clip_l_hidream.safetensors",
        "t5xxl_fp8_e4m3fn_scaled.safetensors",
        "llama_3.1_8b_instruct_fp8_scaled.safetensors"
      ]
    },
    {
      "id": 43,
      "type": "VAELoader",
      "pos": [
        -370,
        -620
      ],
      "size": [
        315,
        58
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VAE",
          "type": "VAE",
          "links": [
            422,
            444
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "VAELoader",
        "cnr_id": "comfy-core",
        "ver": "0.3.44",
        "models": [
          {
            "name": "ae.safetensors",
            "url": "https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/vae/ae.safetensors",
            "directory": "vae"
          }
        ]
      },
      "widgets_values": [
        "ae.safetensors"
      ]
    },
    {
      "id": 58,
      "type": "MarkdownNote",
      "pos": [
        -840,
        -960
      ],
      "size": [
        450,
        410
      ],
      "flags": {},
      "order": 8,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "[Tutorial](https://docs.comfy.org/tutorials/image/hidream/hidream-e1)\n\n**Diffusion Model**\n- [hidream_e1_1_bf16.safetensors](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/resolve/main/split_files/diffusion_models/hidream_e1_1_bf16.safetensors)\n\n**Text Encoder**：\n\n- [clip_l_hidream.safetensors](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/text_encoders/clip_l_hidream.safetensors)\n- [clip_g_hidream.safetensors](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/text_encoders/clip_g_hidream.safetensors)\n- [t5xxl_fp8_e4m3fn_scaled.safetensors](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/text_encoders/t5xxl_fp8_e4m3fn_scaled.safetensors) \n- [llama_3.1_8b_instruct_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/text_encoders/llama_3.1_8b_instruct_fp8_scaled.safetensors)\n\n**VAE**\n-  [ae.safetensors](https://huggingface.co/Comfy-Org/HiDream-I1_ComfyUI/blob/main/split_files/vae/ae.safetensors)\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 text_encoders/\n│   │   ├─── clip_l_hidream.safetensors\n│   │   ├─── clip_g_hidream.safetensors\n│   │   ├─── t5xxl_fp8_e4m3fn_scaled.safetensors\n│   │   └─── llama_3.1_8b_instruct_fp8_scaled.safetensors\n│   └── 📂 vae/\n│   │   └── ae.safetensors\n│   └── 📂 diffusion_models/\n│       └── hidream_e1_1_bf16.safetensors   \n```\n"
      ],
      "color": "#222",
      "bgcolor": "#653"
    }
  ],
  "links": [
    [
      9,
      8,
      0,
      9,
      0,
      "IMAGE"
    ],
    [
      420,
      42,
      0,
      6,
      0,
      "CLIP"
    ],
    [
      421,
      42,
      0,
      7,
      0,
      "CLIP"
    ],
    [
      422,
      43,
      0,
      8,
      1,
      "VAE"
    ],
    [
      427,
      13,
      0,
      45,
      0,
      "IMAGE"
    ],
    [
      429,
      48,
      0,
      49,
      0,
      "MODEL"
    ],
    [
      432,
      48,
      0,
      53,
      0,
      "MODEL"
    ],
    [
      433,
      52,
      0,
      53,
      1,
      "CONDITIONING"
    ],
    [
      434,
      52,
      1,
      53,
      2,
      "CONDITIONING"
    ],
    [
      436,
      47,
      0,
      54,
      0,
      "NOISE"
    ],
    [
      437,
      53,
      0,
      54,
      1,
      "GUIDER"
    ],
    [
      438,
      46,
      0,
      54,
      2,
      "SAMPLER"
    ],
    [
      439,
      49,
      0,
      54,
      3,
      "SIGMAS"
    ],
    [
      440,
      52,
      2,
      54,
      4,
      "LATENT"
    ],
    [
      444,
      43,
      0,
      52,
      2,
      "VAE"
    ],
    [
      445,
      45,
      0,
      52,
      3,
      "IMAGE"
    ],
    [
      446,
      54,
      0,
      8,
      0,
      "LATENT"
    ],
    [
      448,
      55,
      0,
      48,
      0,
      "*"
    ],
    [
      449,
      41,
      0,
      55,
      0,
      "MODEL"
    ],
    [
      451,
      7,
      0,
      52,
      1,
      "CONDITIONING"
    ],
    [
      452,
      6,
      0,
      53,
      3,
      "CONDITIONING"
    ],
    [
      453,
      6,
      0,
      52,
      0,
      "CONDITIONING"
    ],
    [
      454,
      56,
      0,
      53,
      4,
      "FLOAT"
    ],
    [
      455,
      57,
      0,
      53,
      5,
      "FLOAT"
    ]
  ],
  "groups": [
    {
      "id": 1,
      "title": "Step1 - Load models",
      "bounding": [
        -380,
        -990,
        335,
        441.6000061035156
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 2,
      "title": "Step2 - Upload image",
      "bounding": [
        -380,
        -530,
        520.7899169921875,
        488.9478759765625
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 3,
      "title": "Step3 - Prompt",
      "bounding": [
        160,
        -530,
        440,
        440
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    },
    {
      "id": 4,
      "title": "IP2PSampler",
      "bounding": [
        630,
        -1180,
        880,
        640
      ],
      "color": "#3f789e",
      "font_size": 24,
      "flags": {}
    }
  ],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.5148463834529032,
      "offset": [
        1324.981666105929,
        1242.1992997217671
      ]
    },
    "frontendVersion": "1.29.1",
    "groupNodes": {}
  },
  "version": 0.4
}
