{
  "config": {},
  "definitions": {
    "subgraphs": [
      {
        "config": {},
        "extra": {
          "workflowRendererVersion": "LG"
        },
        "groups": [
          {
            "bounding": [
              -530,
              20,
              320,
              410
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 1,
            "title": "Step 1 - Load models"
          },
          {
            "bounding": [
              -190,
              20,
              450,
              410
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 2,
            "title": "Step 3 - Prompt"
          },
          {
            "bounding": [
              280,
              20,
              561.83544921875,
              630.7272338867188
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 5,
            "title": "Custom Sampling"
          },
          {
            "bounding": [
              -530,
              450,
              320.3025817871094,
              192.70652770996094
            ],
            "color": "#3f789e",
            "flags": {},
            "font_size": 24,
            "id": 8,
            "title": "Step 2 - image size"
          }
        ],
        "id": "4b17d220-4312-4981-9eae-9a76bf3b6ec9",
        "inputNode": {
          "bounding": [
            -710,
            315.3636169433594,
            120,
            100
          ],
          "id": -10
        },
        "inputs": [
          {
            "id": "3385ea55-7abe-4db0-a3b4-78edeb8007ae",
            "linkIds": [
              79
            ],
            "name": "text",
            "pos": [
              -610,
              335.3636169433594
            ],
            "type": "STRING"
          },
          {
            "id": "7340e51e-95ae-4b91-b97e-1c4d6ea61c17",
            "linkIds": [
              80
            ],
            "name": "width",
            "pos": [
              -610,
              355.3636169433594
            ],
            "type": "INT"
          },
          {
            "id": "e28b5fd6-362e-46b7-b384-582f6d8b4024",
            "linkIds": [
              81
            ],
            "name": "height",
            "pos": [
              -610,
              375.3636169433594
            ],
            "type": "INT"
          }
        ],
        "links": [
          {
            "id": 33,
            "origin_id": 21,
            "origin_slot": 0,
            "target_id": 28,
            "target_slot": 0,
            "type": "NOISE"
          },
          {
            "id": 34,
            "origin_id": 27,
            "origin_slot": 0,
            "target_id": 28,
            "target_slot": 1,
            "type": "GUIDER"
          },
          {
            "id": 35,
            "origin_id": 20,
            "origin_slot": 0,
            "target_id": 28,
            "target_slot": 2,
            "type": "SAMPLER"
          },
          {
            "id": 36,
            "origin_id": 23,
            "origin_slot": 0,
            "target_id": 28,
            "target_slot": 3,
            "type": "SIGMAS"
          },
          {
            "id": 49,
            "origin_id": 11,
            "origin_slot": 0,
            "target_id": 28,
            "target_slot": 4,
            "type": "LATENT"
          },
          {
            "id": 53,
            "origin_id": 12,
            "origin_slot": 0,
            "target_id": 27,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 77,
            "origin_id": 6,
            "origin_slot": 0,
            "target_id": 27,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 76,
            "origin_id": 7,
            "origin_slot": 0,
            "target_id": 27,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 45,
            "origin_id": 7,
            "origin_slot": 0,
            "target_id": 27,
            "target_slot": 3,
            "type": "CONDITIONING"
          },
          {
            "id": 52,
            "origin_id": 12,
            "origin_slot": 0,
            "target_id": 23,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 46,
            "origin_id": 28,
            "origin_slot": 0,
            "target_id": 8,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 14,
            "origin_id": 13,
            "origin_slot": 0,
            "target_id": 8,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 11,
            "origin_id": 10,
            "origin_slot": 0,
            "target_id": 6,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 10,
            "origin_id": 10,
            "origin_slot": 0,
            "target_id": 7,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 9,
            "origin_id": 8,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 79,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 6,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 80,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 11,
            "target_slot": 0,
            "type": "INT"
          },
          {
            "id": 81,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 11,
            "target_slot": 1,
            "type": "INT"
          }
        ],
        "name": "Omnigen2 Text to Image",
        "nodes": [
          {
            "flags": {},
            "id": 28,
            "inputs": [
              {
                "link": 33,
                "localized_name": "noise",
                "name": "noise",
                "type": "NOISE"
              },
              {
                "link": 34,
                "localized_name": "guider",
                "name": "guider",
                "type": "GUIDER"
              },
              {
                "link": 35,
                "localized_name": "sampler",
                "name": "sampler",
                "type": "SAMPLER"
              },
              {
                "link": 36,
                "localized_name": "sigmas",
                "name": "sigmas",
                "type": "SIGMAS"
              },
              {
                "link": 49,
                "localized_name": "latent_image",
                "name": "latent_image",
                "type": "LATENT"
              }
            ],
            "mode": 0,
            "order": 11,
            "outputs": [
              {
                "links": [
                  46
                ],
                "localized_name": "output",
                "name": "output",
                "slot_index": 0,
                "type": "LATENT"
              },
              {
                "links": null,
                "localized_name": "denoised_output",
                "name": "denoised_output",
                "type": "LATENT"
              }
            ],
            "pos": [
              630,
              100
            ],
            "properties": {
              "Node name for S&R": "SamplerCustomAdvanced",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              212.3638671875,
              106
            ],
            "type": "SamplerCustomAdvanced",
            "widgets_values": []
          },
          {
            "flags": {},
            "id": 20,
            "inputs": [],
            "mode": 0,
            "order": 0,
            "outputs": [
              {
                "links": [
                  35
                ],
                "localized_name": "SAMPLER",
                "name": "SAMPLER",
                "type": "SAMPLER"
              }
            ],
            "pos": [
              290,
              430
            ],
            "properties": {
              "Node name for S&R": "KSamplerSelect",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              315,
              58
            ],
            "type": "KSamplerSelect",
            "widgets_values": [
              "euler"
            ]
          },
          {
            "flags": {},
            "id": 27,
            "inputs": [
              {
                "link": 53,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              },
              {
                "link": 77,
                "localized_name": "cond1",
                "name": "cond1",
                "type": "CONDITIONING"
              },
              {
                "link": 76,
                "localized_name": "cond2",
                "name": "cond2",
                "type": "CONDITIONING"
              },
              {
                "link": 45,
                "localized_name": "negative",
                "name": "negative",
                "type": "CONDITIONING"
              }
            ],
            "mode": 0,
            "order": 10,
            "outputs": [
              {
                "links": [
                  34
                ],
                "localized_name": "GUIDER",
                "name": "GUIDER",
                "slot_index": 0,
                "type": "GUIDER"
              }
            ],
            "pos": [
              290,
              240
            ],
            "properties": {
              "Node name for S&R": "DualCFGGuider",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              310,
              166
            ],
            "type": "DualCFGGuider",
            "widgets_values": [
              5,
              2,
              "regular"
            ]
          },
          {
            "flags": {},
            "id": 23,
            "inputs": [
              {
                "link": 52,
                "localized_name": "model",
                "name": "model",
                "type": "MODEL"
              }
            ],
            "mode": 0,
            "order": 5,
            "outputs": [
              {
                "links": [
                  36
                ],
                "localized_name": "SIGMAS",
                "name": "SIGMAS",
                "type": "SIGMAS"
              }
            ],
            "pos": [
              290,
              530
            ],
            "properties": {
              "Node name for S&R": "BasicScheduler",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              210,
              106
            ],
            "type": "BasicScheduler",
            "widgets_values": [
              "simple",
              20,
              1
            ]
          },
          {
            "flags": {},
            "id": 13,
            "inputs": [],
            "mode": 0,
            "order": 1,
            "outputs": [
              {
                "links": [
                  14
                ],
                "localized_name": "VAE",
                "name": "VAE",
                "type": "VAE"
              }
            ],
            "pos": [
              -520,
              360
            ],
            "properties": {
              "Node name for S&R": "VAELoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "vae",
                  "name": "ae.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors"
                }
              ],
              "ver": "0.3.42"
            },
            "size": [
              290,
              60
            ],
            "type": "VAELoader",
            "widgets_values": [
              "ae.safetensors"
            ]
          },
          {
            "flags": {},
            "id": 10,
            "inputs": [],
            "mode": 0,
            "order": 2,
            "outputs": [
              {
                "links": [
                  10,
                  11
                ],
                "localized_name": "CLIP",
                "name": "CLIP",
                "type": "CLIP"
              }
            ],
            "pos": [
              -520,
              210
            ],
            "properties": {
              "Node name for S&R": "CLIPLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "text_encoders",
                  "name": "qwen_2.5_vl_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Omnigen2_ComfyUI_repackaged/resolve/main/split_files/text_encoders/qwen_2.5_vl_fp16.safetensors"
                }
              ],
              "ver": "0.3.42"
            },
            "size": [
              290,
              106
            ],
            "type": "CLIPLoader",
            "widgets_values": [
              "qwen_2.5_vl_fp16.safetensors",
              "omnigen2",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 12,
            "inputs": [],
            "mode": 0,
            "order": 3,
            "outputs": [
              {
                "links": [
                  52,
                  53
                ],
                "localized_name": "MODEL",
                "name": "MODEL",
                "type": "MODEL"
              }
            ],
            "pos": [
              -520,
              90
            ],
            "properties": {
              "Node name for S&R": "UNETLoader",
              "cnr_id": "comfy-core",
              "models": [
                {
                  "directory": "diffusion_models",
                  "name": "omnigen2_fp16.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Omnigen2_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/omnigen2_fp16.safetensors"
                }
              ],
              "ver": "0.3.42"
            },
            "size": [
              290,
              82
            ],
            "type": "UNETLoader",
            "widgets_values": [
              "omnigen2_fp16.safetensors",
              "default"
            ]
          },
          {
            "flags": {},
            "id": 8,
            "inputs": [
              {
                "link": 46,
                "localized_name": "samples",
                "name": "samples",
                "type": "LATENT"
              },
              {
                "link": 14,
                "localized_name": "vae",
                "name": "vae",
                "type": "VAE"
              }
            ],
            "mode": 0,
            "order": 7,
            "outputs": [
              {
                "links": [
                  9
                ],
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "slot_index": 0,
                "type": "IMAGE"
              }
            ],
            "pos": [
              610,
              580
            ],
            "properties": {
              "Node name for S&R": "VAEDecode",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              210,
              46
            ],
            "type": "VAEDecode",
            "widgets_values": []
          },
          {
            "bgcolor": "#335",
            "color": "#223",
            "flags": {},
            "id": 7,
            "inputs": [
              {
                "link": 10,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              }
            ],
            "mode": 0,
            "order": 4,
            "outputs": [
              {
                "links": [
                  45,
                  76
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -177.5792694091797,
              278.33154296875
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              418.45758056640625,
              132.5428924560547
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "blurry, low quality, distorted, ugly, bad anatomy, deformed, poorly drawn"
            ]
          },
          {
            "bgcolor": "#353",
            "color": "#232",
            "flags": {},
            "id": 6,
            "inputs": [
              {
                "link": 11,
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP"
              },
              {
                "link": 79,
                "localized_name": "text",
                "name": "text",
                "type": "STRING",
                "widget": {
                  "name": "text"
                }
              }
            ],
            "mode": 0,
            "order": 6,
            "outputs": [
              {
                "links": [
                  77
                ],
                "localized_name": "CONDITIONING",
                "name": "CONDITIONING",
                "slot_index": 0,
                "type": "CONDITIONING"
              }
            ],
            "pos": [
              -180.14205932617188,
              91.97244262695312
            ],
            "properties": {
              "Node name for S&R": "CLIPTextEncode",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              426.5657043457031,
              138.57876586914062
            ],
            "type": "CLIPTextEncode",
            "widgets_values": [
              "A cat with a crown lounging on a velvet throne, royal atmosphere, luxurious fabric texture, regal pose, detailed fur, ornate crown, dramatic lighting"
            ]
          },
          {
            "flags": {},
            "id": 11,
            "inputs": [
              {
                "link": 80,
                "localized_name": "width",
                "name": "width",
                "type": "INT",
                "widget": {
                  "name": "width"
                }
              },
              {
                "link": 81,
                "localized_name": "height",
                "name": "height",
                "type": "INT",
                "widget": {
                  "name": "height"
                }
              }
            ],
            "mode": 0,
            "order": 8,
            "outputs": [
              {
                "links": [
                  49
                ],
                "localized_name": "LATENT",
                "name": "LATENT",
                "type": "LATENT"
              }
            ],
            "pos": [
              -513.6055297851562,
              523.306640625
            ],
            "properties": {
              "Node name for S&R": "EmptySD3LatentImage",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              270,
              106
            ],
            "type": "EmptySD3LatentImage",
            "widgets_values": [
              1024,
              1024,
              1
            ]
          },
          {
            "flags": {},
            "id": 21,
            "inputs": [],
            "mode": 0,
            "order": 9,
            "outputs": [
              {
                "links": [
                  33
                ],
                "localized_name": "NOISE",
                "name": "NOISE",
                "type": "NOISE"
              }
            ],
            "pos": [
              290,
              110
            ],
            "properties": {
              "Node name for S&R": "RandomNoise",
              "cnr_id": "comfy-core",
              "ver": "0.3.42"
            },
            "size": [
              310,
              82
            ],
            "type": "RandomNoise",
            "widgets_values": [
              822957660815591,
              "randomize"
            ]
          }
        ],
        "outputNode": {
          "bounding": [
            902.3638671875001,
            305.3636169433594,
            120,
            60
          ],
          "id": -20
        },
        "outputs": [
          {
            "id": "68a6110f-4613-4041-8d48-e614b4c6e7fe",
            "linkIds": [
              9
            ],
            "localized_name": "IMAGE",
            "name": "IMAGE",
            "pos": [
              922.3638671875001,
              325.3636169433594
            ],
            "type": "IMAGE"
          }
        ],
        "revision": 0,
        "state": {
          "lastGroupId": 8,
          "lastLinkId": 82,
          "lastNodeId": 41,
          "lastRerouteId": 0
        },
        "version": 1,
        "widgets": []
      }
    ]
  },
  "extra": {
    "ds": {
      "offset": [
        1480.2379153063605,
        183.55472896581261
      ],
      "scale": 0.8864955507884028
    },
    "frontendVersion": "1.38.6",
    "groupNodes": {},
    "workflowRendererVersion": "LG"
  },
  "groups": [],
  "id": "38d4a359-349a-444f-acc1-acba3173c650",
  "last_link_id": 79,
  "last_node_id": 42,
  "links": [
    [
      79,
      42,
      0,
      9,
      0,
      "IMAGE"
    ]
  ],
  "nodes": [
    {
      "bgcolor": "#000",
      "color": "#432",
      "flags": {},
      "id": 41,
      "inputs": [],
      "mode": 0,
      "order": 0,
      "outputs": [],
      "pos": [
        -1018.9999128729853,
        34.0000034549063
      ],
      "properties": {},
      "size": [
        490,
        680
      ],
      "title": "For Local User",
      "type": "MarkdownNote",
      "widgets_values": [
        "[Docs](https://docs.comfy.org/tutorials/image/omnigen/omnigen2)\n\nGuide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Report issue\n\nNote: please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud will be updated after the stable release; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/Comfy-Org/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n\n\n## Model links\n\n**text_encoders**\n\n- [qwen_2.5_vl_fp16.safetensors](https://huggingface.co/Comfy-Org/Omnigen2_ComfyUI_repackaged/resolve/main/split_files/text_encoders/qwen_2.5_vl_fp16.safetensors)\n\n**diffusion_models**\n\n- [omnigen2_fp16.safetensors](https://huggingface.co/Comfy-Org/Omnigen2_ComfyUI_repackaged/resolve/main/split_files/diffusion_models/omnigen2_fp16.safetensors)\n\n**vae**\n\n- [ae.safetensors](https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors)\n\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 text_encoders/\n│   │      └── qwen_2.5_vl_fp16.safetensors\n│   ├── 📂 diffusion_models/\n│   │      └── omnigen2_fp16.safetensors\n│   └── 📂 vae/\n│          └── ae.safetensors\n```\n"
      ]
    },
    {
      "flags": {},
      "id": 9,
      "inputs": [
        {
          "link": 79,
          "name": "images",
          "type": "IMAGE"
        }
      ],
      "mode": 0,
      "order": 2,
      "outputs": [],
      "pos": [
        -80,
        40
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.3.42"
      },
      "size": [
        510,
        470
      ],
      "type": "SaveImage",
      "widgets_values": [
        "ComfyUI"
      ]
    },
    {
      "flags": {},
      "id": 42,
      "inputs": [],
      "mode": 0,
      "order": 1,
      "outputs": [
        {
          "links": [
            79
          ],
          "name": "IMAGE",
          "type": "IMAGE"
        }
      ],
      "pos": [
        -498.66650117757524,
        35.33335119126695
      ],
      "properties": {
        "proxyWidgets": [
          [
            "-1",
            "text"
          ],
          [
            "-1",
            "width"
          ],
          [
            "-1",
            "height"
          ],
          [
            "21",
            "noise_seed"
          ],
          [
            "21",
            "control_after_generate"
          ]
        ]
      },
      "size": [
        390,
        470
      ],
      "type": "4b17d220-4312-4981-9eae-9a76bf3b6ec9",
      "widgets_values": [
        "A cat with a crown lounging on a velvet throne, royal atmosphere, luxurious fabric texture, regal pose, detailed fur, ornate crown, dramatic lighting",
        1024,
        1024
      ]
    }
  ],
  "revision": 0,
  "version": 0.4
}