Files
chflame163-ComfyUI_LayerSty…/workflow/florence2_image2prompt_example.json
2024-12-05 17:18:52 +08:00

212 lines
3.9 KiB
JSON

{
"last_node_id": 17,
"last_link_id": 13,
"nodes": [
{
"id": 3,
"type": "LoadImage",
"pos": [
492,
822
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
6
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"fox_512x512.png",
"image"
]
},
{
"id": 2,
"type": "LayerMask: LoadFlorence2Model",
"pos": [
493,
675
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "florence2_model",
"type": "FLORENCE2",
"links": [
5
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LayerMask: LoadFlorence2Model"
},
"widgets_values": [
"base"
]
},
{
"id": 10,
"type": "LayerUtility: Florence2Image2Prompt",
"pos": [
918,
813
],
"size": {
"0": 367.79998779296875,
"1": 198
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "florence2_model",
"type": "FLORENCE2",
"link": 5
},
{
"name": "image",
"type": "IMAGE",
"link": 6
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
7
],
"shape": 3,
"slot_index": 0
},
{
"name": "preview_image",
"type": "IMAGE",
"links": null,
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LayerUtility: Florence2Image2Prompt"
},
"widgets_values": [
"more detailed caption",
"",
1024,
3,
false,
false
]
},
{
"id": 11,
"type": "ShowText|pysssss",
"pos": [
1385,
810
],
"size": {
"0": 398.0003662109375,
"1": 162.19183349609375
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 7,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"",
"The image is a digital illustration of a small fox sitting inside a glass jar. The jar is placed on a snow-covered ground with trees in the background. The fox is looking directly at the camera with its ears perked up and its eyes wide open. The sky is filled with orange and pink hues, indicating that it is either sunrise or sunset. The overall mood of the image is peaceful and serene."
]
}
],
"links": [
[
5,
2,
0,
10,
0,
"FLORENCE2"
],
[
6,
3,
0,
10,
1,
"IMAGE"
],
[
7,
10,
0,
11,
0,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
122.666748046875,
-282.333251953125
]
}
},
"version": 0.4
}