{
  "id": "c968c8f4-5788-4d2a-aea6-c4849ebd7b5d",
  "revision": 0,
  "last_node_id": 179,
  "last_link_id": 207,
  "nodes": [
    {
      "id": 10,
      "type": "LoadImage",
      "pos": [
        -630,
        80
      ],
      "size": [
        430,
        530
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "IMAGE",
          "nameLocked": null,
          "removable": null,
          "type": "IMAGE",
          "pos": null,
          "slot_index": null,
          "links": [
            31,
            130
          ]
        },
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "MASK",
          "nameLocked": null,
          "removable": null,
          "type": "MASK",
          "pos": null,
          "slot_index": null,
          "links": null
        }
      ],
      "title": "Load Image (source)",
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "withered_hydrangeas_still_life_vintage_lit.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "withered_hydrangeas_still_life_vintage_lit.png",
        "upload": "image"
      },
      "color": "#322",
      "bgcolor": "#533"
    },
    {
      "id": 24,
      "type": "ImageCompare",
      "pos": [
        990,
        80
      ],
      "size": [
        830,
        530
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "image_a",
          "shape": 7,
          "type": "IMAGE",
          "link": 31
        },
        {
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE",
          "link": 191
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "ImageCompare"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    },
    {
      "id": 146,
      "type": "71614996-81e0-4af2-8540-a63693a3169f",
      "pos": [
        -150,
        80
      ],
      "size": [
        430,
        690
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "label": "auto_prompt",
          "name": "switch",
          "type": "BOOLEAN",
          "widget": {
            "name": "switch"
          },
          "link": null
        },
        {
          "label": "subject_note",
          "name": "prompt",
          "type": "STRING",
          "widget": {
            "name": "prompt"
          },
          "link": null
        },
        {
          "label": "mask_expand",
          "name": "expand",
          "type": "INT",
          "widget": {
            "name": "expand"
          },
          "link": null
        },
        {
          "label": "mask_tapered_corners",
          "name": "tapered_corners",
          "type": "BOOLEAN",
          "widget": {
            "name": "tapered_corners"
          },
          "link": null
        },
        {
          "label": "alpha_brightness",
          "name": "factor",
          "type": "FLOAT",
          "widget": {
            "name": "factor"
          },
          "link": null
        },
        {
          "label": "alpha_contrast",
          "name": "factor_1",
          "type": "FLOAT",
          "widget": {
            "name": "factor_1"
          },
          "link": null
        },
        {
          "label": "hard_mask",
          "name": "switch_1",
          "type": "BOOLEAN",
          "widget": {
            "name": "switch_1"
          },
          "link": null
        },
        {
          "label": "mask_threshold",
          "name": "value",
          "type": "FLOAT",
          "widget": {
            "name": "value"
          },
          "link": null
        },
        {
          "label": "source_image",
          "name": "image",
          "type": "IMAGE",
          "link": 130
        }
      ],
      "outputs": [
        {
          "label": "foreground_image",
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            191,
            194
          ]
        },
        {
          "label": "background_image",
          "name": "IMAGE_1",
          "type": "IMAGE",
          "links": [
            193
          ]
        },
        {
          "label": "mask",
          "name": "MASK",
          "type": "MASK",
          "links": [
            189
          ]
        }
      ],
      "properties": {
        "previewExposures": [
          {
            "name": "$$canvas-image-preview",
            "sourceNodeId": "5",
            "sourcePreviewName": "$$canvas-image-preview"
          }
        ]
      },
      "widgets_values": [
        false,
        "",
        42,
        4,
        1,
        "euler",
        "simple",
        0,
        true,
        1,
        1,
        false,
        0.8500000000000001,
        "rmbg3_int8_convrot.safetensors",
        "qwen3vl_4b_int8_convrot.safetensors",
        "flux2-vae.safetensors"
      ],
      "widgets_values_named": {
        "switch": false,
        "prompt": "",
        "seed": 42,
        "steps": 4,
        "cfg": 1,
        "sampler_name": "euler",
        "scheduler": "simple",
        "expand": 0,
        "tapered_corners": true,
        "factor": 1,
        "factor_1": 1,
        "switch_1": false,
        "value": 0.8500000000000001,
        "unet_name": "rmbg3_int8_convrot.safetensors",
        "clip_name": "qwen3vl_4b_int8_convrot.safetensors",
        "vae_name": "flux2-vae.safetensors"
      }
    },
    {
      "id": 151,
      "type": "MarkdownNote",
      "pos": [
        -1140,
        80
      ],
      "size": [
        460,
        640
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Note: RMBG 3.0",
      "properties": {},
      "widgets_values": [
        "## Remove Background: RMBG 3.0\n\nRMBG 3.0 renders a soft grayscale alpha matte instead of a hard mask, so hair, glass, veils and liquid keep real transparency.\n\n### Outputs\n\n- `foreground_image` — RGBA cutout at the source resolution\n- `background_image` — the source with the subject removed\n- `mask` — the raw matte\n\n### How to use\n\n- Drop a photo into `source_image`\n- Keep `auto_prompt` ON: a vision model writes the matting instruction from the image\n- Add `subject_note` (optional) to describe the material\n- Keep `cfg` at **1.0**; raise it only for see-through subjects (see below)\n- Subgraph guide: [docs.comfy.org › Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n### Writing `subject_note`\n\n- One short sentence about the material, not about the scene or lighting\n- Name what stays solid: paper, metal, skin, petals, fabric\n- Name what stays see-through: glass, liquid, veil, mesh, smoke\n- Example: `Clear glass bottle, paper label, metal cap`\n\n### Tuning\n\n- Glass or veil comes back solid white → describe it in `subject_note`, then raise `cfg` to **1.5–2.0**\n- Coloured glass often stays opaque → lower `alpha_brightness`, or paint that area by hand\n- Faint grey noise in the background → lower `alpha_brightness`, or enable `hard_mask`\n- `cfg` 1.0 is the official setting: RMBG 3.0 is distilled without classifier-free guidance, so a higher cfg trades source fidelity for transparency\n"
      ],
      "widgets_values_named": {
        "text": "## What this subgraph does\n\nOne subgraph packs the whole job: loads RMBG 3.0 + its text encoder + VAE, has a vision model write the matte\ninstruction from the image (or uses the built-in Bria sentence when `auto_prompt` is off), samples 4 steps, shapes the\nalpha, and returns **three outputs**:\n\n## About the model\n\nRMBG 3.0 is a distillation of Fibo 2.0 Edit Turbo: an 8B diffusion transformer that **renders a grayscale alpha matte**\ninstead of predicting a mask. White = opaque, grey = semi-transparent, black = background.\n\n- It works at about 1 MP internally and returns the matte at your source resolution.\n- It understands the scene, so hair, fur, thin straps and cast shadows are handled well; shadows and reflections on\n  the ground are dropped.\n- The matte is a rendered image, so faint noise can appear in the background — `alpha_brightness` (or a light\n  `mask_threshold`) cleans it up.\n\n\n## Writing the prompt (optional)\n\n- `auto_prompt` OFF → a vision model looks at your image and writes the matte instruction itself. This is a prompt rewriting rule we added and is not provided by the original RMBG 3.0 project. When it's OFF, the workflow use the original RMBG 3.0 edit instruction.\n- `subject_note` only works when `auto_prompt` is on: leave it empty and the model decides what is solid and what is see-through.\n\nWrite one plain sentence about **material and what is see-through**, for example:\n\n- `Clear glass bottle with a paper label and a metal cap.`\n- `Frosted serum bottle, the glass body is semi-transparent, the dropper inside is visible.`\n- `Bride with a tulle veil: the gown is solid, the veil is see-through.`\n\nIt helps to name the parts that must stay solid (paper, metal, skin, petals, fabric) and the parts that must keep\nalpha (glass, liquid, veil, mesh, smoke).\n\nTwo things that help when the subject is see-through:\n\n- Glass, veil or smoke should come back grey instead of white — describe it, if it not work try to raise `cfg` to **1.5–2.0**\n  (4 steps stay the same, RMBG 3.0 default cfg is 1.0).\n- Strongly coloured glass is still read as a solid object by this model, so it may come back white;\n  lower `alpha_brightness` or paint the region by hand if you need real transparency there.\n\nAvoid: describing the scene, style or lighting — the model only needs the material split.\n"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 152,
      "type": "MarkdownNote",
      "pos": [
        -1750,
        80
      ],
      "size": [
        580,
        700
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Note: Model links",
      "properties": {},
      "widgets_values": [
        "## Input Asset\n\n- [withered_hydrangeas_still_life_vintage_lit.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/withered_hydrangeas_still_life_vintage_lit.png)\n\n## Model Links\n\n- [Hugging Face:briaai/RMBG-3.0-Comfy](https://huggingface.co/briaai/RMBG-3.0-Comfy)\n\n**diffusion_models**\n\n- [rmbg3_int8_convrot.safetensors](https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/diffusion_models/rmbg3_int8_convrot.safetensors) (7.83 GB)\n\n**text_encoders**\n\n- [qwen3vl_4b_int8_convrot.safetensors](https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/text_encoders/qwen3vl_4b_int8_convrot.safetensors) (4.52 GB)\n\n**vae**\n\n- [flux2-vae.safetensors](https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/vae/flux2-vae.safetensors) (320.6 MB)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 diffusion_models/\n│   │   └── rmbg3_int8_convrot.safetensors\n│   ├── 📂 text_encoders/\n│   │   └── qwen3vl_4b_int8_convrot.safetensors\n│   └── 📂 vae/\n│       └── flux2-vae.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/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"
      ],
      "widgets_values_named": {
        "text": "## Input Asset\n\n- [offwhite_contoured_form.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/offwhite_contoured_form.png)\n\n## Model Links\n\n- [Hugging Face:briaai/RMBG-3.0-Comfy](https://huggingface.co/briaai/RMBG-3.0-Comfy)\n\n**diffusion_models**\n\n- [rmbg3_int8_convrot.safetensors](https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/diffusion_models/rmbg3_int8_convrot.safetensors) (7.83 GB)\n\n**text_encoders**\n\n- [qwen3vl_4b_int8_convrot.safetensors](https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/text_encoders/qwen3vl_4b_int8_convrot.safetensors) (4.52 GB)\n\n**vae**\n\n- [flux2-vae.safetensors](https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/vae/flux2-vae.safetensors) (320.6 MB)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│   ├── 📂 diffusion_models/\n│   │   └── rmbg3_int8_convrot.safetensors\n│   ├── 📂 text_encoders/\n│   │   └── qwen3vl_4b_int8_convrot.safetensors\n│   └── 📂 vae/\n│       └── flux2-vae.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/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"
      },
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 168,
      "type": "MaskPreview",
      "pos": [
        1010,
        690
      ],
      "size": [
        800,
        530
      ],
      "flags": {},
      "order": 7,
      "mode": 0,
      "inputs": [
        {
          "name": "mask",
          "type": "MASK",
          "link": 189
        }
      ],
      "outputs": [
        {
          "name": "mask",
          "type": "MASK",
          "links": []
        }
      ],
      "properties": {
        "Node name for S&R": "MaskPreview"
      }
    },
    {
      "id": 170,
      "type": "SaveImage",
      "pos": [
        330,
        690
      ],
      "size": [
        630,
        530
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "images",
          "nameLocked": null,
          "removable": null,
          "type": "IMAGE",
          "pos": null,
          "link": 193
        }
      ],
      "outputs": [
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "images",
          "nameLocked": null,
          "removable": null,
          "type": "IMAGE",
          "pos": null,
          "slot_index": null,
          "links": []
        }
      ],
      "title": "SaveImage",
      "properties": {},
      "widgets_values": [
        "rmbg3/background"
      ],
      "widgets_values_named": {
        "filename_prefix": "rmbg3/background"
      }
    },
    {
      "id": 171,
      "type": "SaveImage",
      "pos": [
        330,
        80
      ],
      "size": [
        630,
        530
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "images",
          "nameLocked": null,
          "removable": null,
          "type": "IMAGE",
          "pos": null,
          "link": 194
        }
      ],
      "outputs": [
        {
          "color_off": null,
          "color_on": null,
          "dir": null,
          "label": null,
          "locked": null,
          "name": "images",
          "nameLocked": null,
          "removable": null,
          "type": "IMAGE",
          "pos": null,
          "slot_index": null,
          "links": []
        }
      ],
      "title": "SaveImage",
      "properties": {},
      "widgets_values": [
        "rmbg3/foreground"
      ],
      "widgets_values_named": {
        "filename_prefix": "rmbg3/foreground"
      },
      "color": "#322",
      "bgcolor": "#533"
    }
  ],
  "links": [
    [
      31,
      10,
      0,
      24,
      0,
      "IMAGE"
    ],
    [
      189,
      146,
      2,
      168,
      0,
      "MASK"
    ],
    [
      191,
      146,
      0,
      24,
      1,
      "IMAGE"
    ],
    [
      193,
      146,
      1,
      170,
      0,
      "IMAGE"
    ],
    [
      194,
      146,
      0,
      171,
      0,
      "IMAGE"
    ],
    [
      130,
      10,
      0,
      146,
      8,
      "IMAGE"
    ]
  ],
  "groups": [],
  "definitions": {
    "subgraphs": [
      {
        "id": "71614996-81e0-4af2-8540-a63693a3169f",
        "version": 1,
        "state": {
          "lastGroupId": 9,
          "lastNodeId": 179,
          "lastLinkId": 207,
          "lastRerouteId": 0
        },
        "revision": 0,
        "config": {},
        "name": "Remove Background (RMBG 3.0)",
        "inputNode": {
          "id": -10,
          "bounding": [
            -620,
            30,
            176.537109375,
            388
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            3260,
            250,
            156.169921875,
            108
          ]
        },
        "inputs": [
          {
            "id": "723d9ba8-d096-4d58-a32c-bca56bfe7f3d",
            "name": "switch",
            "type": "BOOLEAN",
            "linkIds": [
              179
            ],
            "label": "auto_prompt",
            "pos": [
              -467.462890625,
              54
            ]
          },
          {
            "id": "f31902d4-0d38-4cae-8ada-eb6388f3c022",
            "name": "prompt",
            "type": "STRING",
            "linkIds": [
              207
            ],
            "label": "subject_note",
            "pos": [
              -467.462890625,
              74
            ]
          },
          {
            "id": "61c70ac4-ddde-4a6b-99ba-babcb728d39c",
            "name": "seed",
            "type": "INT",
            "linkIds": [
              141
            ],
            "pos": [
              -467.462890625,
              94
            ]
          },
          {
            "id": "6575a5e3-6336-41eb-9692-394badfa673e",
            "name": "steps",
            "type": "INT",
            "linkIds": [
              151
            ],
            "pos": [
              -467.462890625,
              114
            ]
          },
          {
            "id": "681f7e96-eacf-4180-aa70-a612322adad5",
            "name": "cfg",
            "type": "FLOAT",
            "linkIds": [
              142
            ],
            "pos": [
              -467.462890625,
              134
            ]
          },
          {
            "id": "b3b74dc6-9b42-47de-b26e-2adbbe761d92",
            "name": "sampler_name",
            "type": "COMBO",
            "linkIds": [
              143
            ],
            "pos": [
              -467.462890625,
              154
            ]
          },
          {
            "id": "80381de8-1760-4dc9-bdd8-0b7ad3862bd8",
            "name": "scheduler",
            "type": "COMBO",
            "linkIds": [
              144
            ],
            "pos": [
              -467.462890625,
              174
            ]
          },
          {
            "id": "cb158c6d-881f-462f-bbb6-a7438471fc1e",
            "name": "expand",
            "type": "INT",
            "linkIds": [
              146
            ],
            "label": "mask_expand",
            "pos": [
              -467.462890625,
              194
            ]
          },
          {
            "id": "8696abde-39f3-46fe-9d38-ac8f01562eee",
            "name": "tapered_corners",
            "type": "BOOLEAN",
            "linkIds": [
              148
            ],
            "label": "mask_tapered_corners",
            "pos": [
              -467.462890625,
              214
            ]
          },
          {
            "id": "f62d1cf2-63bf-4803-9c28-bdf09e9895aa",
            "name": "factor",
            "type": "FLOAT",
            "linkIds": [
              180
            ],
            "label": "alpha_brightness",
            "pos": [
              -467.462890625,
              234
            ]
          },
          {
            "id": "bbf3fc77-1765-46f5-b929-7bebe96a4682",
            "name": "factor_1",
            "type": "FLOAT",
            "linkIds": [
              181
            ],
            "label": "alpha_contrast",
            "pos": [
              -467.462890625,
              254
            ]
          },
          {
            "id": "2eaf5e85-579b-485e-a2be-f184d359bcb4",
            "name": "switch_1",
            "type": "BOOLEAN",
            "linkIds": [
              182
            ],
            "label": "hard_mask",
            "pos": [
              -467.462890625,
              274
            ]
          },
          {
            "id": "20257656-50ea-43ec-9a89-42d00206d731",
            "name": "value",
            "type": "FLOAT",
            "linkIds": [
              183
            ],
            "label": "mask_threshold",
            "pos": [
              -467.462890625,
              294
            ]
          },
          {
            "id": "8df2500b-a25b-4009-a2f6-45b282766bb5",
            "name": "unet_name",
            "type": "COMBO",
            "linkIds": [
              153
            ],
            "pos": [
              -467.462890625,
              314
            ]
          },
          {
            "id": "6e4f0550-7727-4b1a-8b8a-76f7674a92c0",
            "name": "clip_name",
            "type": "COMBO",
            "linkIds": [
              154,
              156
            ],
            "pos": [
              -467.462890625,
              334
            ]
          },
          {
            "id": "3c92944b-22ea-4ac0-a26b-dd107d4fcee9",
            "name": "vae_name",
            "type": "COMBO",
            "linkIds": [
              155
            ],
            "pos": [
              -467.462890625,
              354
            ]
          },
          {
            "id": "9f6327e5-4b97-4176-8f62-29375db49969",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              53,
              3,
              149,
              161
            ],
            "localized_name": "image",
            "label": "source_image",
            "pos": [
              -467.462890625,
              374
            ]
          }
        ],
        "outputs": [
          {
            "id": "0d85bbdd-f86d-4736-a2fa-b36d15a9e6c4",
            "name": "IMAGE",
            "type": "IMAGE",
            "linkIds": [
              54
            ],
            "localized_name": "IMAGE",
            "label": "foreground_image",
            "pos": [
              3284,
              274
            ]
          },
          {
            "id": "9ba33272-79be-462b-b778-86cd8d10f2c8",
            "name": "IMAGE_1",
            "type": "IMAGE",
            "linkIds": [
              138
            ],
            "label": "background_image",
            "pos": [
              3284,
              294
            ]
          },
          {
            "id": "cd3faea2-8ff6-40dd-82ba-806a124b8c2f",
            "name": "MASK",
            "type": "MASK",
            "linkIds": [
              171
            ],
            "label": "mask",
            "pos": [
              3284,
              314
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 34,
            "type": "JoinImageWithAlpha",
            "pos": [
              2670,
              240
            ],
            "size": [
              300,
              50
            ],
            "flags": {},
            "order": 8,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 53
              },
              {
                "localized_name": "alpha",
                "name": "alpha",
                "type": "MASK",
                "link": 188
              }
            ],
            "outputs": [
              {
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE",
                "links": [
                  54
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "JoinImageWithAlpha"
            }
          },
          {
            "id": 5,
            "type": "KSampler",
            "pos": [
              940,
              170
            ],
            "size": [
              320,
              500
            ],
            "flags": {},
            "order": 6,
            "mode": 0,
            "inputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "model",
                "locked": null,
                "name": "model",
                "nameLocked": null,
                "removable": null,
                "type": "MODEL",
                "pos": null,
                "link": 4
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "positive",
                "locked": null,
                "name": "positive",
                "nameLocked": null,
                "removable": null,
                "type": "CONDITIONING",
                "pos": null,
                "link": 5
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "negative",
                "locked": null,
                "name": "negative",
                "nameLocked": null,
                "removable": null,
                "type": "CONDITIONING",
                "pos": null,
                "link": 6
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "latent_image",
                "locked": null,
                "name": "latent_image",
                "nameLocked": null,
                "removable": null,
                "type": "LATENT",
                "pos": null,
                "link": 7
              },
              {
                "localized_name": "seed",
                "name": "seed",
                "type": "INT",
                "widget": {
                  "name": "seed"
                },
                "link": 141
              },
              {
                "localized_name": "steps",
                "name": "steps",
                "type": "INT",
                "widget": {
                  "name": "steps"
                },
                "link": 151
              },
              {
                "localized_name": "cfg",
                "name": "cfg",
                "type": "FLOAT",
                "widget": {
                  "name": "cfg"
                },
                "link": 142
              },
              {
                "localized_name": "sampler_name",
                "name": "sampler_name",
                "type": "COMBO",
                "widget": {
                  "name": "sampler_name"
                },
                "link": 143
              },
              {
                "localized_name": "scheduler",
                "name": "scheduler",
                "type": "COMBO",
                "widget": {
                  "name": "scheduler"
                },
                "link": 144
              }
            ],
            "outputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "LATENT",
                "locked": null,
                "name": "LATENT",
                "nameLocked": null,
                "removable": null,
                "type": "LATENT",
                "pos": null,
                "slot_index": null,
                "links": [
                  8
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "KSampler"
            },
            "widgets_values": [
              42,
              "fixed",
              4,
              1,
              "euler",
              "simple",
              1
            ],
            "widgets_values_named": {
              "seed": 42,
              "control_after_generate": "fixed",
              "steps": 4,
              "cfg": 1,
              "sampler_name": "euler",
              "scheduler": "simple",
              "denoise": 1
            }
          },
          {
            "id": 36,
            "type": "InvertMask",
            "pos": [
              2670,
              140
            ],
            "size": [
              300,
              30
            ],
            "flags": {},
            "order": 10,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK",
                "link": 187
              }
            ],
            "outputs": [
              {
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK",
                "links": [
                  188
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "InvertMask"
            }
          },
          {
            "id": 35,
            "type": "ImageToMask",
            "pos": [
              1930,
              250
            ],
            "size": [
              300,
              60
            ],
            "flags": {},
            "order": 9,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 168
              }
            ],
            "outputs": [
              {
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK",
                "links": [
                  172,
                  174
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "ImageToMask"
            },
            "widgets_values": [
              "red"
            ],
            "widgets_values_named": {
              "channel": "red"
            }
          },
          {
            "id": 4,
            "type": "TextEncodeFibo2",
            "pos": [
              410,
              170
            ],
            "size": [
              410,
              510
            ],
            "flags": {},
            "order": 5,
            "mode": 0,
            "showAdvanced": true,
            "inputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "clip",
                "locked": null,
                "name": "clip",
                "nameLocked": null,
                "removable": null,
                "type": "CLIP",
                "pos": null,
                "link": 1
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "image_1",
                "locked": null,
                "name": "images.image_1",
                "nameLocked": null,
                "removable": null,
                "shape": 7,
                "type": "IMAGE",
                "pos": null,
                "link": 3
              },
              {
                "localized_name": "image_2",
                "name": "images.image_2",
                "shape": 7,
                "type": "IMAGE",
                "link": null
              },
              {
                "localized_name": "image_3",
                "name": "images.image_3",
                "shape": 7,
                "type": "IMAGE",
                "link": null
              },
              {
                "localized_name": "image_4",
                "name": "images.image_4",
                "shape": 7,
                "type": "IMAGE",
                "link": null
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "vae",
                "locked": null,
                "name": "vae",
                "nameLocked": null,
                "removable": null,
                "shape": 7,
                "type": "VAE",
                "pos": null,
                "link": 150
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "prompt",
                "locked": null,
                "name": "prompt",
                "nameLocked": null,
                "removable": null,
                "type": "STRING",
                "widget": {
                  "name": "prompt"
                },
                "link": 178
              }
            ],
            "outputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "positive",
                "locked": null,
                "name": "positive",
                "nameLocked": null,
                "removable": null,
                "type": "CONDITIONING",
                "pos": null,
                "slot_index": null,
                "links": [
                  5
                ]
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "negative",
                "locked": null,
                "name": "negative",
                "nameLocked": null,
                "removable": null,
                "type": "CONDITIONING",
                "pos": null,
                "slot_index": null,
                "links": [
                  6
                ]
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "latent",
                "locked": null,
                "name": "latent",
                "nameLocked": null,
                "removable": null,
                "type": "LATENT",
                "pos": null,
                "slot_index": null,
                "links": [
                  7
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "TextEncodeFibo2"
            },
            "widgets_values": [
              "",
              "",
              0,
              0,
              1
            ],
            "widgets_values_named": {
              "prompt": "",
              "negative_prompt": "",
              "width": 0,
              "height": 0,
              "batch_size": 1
            },
            "color": "#322",
            "bgcolor": "#533"
          },
          {
            "id": 6,
            "type": "VAEDecode",
            "pos": [
              1390,
              160
            ],
            "size": [
              300,
              50
            ],
            "flags": {},
            "order": 7,
            "mode": 0,
            "inputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "samples",
                "locked": null,
                "name": "samples",
                "nameLocked": null,
                "removable": null,
                "type": "LATENT",
                "pos": null,
                "link": 8
              },
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "vae",
                "locked": null,
                "name": "vae",
                "nameLocked": null,
                "removable": null,
                "type": "VAE",
                "pos": null,
                "link": 9
              }
            ],
            "outputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "IMAGE",
                "locked": null,
                "name": "IMAGE",
                "nameLocked": null,
                "removable": null,
                "type": "IMAGE",
                "pos": null,
                "slot_index": null,
                "links": [
                  165
                ]
              }
            ],
            "title": "VAEDecode",
            "properties": {
              "Node name for S&R": "VAEDecode"
            }
          },
          {
            "id": 1,
            "type": "UNETLoader",
            "pos": [
              -100,
              170
            ],
            "size": [
              410,
              90
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "unet_name",
                "name": "unet_name",
                "type": "COMBO",
                "widget": {
                  "name": "unet_name"
                },
                "link": 153
              }
            ],
            "outputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "MODEL",
                "locked": null,
                "name": "MODEL",
                "nameLocked": null,
                "removable": null,
                "type": "MODEL",
                "pos": null,
                "slot_index": null,
                "links": [
                  4
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "UNETLoader",
              "models": [
                {
                  "name": "rmbg3_int8_convrot.safetensors",
                  "url": "https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/diffusion_models/rmbg3_int8_convrot.safetensors",
                  "directory": "diffusion_models"
                }
              ]
            },
            "widgets_values": [
              "rmbg3_int8_convrot.safetensors",
              "default"
            ],
            "widgets_values_named": {
              "unet_name": "rmbg3_int8_convrot.safetensors",
              "weight_dtype": "default"
            }
          },
          {
            "id": 2,
            "type": "CLIPLoader",
            "pos": [
              -100,
              340
            ],
            "size": [
              410,
              110
            ],
            "flags": {},
            "order": 3,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip_name",
                "name": "clip_name",
                "type": "COMBO",
                "widget": {
                  "name": "clip_name"
                },
                "link": 154
              }
            ],
            "outputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "CLIP",
                "locked": null,
                "name": "CLIP",
                "nameLocked": null,
                "removable": null,
                "type": "CLIP",
                "pos": null,
                "slot_index": null,
                "links": [
                  1
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "CLIPLoader",
              "models": [
                {
                  "name": "qwen3vl_4b_int8_convrot.safetensors",
                  "url": "https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/text_encoders/qwen3vl_4b_int8_convrot.safetensors",
                  "directory": "text_encoders"
                }
              ]
            },
            "widgets_values": [
              "qwen3vl_4b_int8_convrot.safetensors",
              "fibo2",
              "default"
            ],
            "widgets_values_named": {
              "clip_name": "qwen3vl_4b_int8_convrot.safetensors",
              "type": "fibo2",
              "device": "default"
            }
          },
          {
            "id": 3,
            "type": "VAELoader",
            "pos": [
              -100,
              550
            ],
            "size": [
              410,
              60
            ],
            "flags": {},
            "order": 4,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "vae_name",
                "name": "vae_name",
                "type": "COMBO",
                "widget": {
                  "name": "vae_name"
                },
                "link": 155
              }
            ],
            "outputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "VAE",
                "locked": null,
                "name": "VAE",
                "nameLocked": null,
                "removable": null,
                "type": "VAE",
                "pos": null,
                "slot_index": null,
                "links": [
                  9,
                  150
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "VAELoader",
              "models": [
                {
                  "name": "flux2-vae.safetensors",
                  "url": "https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/vae/flux2-vae.safetensors",
                  "directory": "vae"
                }
              ]
            },
            "widgets_values": [
              "flux2-vae.safetensors"
            ],
            "widgets_values_named": {
              "vae_name": "flux2-vae.safetensors"
            }
          },
          {
            "id": 147,
            "type": "JoinImageWithAlpha",
            "pos": [
              2670,
              590
            ],
            "size": [
              300,
              50
            ],
            "flags": {},
            "order": 11,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 149
              },
              {
                "localized_name": "alpha",
                "name": "alpha",
                "type": "MASK",
                "link": 134
              }
            ],
            "outputs": [
              {
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE",
                "links": [
                  138
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "JoinImageWithAlpha"
            }
          },
          {
            "id": 148,
            "type": "GrowMask",
            "pos": [
              2280,
              470
            ],
            "size": [
              300,
              90
            ],
            "flags": {},
            "order": 12,
            "mode": 0,
            "showAdvanced": true,
            "inputs": [
              {
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK",
                "link": 170
              },
              {
                "localized_name": "expand",
                "name": "expand",
                "type": "INT",
                "widget": {
                  "name": "expand"
                },
                "link": 146
              },
              {
                "localized_name": "tapered_corners",
                "name": "tapered_corners",
                "type": "BOOLEAN",
                "widget": {
                  "name": "tapered_corners"
                },
                "link": 148
              }
            ],
            "outputs": [
              {
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK",
                "links": [
                  134,
                  187
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "GrowMask"
            },
            "widgets_values": [
              1,
              true
            ],
            "widgets_values_named": {
              "expand": 1,
              "tapered_corners": true
            }
          },
          {
            "id": 156,
            "type": "CLIPLoader",
            "pos": [
              -110,
              870
            ],
            "size": [
              410,
              110
            ],
            "flags": {},
            "order": 13,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip_name",
                "name": "clip_name",
                "type": "COMBO",
                "widget": {
                  "name": "clip_name"
                },
                "link": 156
              }
            ],
            "outputs": [
              {
                "color_off": null,
                "color_on": null,
                "dir": null,
                "label": null,
                "localized_name": "CLIP",
                "locked": null,
                "name": "CLIP",
                "nameLocked": null,
                "removable": null,
                "type": "CLIP",
                "pos": null,
                "slot_index": null,
                "links": [
                  162
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "CLIPLoader",
              "models": [
                {
                  "name": "qwen3vl_4b_int8_convrot.safetensors",
                  "url": "https://huggingface.co/briaai/RMBG-3.0-Comfy/resolve/main/text_encoders/qwen3vl_4b_int8_convrot.safetensors",
                  "directory": "text_encoders"
                }
              ]
            },
            "widgets_values": [
              "qwen3vl_4b_int8_convrot.safetensors",
              "stable_diffusion",
              "default"
            ],
            "widgets_values_named": {
              "clip_name": "qwen3vl_4b_int8_convrot.safetensors",
              "type": "stable_diffusion",
              "device": "default"
            }
          },
          {
            "id": 157,
            "type": "PrimitiveStringMultiline",
            "pos": [
              -110,
              1030
            ],
            "size": [
              420,
              280
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [],
            "outputs": [
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": [
                  163
                ]
              }
            ],
            "title": "Text (System Prompt)",
            "properties": {
              "Node name for S&R": "PrimitiveStringMultiline"
            },
            "widgets_values": [
              "You are the prompt writer for an image matting model (RMBG 3.0). You receive a photo and, optionally, a short note from the user about what the subject is or what material it is made of.\n\nAlways answer with ONE paragraph (max 90 words) that instructs the image model to render a grayscale transparency map of the main subject:\n- pure black background;\n- near-white for every opaque part of the subject, naming them as they appear in this image;\n- middle gray for see-through parts (glass, tulle, sheer fabric, liquid, smoke, mesh), dark gray only for the thinnest of them;\n- the entire subject must stay present and opaque parts must not be turned transparent;\n- keep continuous gray gradients inside the shape, and exclude the backdrop and any reflection or shadow on the ground.\n\nRules that override any other reading:\n- A part the note calls transparent, translucent or glass maps to middle gray (dark gray where it is thinnest) - NEVER to near-white.\n- Colour never implies opacity: coloured glass, coloured liquid and coloured mesh are still see-through and get gray, never white.\n- Only parts that are solid in the note and in the photo (skin, fabric, petals, stems, metal, wood) get near-white.\n\nIf the note is empty, decide the opaque / see-through split from the image alone. If the note names a material or what the thing is, treat it as authoritative and let it override what you would otherwise guess.\n\nReply with the instruction only."
            ],
            "widgets_values_named": {
              "value": "You are the prompt writer for an image matting model (RMBG 3.0). You receive a photo and, optionally, a short note from the user about what the subject is or what material it is made of.\n\nAlways answer with ONE paragraph (max 90 words) that instructs the image model to render a grayscale transparency map of the main subject:\n- pure black background;\n- near-white for every opaque part of the subject, naming them as they appear in this image;\n- middle gray for see-through parts (glass, tulle, sheer fabric, liquid, smoke, mesh), dark gray only for the thinnest of them;\n- the entire subject must stay present and opaque parts must not be turned transparent;\n- keep continuous gray gradients inside the shape, and exclude the backdrop and any reflection or shadow on the ground.\n\nRules that override any other reading:\n- A part the note calls transparent, translucent or glass maps to middle gray (dark gray where it is thinnest) - NEVER to near-white.\n- Colour never implies opacity: coloured glass, coloured liquid and coloured mesh are still see-through and get gray, never white.\n- Only parts that are solid in the note and in the photo (skin, fabric, petals, stems, metal, wood) get near-white.\n\nIf the note is empty, decide the opaque / see-through split from the image alone. If the note names a material or what the thing is, treat it as authoritative and let it override what you would otherwise guess.\n\nReply with the instruction only."
            }
          },
          {
            "id": 158,
            "type": "TextGenerateV2",
            "pos": [
              340,
              870
            ],
            "size": [
              400,
              540
            ],
            "flags": {},
            "order": 14,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "clip",
                "name": "clip",
                "type": "CLIP",
                "link": 162
              },
              {
                "localized_name": "image1",
                "name": "images.image1",
                "shape": 7,
                "type": "IMAGE",
                "link": 161
              },
              {
                "localized_name": "image2",
                "name": "images.image2",
                "shape": 7,
                "type": "IMAGE",
                "link": null
              },
              {
                "localized_name": "video1",
                "name": "videos.video1",
                "shape": 7,
                "type": "IMAGE",
                "link": null
              },
              {
                "localized_name": "audio1",
                "name": "audios.audio1",
                "shape": 7,
                "type": "AUDIO",
                "link": null
              },
              {
                "localized_name": "audio2",
                "name": "audios.audio2",
                "shape": 7,
                "type": "AUDIO",
                "link": null
              },
              {
                "localized_name": "audio3",
                "name": "audios.audio3",
                "shape": 7,
                "type": "AUDIO",
                "link": null
              },
              {
                "localized_name": "system_prompt",
                "name": "system_prompt",
                "shape": 7,
                "type": "STRING",
                "link": 163
              },
              {
                "localized_name": "prompt",
                "name": "prompt",
                "type": "STRING",
                "widget": {
                  "name": "prompt"
                },
                "link": 205
              }
            ],
            "outputs": [
              {
                "localized_name": "generated_text",
                "name": "generated_text",
                "type": "STRING",
                "links": [
                  164
                ]
              },
              {
                "localized_name": "thinking",
                "name": "thinking",
                "type": "STRING",
                "links": null
              }
            ],
            "properties": {
              "Node name for S&R": "TextGenerateV2"
            },
            "widgets_values": [
              "",
              512,
              "on",
              0.7,
              64,
              0.95,
              0.05,
              1.05,
              0,
              0,
              true,
              true,
              "auto"
            ],
            "widgets_values_named": {
              "prompt": "",
              "max_length": 512,
              "sampling_mode": "on",
              "sampling_mode.temperature": 0.7,
              "sampling_mode.top_k": 64,
              "sampling_mode.top_p": 0.95,
              "sampling_mode.min_p": 0.05,
              "sampling_mode.repetition_penalty": 1.05,
              "sampling_mode.presence_penalty": 0,
              "sampling_mode.seed": 0,
              "thinking": true,
              "use_default_template": true,
              "mtp": "auto"
            }
          },
          {
            "id": 159,
            "type": "ComfySwitchNode",
            "pos": [
              800,
              910
            ],
            "size": [
              230,
              110
            ],
            "flags": {},
            "order": 15,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "on_false",
                "name": "on_false",
                "shape": 7,
                "type": "STRING",
                "link": 203
              },
              {
                "localized_name": "on_true",
                "name": "on_true",
                "shape": 7,
                "type": "STRING",
                "link": 164
              },
              {
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                },
                "link": 179
              }
            ],
            "outputs": [
              {
                "localized_name": "output",
                "name": "output",
                "type": "STRING",
                "links": [
                  177
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode"
            },
            "widgets_values": [
              false
            ],
            "widgets_values_named": {
              "switch": false
            }
          },
          {
            "id": 160,
            "type": "AdjustBrightness",
            "pos": [
              1390,
              280
            ],
            "size": [
              300,
              90
            ],
            "flags": {},
            "order": 16,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE",
                "link": 165
              },
              {
                "localized_name": "factor",
                "name": "factor",
                "type": "FLOAT",
                "widget": {
                  "name": "factor"
                },
                "link": 180
              }
            ],
            "outputs": [
              {
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE",
                "links": [
                  167
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "AdjustBrightness"
            },
            "widgets_values": [
              1
            ],
            "widgets_values_named": {
              "factor": 1
            }
          },
          {
            "id": 161,
            "type": "AdjustContrast",
            "pos": [
              1390,
              440
            ],
            "size": [
              300,
              90
            ],
            "flags": {},
            "order": 17,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE",
                "link": 167
              },
              {
                "localized_name": "factor",
                "name": "factor",
                "type": "FLOAT",
                "widget": {
                  "name": "factor"
                },
                "link": 181
              }
            ],
            "outputs": [
              {
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE",
                "links": [
                  168
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "AdjustContrast"
            },
            "widgets_values": [
              1
            ],
            "widgets_values_named": {
              "factor": 1
            }
          },
          {
            "id": 162,
            "type": "ThresholdMask",
            "pos": [
              1930,
              370
            ],
            "size": [
              310,
              70
            ],
            "flags": {},
            "order": 18,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "mask",
                "name": "mask",
                "type": "MASK",
                "link": 174
              },
              {
                "localized_name": "value",
                "name": "value",
                "type": "FLOAT",
                "widget": {
                  "name": "value"
                },
                "link": 183
              }
            ],
            "outputs": [
              {
                "localized_name": "MASK",
                "name": "MASK",
                "type": "MASK",
                "links": [
                  173
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "ThresholdMask"
            },
            "widgets_values": [
              0.5
            ],
            "widgets_values_named": {
              "value": 0.5
            }
          },
          {
            "id": 163,
            "type": "ComfySwitchNode",
            "pos": [
              2300,
              280
            ],
            "size": [
              270,
              80
            ],
            "flags": {},
            "order": 19,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "on_false",
                "name": "on_false",
                "shape": 7,
                "type": "MASK",
                "link": 172
              },
              {
                "localized_name": "on_true",
                "name": "on_true",
                "shape": 7,
                "type": "MASK",
                "link": 173
              },
              {
                "localized_name": "switch",
                "name": "switch",
                "type": "BOOLEAN",
                "widget": {
                  "name": "switch"
                },
                "link": 182
              }
            ],
            "outputs": [
              {
                "localized_name": "output",
                "name": "output",
                "type": "MASK",
                "links": [
                  170,
                  171
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "ComfySwitchNode"
            },
            "widgets_values": [
              false
            ],
            "widgets_values_named": {
              "switch": false
            }
          },
          {
            "id": 164,
            "type": "PreviewAny",
            "pos": [
              800,
              1080
            ],
            "size": [
              430,
              520
            ],
            "flags": {},
            "order": 20,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "source",
                "name": "source",
                "type": "*",
                "link": 177
              }
            ],
            "outputs": [
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": [
                  178
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "PreviewAny"
            },
            "widgets_values": [],
            "widgets_values_named": {}
          },
          {
            "id": 177,
            "type": "PrimitiveStringMultiline",
            "pos": [
              340,
              1460
            ],
            "size": [
              410,
              170
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [],
            "outputs": [
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": [
                  203
                ]
              }
            ],
            "title": "Text (Preset Instruction)",
            "properties": {
              "Node name for S&R": "PrimitiveStringMultiline"
            },
            "widgets_values": [
              "{\"edit_instruction\": \"Generate a detailed grayscale alpha matte. Map the opaque foreground to white and the background to black. Produce soft, anti-aliased grayscale gradients at the edges of the subject to represent fine details and transparency.\"}"
            ],
            "widgets_values_named": {
              "value": "{\"edit_instruction\": \"Generate a detailed grayscale alpha matte. Map the opaque foreground to white and the background to black. Produce soft, anti-aliased grayscale gradients at the edges of the subject to represent fine details and transparency.\"}"
            }
          },
          {
            "id": 178,
            "type": "StringFormat",
            "pos": [
              -110,
              1510
            ],
            "size": [
              390,
              130
            ],
            "flags": {
              "collapsed": false
            },
            "order": 21,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "a",
                "name": "values.a",
                "shape": 7,
                "type": "*",
                "link": 206
              },
              {
                "localized_name": "b",
                "name": "values.b",
                "shape": 7,
                "type": "*",
                "link": null
              }
            ],
            "outputs": [
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": [
                  205
                ]
              }
            ],
            "properties": {
              "Node name for S&R": "StringFormat"
            },
            "widgets_values": [
              "Write the matte instruction for this image.\n\nUser note about the subject (authoritative when present, may be empty): {a}"
            ],
            "widgets_values_named": {
              "f_string": "Write the matte instruction for this image.\n\nUser note about the subject (authoritative when present, may be empty): {a}"
            }
          },
          {
            "id": 179,
            "type": "PrimitiveStringMultiline",
            "pos": [
              -110,
              1360
            ],
            "size": [
              410,
              110
            ],
            "flags": {},
            "order": 22,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "value",
                "name": "value",
                "type": "STRING",
                "widget": {
                  "name": "value"
                },
                "link": 207
              }
            ],
            "outputs": [
              {
                "localized_name": "STRING",
                "name": "STRING",
                "type": "STRING",
                "links": [
                  206
                ]
              }
            ],
            "title": "Text ( (User guide))",
            "properties": {
              "Node name for S&R": "PrimitiveStringMultiline"
            },
            "widgets_values": [
              ""
            ],
            "widgets_values_named": {
              "value": ""
            }
          }
        ],
        "groups": [
          {
            "id": 4,
            "title": "Conditioning",
            "bounding": [
              370,
              0,
              510,
              770
            ],
            "color": "#3f789e",
            "flags": {}
          },
          {
            "id": 5,
            "title": "Sampling",
            "bounding": [
              910,
              0,
              370,
              770
            ],
            "color": "#3f789e",
            "flags": {}
          },
          {
            "id": 6,
            "title": "Mask Adjustment & Output",
            "bounding": [
              1310,
              0,
              1290,
              770
            ],
            "color": "#3f789e",
            "flags": {}
          },
          {
            "id": 1,
            "title": "Models",
            "bounding": [
              -120,
              0,
              460,
              770
            ],
            "color": "#3f789e",
            "flags": {}
          },
          {
            "id": 7,
            "title": "Foreground",
            "bounding": [
              2630,
              0,
              390,
              410
            ],
            "color": "#3f789e",
            "flags": {}
          },
          {
            "id": 8,
            "title": "Background",
            "bounding": [
              2630,
              440,
              390,
              330
            ],
            "color": "#3f789e",
            "flags": {}
          },
          {
            "id": 9,
            "title": "Prompt from Image",
            "bounding": [
              -120,
              800,
              1400,
              850
            ],
            "color": "#444",
            "flags": {}
          }
        ],
        "links": [
          {
            "id": 4,
            "origin_id": 1,
            "origin_slot": 0,
            "target_id": 5,
            "target_slot": 0,
            "type": "MODEL"
          },
          {
            "id": 5,
            "origin_id": 4,
            "origin_slot": 0,
            "target_id": 5,
            "target_slot": 1,
            "type": "CONDITIONING"
          },
          {
            "id": 6,
            "origin_id": 4,
            "origin_slot": 1,
            "target_id": 5,
            "target_slot": 2,
            "type": "CONDITIONING"
          },
          {
            "id": 7,
            "origin_id": 4,
            "origin_slot": 2,
            "target_id": 5,
            "target_slot": 3,
            "type": "LATENT"
          },
          {
            "id": 8,
            "origin_id": 5,
            "origin_slot": 0,
            "target_id": 6,
            "target_slot": 0,
            "type": "LATENT"
          },
          {
            "id": 9,
            "origin_id": 3,
            "origin_slot": 0,
            "target_id": 6,
            "target_slot": 1,
            "type": "VAE"
          },
          {
            "id": 54,
            "origin_id": 34,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 134,
            "origin_id": 148,
            "origin_slot": 0,
            "target_id": 147,
            "target_slot": 1,
            "type": "MASK"
          },
          {
            "id": 138,
            "origin_id": 147,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 164,
            "origin_id": 158,
            "origin_slot": 0,
            "target_id": 159,
            "target_slot": 1,
            "type": "STRING"
          },
          {
            "id": 165,
            "origin_id": 6,
            "origin_slot": 0,
            "target_id": 160,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 167,
            "origin_id": 160,
            "origin_slot": 0,
            "target_id": 161,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 168,
            "origin_id": 161,
            "origin_slot": 0,
            "target_id": 35,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 170,
            "origin_id": 163,
            "origin_slot": 0,
            "target_id": 148,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 171,
            "origin_id": 163,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 2,
            "type": "*"
          },
          {
            "id": 172,
            "origin_id": 35,
            "origin_slot": 0,
            "target_id": 163,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 173,
            "origin_id": 162,
            "origin_slot": 0,
            "target_id": 163,
            "target_slot": 1,
            "type": "MASK"
          },
          {
            "id": 174,
            "origin_id": 35,
            "origin_slot": 0,
            "target_id": 162,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 177,
            "origin_id": 159,
            "origin_slot": 0,
            "target_id": 164,
            "target_slot": 0,
            "type": "STRING"
          },
          {
            "id": 187,
            "origin_id": 148,
            "origin_slot": 0,
            "target_id": 36,
            "target_slot": 0,
            "type": "MASK"
          },
          {
            "id": 188,
            "origin_id": 36,
            "origin_slot": 0,
            "target_id": 34,
            "target_slot": 1,
            "type": "MASK"
          },
          {
            "id": 203,
            "origin_id": 177,
            "origin_slot": 0,
            "target_id": 159,
            "target_slot": 0,
            "type": "STRING"
          },
          {
            "id": 179,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 159,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 207,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 179,
            "target_slot": 0,
            "type": "STRING"
          },
          {
            "id": 141,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 5,
            "target_slot": 4,
            "type": "INT"
          },
          {
            "id": 151,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 5,
            "target_slot": 5,
            "type": "INT"
          },
          {
            "id": 142,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 5,
            "target_slot": 6,
            "type": "FLOAT"
          },
          {
            "id": 143,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 5,
            "target_slot": 7,
            "type": "COMBO"
          },
          {
            "id": 144,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 5,
            "target_slot": 8,
            "type": "COMBO"
          },
          {
            "id": 146,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 148,
            "target_slot": 1,
            "type": "INT"
          },
          {
            "id": 148,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 148,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 180,
            "origin_id": -10,
            "origin_slot": 9,
            "target_id": 160,
            "target_slot": 1,
            "type": "FLOAT"
          },
          {
            "id": 181,
            "origin_id": -10,
            "origin_slot": 10,
            "target_id": 161,
            "target_slot": 1,
            "type": "FLOAT"
          },
          {
            "id": 182,
            "origin_id": -10,
            "origin_slot": 11,
            "target_id": 163,
            "target_slot": 2,
            "type": "BOOLEAN"
          },
          {
            "id": 183,
            "origin_id": -10,
            "origin_slot": 12,
            "target_id": 162,
            "target_slot": 1,
            "type": "FLOAT"
          },
          {
            "id": 153,
            "origin_id": -10,
            "origin_slot": 13,
            "target_id": 1,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 154,
            "origin_id": -10,
            "origin_slot": 14,
            "target_id": 2,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 156,
            "origin_id": -10,
            "origin_slot": 14,
            "target_id": 156,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 155,
            "origin_id": -10,
            "origin_slot": 15,
            "target_id": 3,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 53,
            "origin_id": -10,
            "origin_slot": 16,
            "target_id": 34,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 149,
            "origin_id": -10,
            "origin_slot": 16,
            "target_id": 147,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 1,
            "origin_id": 2,
            "origin_slot": 0,
            "target_id": 4,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 3,
            "origin_id": -10,
            "origin_slot": 16,
            "target_id": 4,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 162,
            "origin_id": 156,
            "origin_slot": 0,
            "target_id": 158,
            "target_slot": 0,
            "type": "CLIP"
          },
          {
            "id": 161,
            "origin_id": -10,
            "origin_slot": 16,
            "target_id": 158,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 163,
            "origin_id": 157,
            "origin_slot": 0,
            "target_id": 158,
            "target_slot": 7,
            "type": "STRING"
          },
          {
            "id": 205,
            "origin_id": 178,
            "origin_slot": 0,
            "target_id": 158,
            "target_slot": 8,
            "type": "STRING"
          },
          {
            "id": 206,
            "origin_id": 179,
            "origin_slot": 0,
            "target_id": 178,
            "target_slot": 0,
            "type": "STRING"
          },
          {
            "id": 150,
            "origin_id": 3,
            "origin_slot": 0,
            "target_id": 4,
            "target_slot": 5,
            "type": "VAE"
          },
          {
            "id": 178,
            "origin_id": 164,
            "origin_slot": 0,
            "target_id": 4,
            "target_slot": 6,
            "type": "STRING"
          }
        ],
        "extra": {}
      }
    ]
  },
  "config": {},
  "extra": {
    "frontendVersion": "1.59.10",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true,
    "ds": {
      "scale": 0.7587032213846309,
      "offset": [
        928.6690460654521,
        -1.8862290802083883
      ]
    }
  },
  "version": 0.4
}