Files
fengwk-ComfyUI-UniversalRemove/example_workflows/Universal Remove - Interactive Region Editor.json
2026-07-04 13:38:50 +08:00

724 lines
13 KiB
JSON

{
"revision": 0,
"last_node_id": 9,
"last_link_id": 12,
"nodes": [
{
"id": 1,
"type": "UR Demo Image",
"pos": [
-980,
260
],
"size": [
400,
480
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": null
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": null
},
{
"name": "batch_size",
"type": "INT",
"widget": {
"name": "batch_size"
},
"link": null
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
1,
4
]
}
],
"properties": {
"Node name for S&R": "UR Demo Image"
},
"widgets_values": [
768,
512,
1
]
},
{
"id": 2,
"type": "UR Regions To Mask Batch",
"pos": [
-460,
230
],
"size": [
360,
320
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 1
},
{
"name": "regions_json",
"type": "STRING",
"widget": {
"name": "regions_json"
},
"link": 12
},
{
"name": "default_frame_index",
"type": "INT",
"widget": {
"name": "default_frame_index"
},
"link": null
},
{
"name": "broadcast_mode",
"type": "COMBO",
"widget": {
"name": "broadcast_mode"
},
"link": null
},
{
"name": "normalized",
"type": "BOOLEAN",
"widget": {
"name": "normalized"
},
"link": null
},
{
"name": "preview_frame",
"type": "INT",
"widget": {
"name": "preview_frame"
},
"link": null
},
{
"name": "preview_color",
"type": "STRING",
"widget": {
"name": "preview_color"
},
"link": null
},
{
"name": "preview_opacity",
"type": "FLOAT",
"widget": {
"name": "preview_opacity"
},
"link": null
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": [
2
]
},
{
"name": "selected_frame",
"type": "IMAGE",
"links": [
3
]
},
{
"name": "preview",
"type": "IMAGE",
"links": null
}
],
"properties": {
"Node name for S&R": "UR Regions To Mask Batch"
},
"widgets_values": [
"[{\"type\":\"rect\",\"frame_index\":0,\"x\":160,\"y\":120,\"w\":260,\"h\":140},{\"type\":\"circle\",\"frame_index\":0,\"cx\":520,\"cy\":250,\"r\":70}]",
0,
"repeat_to_batch",
false,
0,
"#FF3B30",
0.35
]
},
{
"id": 3,
"type": "UR Mask Processor",
"pos": [
-10,
230
],
"size": [
330,
260
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 2
},
{
"name": "expand_pixels",
"type": "INT",
"widget": {
"name": "expand_pixels"
},
"link": null
},
{
"name": "blur_sigma",
"type": "FLOAT",
"widget": {
"name": "blur_sigma"
},
"link": null
},
{
"name": "blur_kernel",
"type": "INT",
"widget": {
"name": "blur_kernel"
},
"link": null
},
{
"name": "preview_color",
"type": "STRING",
"widget": {
"name": "preview_color"
},
"link": null
},
{
"name": "preview_opacity",
"type": "FLOAT",
"widget": {
"name": "preview_opacity"
},
"link": null
},
{
"name": "image",
"type": "IMAGE",
"link": 3
}
],
"outputs": [
{
"name": "mask",
"type": "MASK",
"links": [
5,
7
]
},
{
"name": "mask_image",
"type": "IMAGE",
"links": null
},
{
"name": "preview",
"type": "IMAGE",
"links": [
11
]
}
],
"properties": {
"Node name for S&R": "UR Mask Processor"
},
"widgets_values": [
16,
4.0,
0,
"#00FF00",
0.35
]
},
{
"id": 4,
"type": "UR Keyframe Prep",
"pos": [
400,
230
],
"size": [
340,
250
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 4
},
{
"name": "mask",
"type": "MASK",
"link": 5
},
{
"name": "frame_index",
"type": "INT",
"widget": {
"name": "frame_index"
},
"link": null
},
{
"name": "fill_color",
"type": "STRING",
"widget": {
"name": "fill_color"
},
"link": null
},
{
"name": "resize_longest_side",
"type": "INT",
"widget": {
"name": "resize_longest_side"
},
"link": null
},
{
"name": "pad_to_multiple",
"type": "INT",
"widget": {
"name": "pad_to_multiple"
},
"link": null
}
],
"outputs": [
{
"name": "original_frame",
"type": "IMAGE",
"links": [
6
]
},
{
"name": "prepared_frame",
"type": "IMAGE",
"links": null
},
{
"name": "prepared_mask",
"type": "MASK",
"links": null
},
{
"name": "filled_frame",
"type": "IMAGE",
"links": [
8,
9
]
},
{
"name": "prepared_width",
"type": "INT",
"links": null
},
{
"name": "prepared_height",
"type": "INT",
"links": null
},
{
"name": "frame_count",
"type": "INT",
"links": null
}
],
"properties": {
"Node name for S&R": "UR Keyframe Prep"
},
"widgets_values": [
0,
"#00FF00",
0,
16
]
},
{
"id": 5,
"type": "UR Soft Composite",
"pos": [
840,
230
],
"size": [
300,
160
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "inpaint",
"type": "IMAGE",
"link": 8
},
{
"name": "original",
"type": "IMAGE",
"link": 6
},
{
"name": "mask",
"type": "MASK",
"link": 7
},
{
"name": "kernel",
"type": "INT",
"widget": {
"name": "kernel"
},
"link": null
},
{
"name": "sigma",
"type": "FLOAT",
"widget": {
"name": "sigma"
},
"link": null
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
10
]
},
{
"name": "soft_mask",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "UR Soft Composite"
},
"widgets_values": [
25,
10.0
]
},
{
"id": 6,
"type": "PreviewImage",
"pos": [
300,
620
],
"size": [
320,
260
],
"flags": {},
"order": 6,
"mode": 4,
"inputs": [
{
"localized_name": "images",
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 7,
"type": "PreviewImage",
"pos": [
700,
620
],
"size": [
320,
260
],
"flags": {},
"order": 7,
"mode": 4,
"inputs": [
{
"localized_name": "images",
"name": "images",
"type": "IMAGE",
"link": 10
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 8,
"type": "PreviewImage",
"pos": [
-40,
620
],
"size": [
320,
260
],
"flags": {},
"order": 8,
"mode": 4,
"inputs": [
{
"localized_name": "images",
"name": "images",
"type": "IMAGE",
"link": 11
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 9,
"type": "UR Region Editor",
"pos": [
-900,
-250
],
"size": [
680,
680
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "regions_json",
"type": "STRING",
"widget": {
"name": "regions_json"
},
"link": null
},
{
"name": "canvas_width",
"type": "INT",
"widget": {
"name": "canvas_width"
},
"link": null
},
{
"name": "canvas_height",
"type": "INT",
"widget": {
"name": "canvas_height"
},
"link": null
},
{
"name": "default_frame_index",
"type": "INT",
"widget": {
"name": "default_frame_index"
},
"link": null
}
],
"outputs": [
{
"name": "regions_json",
"type": "STRING",
"links": [
12
]
},
{
"name": "canvas_width",
"type": "INT",
"links": null
},
{
"name": "canvas_height",
"type": "INT",
"links": null
},
{
"name": "region_count",
"type": "INT",
"links": null
}
],
"properties": {
"Node name for S&R": "UR Region Editor"
},
"widgets_values": [
"[{\"type\":\"rect\",\"frame_index\":0,\"x\":160,\"y\":120,\"w\":260,\"h\":140},{\"type\":\"circle\",\"frame_index\":0,\"cx\":520,\"cy\":250,\"r\":70}]",
768,
512,
0
]
}
],
"links": [
[
1,
1,
0,
2,
0,
"IMAGE"
],
[
2,
2,
0,
3,
0,
"MASK"
],
[
3,
2,
1,
3,
6,
"IMAGE"
],
[
4,
1,
0,
4,
0,
"IMAGE"
],
[
5,
3,
0,
4,
1,
"MASK"
],
[
6,
4,
0,
5,
1,
"IMAGE"
],
[
7,
3,
0,
5,
2,
"MASK"
],
[
8,
4,
3,
5,
0,
"IMAGE"
],
[
9,
4,
3,
6,
0,
"IMAGE"
],
[
10,
5,
0,
7,
0,
"IMAGE"
],
[
11,
3,
2,
8,
0,
"IMAGE"
],
[
12,
9,
0,
2,
1,
"STRING"
]
],
"version": 0.4
}