ComfyUI/user/default/workflows/florence2.json
2025-01-15 15:24:05 +09:00

306 lines
4.9 KiB
JSON

{
"last_node_id": 7,
"last_link_id": 5,
"nodes": [
{
"id": 3,
"type": "DownloadAndLoadFlorence2Model",
"pos": [
-18,
-38
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "lora",
"type": "PEFTLORA",
"link": null
}
],
"outputs": [
{
"name": "florence2_model",
"type": "FL2MODEL",
"links": [
1
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "DownloadAndLoadFlorence2Model"
},
"widgets_values": [
"microsoft/Florence-2-large-ft",
"fp16",
"sdpa"
]
},
{
"id": 7,
"type": "LoadImage",
"pos": [
-358,
151
],
"size": [
315,
314.00000762939453
],
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
5
],
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
},
{
"id": 4,
"type": "PreviewImage",
"pos": [
525,
-115
],
"size": [
210,
246
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 2
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 5,
"type": "MaskPreview+",
"pos": [
756,
-110
],
"size": [
210,
246
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 3
}
],
"properties": {
"Node name for S&R": "MaskPreview+"
}
},
{
"id": 6,
"type": "ShowText|pysssss",
"pos": [
538,
226
],
"size": [
414.2983364275965,
256.7918581637823
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 4,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"",
"A drawing of a girl in a pink dress and yellow hat."
]
},
{
"id": 2,
"type": "Florence2Run",
"pos": [
29,
168
],
"size": {
"0": 400,
"1": 352
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 5
},
{
"name": "florence2_model",
"type": "FL2MODEL",
"link": 1
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
2
],
"slot_index": 0,
"shape": 3
},
{
"name": "mask",
"type": "MASK",
"links": [
3
],
"slot_index": 1,
"shape": 3
},
{
"name": "caption",
"type": "STRING",
"links": [
4
],
"slot_index": 2,
"shape": 3
},
{
"name": "data",
"type": "JSON",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Florence2Run"
},
"widgets_values": [
"",
"caption",
true,
false,
1024,
3,
true,
"",
556947963002640,
"randomize"
]
}
],
"links": [
[
1,
3,
0,
2,
1,
"FL2MODEL"
],
[
2,
2,
0,
4,
0,
"IMAGE"
],
[
3,
2,
1,
5,
0,
"MASK"
],
[
4,
2,
2,
6,
0,
"STRING"
],
[
5,
7,
0,
2,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909091,
"offset": [
418.05653550401644,
224.45296436507226
]
}
},
"version": 0.4
}