Files
rdancer-ComfyUI_Florence2SAM2/workflows/workflow.json
T
2024-09-30 02:43:26 +00:00

321 lines
5.3 KiB
JSON

{
"last_node_id": 52,
"last_link_id": 50,
"nodes": [
{
"id": 30,
"type": "LoadImage",
"pos": [
-241,
63
],
"size": {
"0": 278.3598327636719,
"1": 400.1376647949219
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
28
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"Screenshot 2024-09-16 221105.png",
"image"
]
},
{
"id": 32,
"type": "LayerMask: MaskPreview",
"pos": [
553.8103742161225,
63
],
"size": {
"0": 477.1796569824219,
"1": 385.8974914550781
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 49
}
],
"properties": {
"Node name for S&R": "LayerMask: MaskPreview"
},
"color": "rgba(27, 80, 119, 0.7)"
},
{
"id": 52,
"type": "RdancerFlorence2SAM2GenerateMask",
"pos": [
263,
768.9143663249481
],
"size": [
285.0516880999385,
122
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 47
}
],
"outputs": [
{
"name": "annotated_image",
"type": "IMAGE",
"links": [
48
],
"shape": 3,
"slot_index": 0
},
{
"name": "mask",
"type": "MASK",
"links": [
49
],
"shape": 3,
"slot_index": 1
},
{
"name": "masked_image",
"type": "IMAGE",
"links": [
50
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "RdancerFlorence2SAM2GenerateMask"
},
"widgets_values": [
"sam2_hiera_small.pt",
"subject"
]
},
{
"id": 37,
"type": "ImageBatch",
"pos": [
263,
661
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 28
},
{
"name": "image2",
"type": "IMAGE",
"link": 29
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
47
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageBatch"
}
},
{
"id": 51,
"type": "PreviewImage",
"pos": [
560,
510
],
"size": [
470.99003119854433,
380.9143663249481
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 50
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 31,
"type": "PreviewImage",
"pos": [
-241,
510
],
"size": {
"0": 471.4238586425781,
"1": 380.51617431640625
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 48
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 36,
"type": "LoadImage",
"pos": [
49,
63
],
"size": {
"0": 278.3598327636719,
"1": 400.1376647949219
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
29
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"Screenshot 2024-09-16 221234.png",
"image"
]
}
],
"links": [
[
28,
30,
0,
37,
0,
"IMAGE"
],
[
29,
36,
0,
37,
1,
"IMAGE"
],
[
47,
37,
0,
52,
0,
"IMAGE"
],
[
48,
52,
0,
31,
0,
"IMAGE"
],
[
49,
52,
1,
32,
0,
"MASK"
],
[
50,
52,
2,
51,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.6350799082655874,
"offset": {
"0": 364.35376673177916,
"1": 70.73247236995553
}
}
},
"version": 0.4
}