Files
rdancer-ComfyUI_Florence2SAM2/workflows/workflow.json
T
Jan Minar 7b191f63cf allow to select device
this should fix the problem of not being able to run the node on Windows
-- just select device: "cpu" in the dropdown
2024-10-04 01:27:36 +01:00

375 lines
6.3 KiB
JSON

{
"last_node_id": 58,
"last_link_id": 60,
"nodes": [
{
"id": 30,
"type": "LoadImage",
"pos": {
"0": 360,
"1": 520
},
"size": {
"0": 278.3598327636719,
"1": 400.1376647949219
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
28
],
"slot_index": 0,
"shape": 3
},
{
"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": 36,
"type": "LoadImage",
"pos": {
"0": 650,
"1": 520
},
"size": {
"0": 278.3598327636719,
"1": 400.1376647949219
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
29
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"Screenshot 2024-09-16 221234.png",
"image"
]
},
{
"id": 31,
"type": "PreviewImage",
"pos": {
"0": 360,
"1": 970
},
"size": {
"0": 471.4238586425781,
"1": 380.51617431640625
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 58
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 51,
"type": "PreviewImage",
"pos": {
"0": 1160,
"1": 970
},
"size": {
"0": 470.9900207519531,
"1": 380.91436767578125
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 57
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 58,
"type": "PreviewImage",
"pos": {
"0": 1160,
"1": 525
},
"size": {
"0": 470.9900207519531,
"1": 380.91436767578125
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 60
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 57,
"type": "MaskToImage",
"pos": {
"0": 860,
"1": 1320
},
"size": {
"0": 264.5999755859375,
"1": 26
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 59
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
60
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "MaskToImage"
},
"widgets_values": []
},
{
"id": 37,
"type": "ImageBatch",
"pos": {
"0": 880,
"1": 1010
},
"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": [
56
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageBatch"
},
"widgets_values": []
},
{
"id": 56,
"type": "RdancerFlorence2SAM2GenerateMask",
"pos": {
"0": 840,
"1": 1120
},
"size": {
"0": 303.60308837890625,
"1": 146
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 56
}
],
"outputs": [
{
"name": "annotated_image",
"type": "IMAGE",
"links": [
58
],
"slot_index": 0,
"shape": 3
},
{
"name": "mask",
"type": "MASK",
"links": [
59
],
"slot_index": 1,
"shape": 3
},
{
"name": "masked_image",
"type": "IMAGE",
"links": [
57
],
"slot_index": 2,
"shape": 3
}
],
"properties": {
"Node name for S&R": "RdancerFlorence2SAM2GenerateMask"
},
"widgets_values": [
"sam2_hiera_small.pt",
"cuda",
"products"
]
}
],
"links": [
[
28,
30,
0,
37,
0,
"IMAGE"
],
[
29,
36,
0,
37,
1,
"IMAGE"
],
[
56,
37,
0,
56,
0,
"IMAGE"
],
[
57,
56,
2,
51,
0,
"IMAGE"
],
[
58,
56,
0,
31,
0,
"IMAGE"
],
[
59,
56,
1,
57,
0,
"MASK"
],
[
60,
57,
0,
58,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.2839025177495011,
"offset": [
-279.5410202465874,
-342.9758340690436
]
}
},
"version": 0.4
}