{
  "id": "97c0d4e0-c7dd-4993-8046-184243cab914",
  "revision": 0,
  "last_node_id": 9,
  "last_link_id": 8,
  "nodes": [
    {
      "id": 1,
      "type": "MarkdownNote",
      "pos": [
        40,
        40
      ],
      "size": [
        420,
        520
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "properties": {},
      "widgets_values": [
        "# Bria: Guided Background Removal\n\nDescribe what to keep and Bria removes everything else, so a cutout can keep one subject out of a busy scene instead of losing whatever is not background. The original pixels come back at full resolution with a new alpha channel.\n\n## Input Asset\n\n- [bria_guided_person.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/bria_guided_person.png)\n\n## Parameters\n\n- The prompt names what stays: `the man in the blue shirt`, `only the shoes`. A prompt that matches nothing returns a fully transparent image.\n- Naming what to drop as well as what to keep is the most reliable way to get a clean edge around hair and thin clothing.\n- `moderation` on exposes separate visual input and output moderation toggles; off skips them.\n- For a plain cutout with no guidance, Bria Remove Image Background is the simpler node.\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": "# Bria: Guided Background Removal\n\nDescribe what to keep and Bria removes everything else, so a cutout can keep one subject out of a busy scene instead of losing whatever is not background. The original pixels come back at full resolution with a new alpha channel.\n\n## Input Asset\n\n- [bria_guided_person.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/bria_guided_person.png)\n\n## Parameters\n\n- The prompt names what stays: `the man in the blue shirt`, `only the shoes`. A prompt that matches nothing returns a fully transparent image.\n- Naming what to drop as well as what to keep is the most reliable way to get a clean edge around hair and thin clothing.\n- `moderation` on exposes separate visual input and output moderation toggles; off skips them.\n- For a plain cutout with no guidance, Bria Remove Image Background is the simpler node.\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": 3,
      "type": "LoadImage",
      "pos": [
        500,
        40
      ],
      "size": [
        320,
        370
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            1,
            4
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "bria_guided_person.png",
        "image"
      ],
      "widgets_values_named": {
        "image": "bria_guided_person.png",
        "upload": "image"
      }
    },
    {
      "id": 2,
      "type": "BriaGuidedRemoveBackground",
      "pos": [
        868,
        40
      ],
      "size": [
        420,
        300
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 1
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            2
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "BriaGuidedRemoveBackground"
      },
      "widgets_values": [
        "the archer with the bow and the quiver\n",
        "true",
        false,
        false
      ],
      "widgets_values_named": {
        "prompt": "the archer with the bow and the quiver\n",
        "moderation": "true",
        "moderation.visual_input_moderation": false,
        "moderation.visual_output_moderation": false
      },
      "color": "#432",
      "bgcolor": "#653"
    },
    {
      "id": 4,
      "type": "SaveImage",
      "pos": [
        1336,
        40
      ],
      "size": [
        420,
        460
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 2
        }
      ],
      "outputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "links": [
            3
          ]
        }
      ],
      "properties": {
        "Node name for S&R": "SaveImage"
      },
      "widgets_values": [
        "api_bria_guided_remove_background"
      ],
      "widgets_values_named": {
        "filename_prefix": "api_bria_guided_remove_background"
      }
    },
    {
      "id": 5,
      "type": "ImageCompare",
      "pos": [
        1804,
        40
      ],
      "size": [
        440.2221916777981,
        473.5349069800176
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "image_a",
          "shape": 7,
          "type": "IMAGE",
          "link": 4
        },
        {
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE",
          "link": 3
        }
      ],
      "outputs": [],
      "properties": {
        "Node name for S&R": "ImageCompare"
      },
      "widgets_values": [],
      "widgets_values_named": {}
    }
  ],
  "links": [
    [
      2,
      2,
      0,
      4,
      0,
      "IMAGE"
    ],
    [
      1,
      3,
      0,
      2,
      0,
      "IMAGE"
    ],
    [
      3,
      4,
      0,
      5,
      1,
      "IMAGE"
    ],
    [
      4,
      3,
      0,
      5,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.3928808160514848,
      "offset": [
        1166.151952092833,
        843.0554056688183
      ]
    },
    "frontendVersion": "1.57.1",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}
