434 lines
10 KiB
JSON
434 lines
10 KiB
JSON
[
|
|
{
|
|
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
|
|
"sha1": "9d99de736806f8eeffed114cc1ba075c16276b69",
|
|
"raw_sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036",
|
|
"canonical_sha256": "d2424149db6ebbd2d49a9020457eb6349ac96d97f46de9dbf4ecc021692e6ea7",
|
|
"nodes": [
|
|
{
|
|
"id": 22,
|
|
"type": "RemoveBackground",
|
|
"pos": [
|
|
-6388.49883136883,
|
|
1933.967004261379
|
|
],
|
|
"size": [
|
|
302.25,
|
|
72
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "image",
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 20
|
|
},
|
|
{
|
|
"localized_name": "bg_removal_model",
|
|
"name": "bg_removal_model",
|
|
"type": "BACKGROUND_REMOVAL",
|
|
"link": 17
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "mask",
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"links": [
|
|
18,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "RemoveBackground",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 24,
|
|
"type": "InvertMask",
|
|
"pos": [
|
|
-6384.180167915791,
|
|
2060.0817920441295
|
|
],
|
|
"size": [
|
|
285.984375,
|
|
48
|
|
],
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "遮罩",
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"link": 18
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "遮罩",
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": [
|
|
19
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "InvertMask",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 25,
|
|
"type": "JoinImageWithAlpha",
|
|
"pos": [
|
|
-6379.171024549788,
|
|
2163.2711585504258
|
|
],
|
|
"size": [
|
|
284.96875,
|
|
72
|
|
],
|
|
"flags": {},
|
|
"order": 6,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 21
|
|
},
|
|
{
|
|
"localized_name": "阿尔法",
|
|
"name": "alpha",
|
|
"type": "MASK",
|
|
"link": 19
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "JoinImageWithAlpha",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 23,
|
|
"type": "LoadBackgroundRemovalModel",
|
|
"pos": [
|
|
-6394.605214959123,
|
|
1767.8227594880282
|
|
],
|
|
"size": [
|
|
311.484375,
|
|
85.515625
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "bg_removal_name",
|
|
"name": "bg_removal_name",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "bg_removal_name"
|
|
},
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "bg_model",
|
|
"name": "bg_model",
|
|
"type": "BACKGROUND_REMOVAL",
|
|
"links": [
|
|
17
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LoadBackgroundRemovalModel",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
},
|
|
"models": [
|
|
{
|
|
"name": "birefnet.safetensors",
|
|
"url": "https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors",
|
|
"directory": "background_removal"
|
|
}
|
|
]
|
|
},
|
|
"widgets_values": [
|
|
"birefnet.safetensors"
|
|
]
|
|
},
|
|
{
|
|
"id": 21,
|
|
"type": "MarkdownNote",
|
|
"pos": [
|
|
-7314.2511240714375,
|
|
1923.5548308282498
|
|
],
|
|
"size": [
|
|
497.234375,
|
|
630.953125
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [],
|
|
"title": "Model Link",
|
|
"properties": {
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": [
|
|
"## Model Link (for Local Users)\n\n**background_removal**\n\n- [birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 background_removal/\n│ └── birefnet.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": 18,
|
|
"type": "PreviewImage",
|
|
"pos": [
|
|
-6046.062478322433,
|
|
1940.1805319999396
|
|
],
|
|
"size": [
|
|
225,
|
|
280
|
|
],
|
|
"flags": {},
|
|
"order": 7,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 22
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"Node name for S&R": "PreviewImage",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 20,
|
|
"type": "MaskPreview",
|
|
"pos": [
|
|
-5774.777845953135,
|
|
1941.0306597152894
|
|
],
|
|
"size": [
|
|
225,
|
|
280
|
|
],
|
|
"flags": {},
|
|
"order": 5,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"label": "遮罩",
|
|
"localized_name": "遮罩",
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"link": 23
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"Node name for S&R": "MaskPreview",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 17,
|
|
"type": "LoadImage",
|
|
"pos": [
|
|
-6716.521785193713,
|
|
1934.180571126952
|
|
],
|
|
"size": [
|
|
290,
|
|
340
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "image",
|
|
"type": "COMBO",
|
|
"widget": {
|
|
"name": "image"
|
|
},
|
|
"link": null
|
|
},
|
|
{
|
|
"localized_name": "选择文件上传",
|
|
"name": "upload",
|
|
"type": "IMAGEUPLOAD",
|
|
"widget": {
|
|
"name": "upload"
|
|
},
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"localized_name": "图像",
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
20,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"localized_name": "遮罩",
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LoadImage",
|
|
"enableTabs": false,
|
|
"tabWidth": 65,
|
|
"tabXOffset": 10,
|
|
"hasSecondTab": false,
|
|
"secondTabText": "Send Back",
|
|
"secondTabOffset": 80,
|
|
"secondTabWidth": 65,
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.19.3",
|
|
"ue_properties": {
|
|
"widget_ue_connectable": {},
|
|
"version": "7.8",
|
|
"input_ue_unconnectable": {}
|
|
}
|
|
},
|
|
"widgets_values": [
|
|
"20260425_192628_Z-Image_00001_.png",
|
|
"image"
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
17,
|
|
23,
|
|
0,
|
|
22,
|
|
1,
|
|
"BACKGROUND_REMOVAL"
|
|
],
|
|
[
|
|
18,
|
|
22,
|
|
0,
|
|
24,
|
|
0,
|
|
"MASK"
|
|
],
|
|
[
|
|
19,
|
|
24,
|
|
0,
|
|
25,
|
|
1,
|
|
"MASK"
|
|
],
|
|
[
|
|
20,
|
|
17,
|
|
0,
|
|
22,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
21,
|
|
17,
|
|
0,
|
|
25,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
22,
|
|
25,
|
|
0,
|
|
18,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
23,
|
|
22,
|
|
0,
|
|
20,
|
|
0,
|
|
"MASK"
|
|
]
|
|
],
|
|
"saved_fields": 3,
|
|
"history_objects": 0
|
|
}
|
|
]
|