diff --git a/workflow/1280x720_seven_person.jpg b/workflow/1280x720_seven_person.jpg new file mode 100644 index 0000000..29ac5f6 Binary files /dev/null and b/workflow/1280x720_seven_person.jpg differ diff --git a/workflow/1280x720car.jpg b/workflow/1280x720car.jpg new file mode 100644 index 0000000..7b6f140 Binary files /dev/null and b/workflow/1280x720car.jpg differ diff --git a/workflow/1280x768_city.png b/workflow/1280x768_city.png new file mode 100644 index 0000000..0dd87fe Binary files /dev/null and b/workflow/1280x768_city.png differ diff --git a/workflow/1344x768_beach.png b/workflow/1344x768_beach.png new file mode 100644 index 0000000..cdc1b69 Binary files /dev/null and b/workflow/1344x768_beach.png differ diff --git a/workflow/1344x768_girl2.png b/workflow/1344x768_girl2.png new file mode 100644 index 0000000..c9f70cf Binary files /dev/null and b/workflow/1344x768_girl2.png differ diff --git a/workflow/1344x768_hair.png b/workflow/1344x768_hair.png new file mode 100644 index 0000000..48a9d93 Binary files /dev/null and b/workflow/1344x768_hair.png differ diff --git a/workflow/1344x768_redcar.png b/workflow/1344x768_redcar.png new file mode 100644 index 0000000..8352809 Binary files /dev/null and b/workflow/1344x768_redcar.png differ diff --git a/workflow/1920x1080table.png b/workflow/1920x1080table.png new file mode 100644 index 0000000..3d69c1b Binary files /dev/null and b/workflow/1920x1080table.png differ diff --git a/workflow/3840x2160car.jpg b/workflow/3840x2160car.jpg new file mode 100644 index 0000000..1680966 Binary files /dev/null and b/workflow/3840x2160car.jpg differ diff --git a/workflow/512x512.png b/workflow/512x512.png new file mode 100644 index 0000000..334b79b Binary files /dev/null and b/workflow/512x512.png differ diff --git a/workflow/512x512bkgd.jpg b/workflow/512x512bkgd.jpg new file mode 100644 index 0000000..3003d5b Binary files /dev/null and b/workflow/512x512bkgd.jpg differ diff --git a/workflow/768x1344_beach.png b/workflow/768x1344_beach.png new file mode 100644 index 0000000..1a7449a Binary files /dev/null and b/workflow/768x1344_beach.png differ diff --git a/workflow/768x1344_dress.png b/workflow/768x1344_dress.png new file mode 100644 index 0000000..2714ce4 Binary files /dev/null and b/workflow/768x1344_dress.png differ diff --git a/workflow/draw_bbox_mask_example.json b/workflow/draw_bbox_mask_example.json new file mode 100644 index 0000000..84e7d80 --- /dev/null +++ b/workflow/draw_bbox_mask_example.json @@ -0,0 +1,254 @@ +{ + "last_node_id": 7, + "last_link_id": 9, + "nodes": [ + { + "id": 6, + "type": "LayerMask: MaskPreview", + "pos": { + "0": 1565, + "1": 613 + }, + "size": { + "0": 418.7713623046875, + "1": 262.1222839355469 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 9 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "LayerMask: MaskPreview" + }, + "color": "rgba(27, 80, 119, 0.7)" + }, + { + "id": 4, + "type": "PreviewImage", + "pos": { + "0": 1566, + "1": 266 + }, + "size": { + "0": 419.104736328125, + "1": 266.4555969238281 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 3 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 2, + "type": "LoadImage", + "pos": { + "0": 647, + "1": 335 + }, + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 1, + 7 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "1280x720_seven_person.jpg", + "image" + ] + }, + { + "id": 1, + "type": "LayerMask: ObjectDetectorYOLO8", + "pos": { + "0": 1079, + "1": 353 + }, + "size": { + "0": 403.1999816894531, + "1": 150 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 1 + } + ], + "outputs": [ + { + "name": "bboxes", + "type": "BBOXES", + "links": [ + 8 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "preview", + "type": "IMAGE", + "links": [ + 3 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: ObjectDetectorYOLO8" + }, + "widgets_values": [ + "face_yolov8m.pt", + "left_to_right", + "all", + "0," + ], + "color": "rgba(27, 80, 119, 0.7)" + }, + { + "id": 7, + "type": "LayerMask: DrawBBoxMask", + "pos": { + "0": 1162, + "1": 639 + }, + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 7 + }, + { + "name": "bboxes", + "type": "BBOXES", + "link": 8 + } + ], + "outputs": [ + { + "name": "mask", + "type": "MASK", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerMask: DrawBBoxMask" + }, + "widgets_values": [ + 0, + 0, + 0, + 0 + ], + "color": "rgba(27, 80, 119, 0.7)" + } + ], + "links": [ + [ + 1, + 2, + 0, + 1, + 0, + "IMAGE" + ], + [ + 3, + 1, + 1, + 4, + 0, + "IMAGE" + ], + [ + 7, + 2, + 0, + 7, + 0, + "IMAGE" + ], + [ + 8, + 1, + 0, + 7, + 1, + "BBOXES" + ], + [ + 9, + 7, + 0, + 6, + 0, + "MASK" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.9090909090909091, + "offset": [ + -138.43798978876296, + 6.211081755825312 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/florence2_image2prompt_example.json b/workflow/florence2_image2prompt_example.json new file mode 100644 index 0000000..8a3157c --- /dev/null +++ b/workflow/florence2_image2prompt_example.json @@ -0,0 +1,212 @@ +{ + "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 +} \ No newline at end of file diff --git a/workflow/florence2_ultra_example.json b/workflow/florence2_ultra_example.json new file mode 100644 index 0000000..c207c0a --- /dev/null +++ b/workflow/florence2_ultra_example.json @@ -0,0 +1,236 @@ +{ + "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": [ + 9 + ], + "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": [ + 8 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerMask: LoadFlorence2Model" + }, + "widgets_values": [ + "base" + ] + }, + { + "id": 17, + "type": "PreviewImage", + "pos": [ + 1450, + 552 + ], + "size": [ + 322.666748046875, + 327.66668701171875 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 13 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 16, + "type": "LayerMask: MaskPreview", + "pos": [ + 1456, + 934 + ], + "size": [ + 319.666748046875, + 349.3333740234375 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 12 + } + ], + "properties": { + "Node name for S&R": "LayerMask: MaskPreview" + } + }, + { + "id": 13, + "type": "LayerMask: Florence2Ultra", + "pos": [ + 975, + 761 + ], + "size": { + "0": 315, + "1": 294 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "florence2_model", + "type": "FLORENCE2", + "link": 8 + }, + { + "name": "image", + "type": "IMAGE", + "link": 9 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 13 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "mask", + "type": "MASK", + "links": [ + 12 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayerMask: Florence2Ultra" + }, + "widgets_values": [ + "referring expression segmentation", + "glass bottle", + "VITMatte", + 36, + 6, + 0.01, + 0.99, + true, + "cuda", + 2 + ] + } + ], + "links": [ + [ + 8, + 2, + 0, + 13, + 0, + "FLORENCE2" + ], + [ + 9, + 3, + 0, + 13, + 1, + "IMAGE" + ], + [ + 12, + 13, + 1, + 16, + 0, + "MASK" + ], + [ + 13, + 13, + 0, + 17, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1, + "offset": [ + -109.3333740234375, + -293.66668701171875 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/fox_512x512.png b/workflow/fox_512x512.png new file mode 100644 index 0000000..d907bf7 Binary files /dev/null and b/workflow/fox_512x512.png differ diff --git a/workflow/get_color_tone_v2_example.json b/workflow/get_color_tone_v2_example.json new file mode 100644 index 0000000..0b5a932 --- /dev/null +++ b/workflow/get_color_tone_v2_example.json @@ -0,0 +1,254 @@ +{ + "last_node_id": 46, + "last_link_id": 62, + "nodes": [ + { + "id": 27, + "type": "LoadImage", + "pos": [ + 608, + 668 + ], + "size": { + "0": 315, + "1": 314.0000305175781 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 59, + 61 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "1344x768_redcar.png", + "image" + ] + }, + { + "id": 45, + "type": "LayerUtility: GetColorToneV2", + "pos": [ + 1034, + 523 + ], + "size": { + "0": 315, + "1": 194 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 59 + }, + { + "name": "mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 60 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "color_in_hex", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "HSV color in list", + "type": "LIST", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: GetColorToneV2" + }, + "widgets_values": [ + "main_color", + "background", + "BiRefNet", + false, + 16 + ] + }, + { + "id": 46, + "type": "LayerUtility: GetColorToneV2", + "pos": [ + 1039, + 819 + ], + "size": { + "0": 315, + "1": 194 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 61 + }, + { + "name": "mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 62 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "color_in_hex", + "type": "STRING", + "links": null, + "shape": 3 + }, + { + "name": "HSV color in list", + "type": "LIST", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: GetColorToneV2" + }, + "widgets_values": [ + "main_color", + "subject", + "BiRefNet", + false, + 100 + ] + }, + { + "id": 31, + "type": "PreviewImage", + "pos": [ + 1455, + 490 + ], + "size": { + "0": 323.675048828125, + "1": 246 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 60 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 43, + "type": "PreviewImage", + "pos": [ + 1457, + 803 + ], + "size": { + "0": 327.5317687988281, + "1": 246 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 62 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 59, + 27, + 0, + 45, + 0, + "IMAGE" + ], + [ + 60, + 45, + 0, + 31, + 0, + "IMAGE" + ], + [ + 61, + 27, + 0, + 46, + 0, + "IMAGE" + ], + [ + 62, + 46, + 0, + 43, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/get_main_color_and_color_name_example.json b/workflow/get_main_color_and_color_name_example.json new file mode 100644 index 0000000..90f46b1 --- /dev/null +++ b/workflow/get_main_color_and_color_name_example.json @@ -0,0 +1,488 @@ +{ + "last_node_id": 41, + "last_link_id": 61, + "nodes": [ + { + "id": 17, + "type": "LayerUtility: GetMainColors", + "pos": { + "0": 660, + "1": 320 + }, + "size": { + "0": 311.9536437988281, + "1": 158 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 28 + } + ], + "outputs": [ + { + "name": "preview_image", + "type": "IMAGE", + "links": [ + 46 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "color_1", + "type": "STRING", + "links": [], + "slot_index": 1, + "shape": 3 + }, + { + "name": "color_2", + "type": "STRING", + "links": [ + 48, + 55 + ], + "slot_index": 2, + "shape": 3 + }, + { + "name": "color_3", + "type": "STRING", + "links": [], + "slot_index": 3, + "shape": 3 + }, + { + "name": "color_4", + "type": "STRING", + "links": [], + "slot_index": 4, + "shape": 3 + }, + { + "name": "color_5", + "type": "STRING", + "links": [], + "slot_index": 5, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: GetMainColors" + }, + "widgets_values": [ + "lloyd" + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 38, + "type": "LayerUtility: SimpleTextImage", + "pos": { + "0": 1400, + "1": 490 + }, + "size": [ + 333.2885159321711, + 364.1828329417617 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "size_as", + "type": "*", + "link": 53 + }, + { + "name": "text", + "type": "STRING", + "link": 54, + "widget": { + "name": "text" + } + }, + { + "name": "text_color", + "type": "STRING", + "link": 55, + "widget": { + "name": "text_color" + } + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 60 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "mask", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: SimpleTextImage" + }, + "widgets_values": [ + "text", + "Alibaba-PuHuiTi-Heavy.ttf", + "center", + 80, + 8, + 400, + "#FFFFFF", + 0, + "#FF8000", + 0, + 0, + 512, + 512 + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 40, + "type": "PreviewImage", + "pos": { + "0": 2160, + "1": 410 + }, + "size": [ + 697.0121532340336, + 405.5093656051548 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 61 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 12, + "type": "LoadImage", + "pos": { + "0": 240, + "1": 420 + }, + "size": [ + 369.854603490381, + 334.3001040695102 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 28, + 53, + 59 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "3840x2160car.jpg", + "image" + ] + }, + { + "id": 37, + "type": "PreviewImage", + "pos": { + "0": 660, + "1": 530 + }, + "size": [ + 313.2302664167988, + 331.1310906195131 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 46 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 41, + "type": "LayerStyle: DropShadow V2", + "pos": { + "0": 1780, + "1": 490 + }, + "size": { + "0": 315, + "1": 266 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "background_image", + "type": "IMAGE", + "link": 59 + }, + { + "name": "layer_image", + "type": "IMAGE", + "link": 60 + }, + { + "name": "layer_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 61 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerStyle: DropShadow V2" + }, + "widgets_values": [ + true, + "normal", + 50, + 25, + 25, + 6, + 18, + "#000000" + ], + "color": "rgba(20, 95, 121, 0.7)" + }, + { + "id": 30, + "type": "ShowText|pysssss", + "pos": { + "0": 1410, + "1": 350 + }, + "size": [ + 320.67863272622117, + 76 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 35, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "bubblegum pink" + ] + }, + { + "id": 25, + "type": "LayerUtility: ColorName", + "pos": { + "0": 1026, + "1": 354 + }, + "size": { + "0": 315, + "1": 82 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "color", + "type": "STRING", + "link": 48, + "widget": { + "name": "color" + } + } + ], + "outputs": [ + { + "name": "color_name", + "type": "STRING", + "links": [ + 35, + 54 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: ColorName" + }, + "widgets_values": [ + "#000000", + "xkcd" + ], + "color": "rgba(38, 73, 116, 0.7)" + } + ], + "links": [ + [ + 28, + 12, + 0, + 17, + 0, + "IMAGE" + ], + [ + 35, + 25, + 0, + 30, + 0, + "STRING" + ], + [ + 46, + 17, + 0, + 37, + 0, + "IMAGE" + ], + [ + 48, + 17, + 2, + 25, + 0, + "STRING" + ], + [ + 53, + 12, + 0, + 38, + 0, + "*" + ], + [ + 54, + 25, + 0, + 38, + 1, + "STRING" + ], + [ + 55, + 17, + 2, + 38, + 2, + "STRING" + ], + [ + 59, + 12, + 0, + 41, + 0, + "IMAGE" + ], + [ + 60, + 38, + 0, + 41, + 1, + "IMAGE" + ], + [ + 61, + 41, + 0, + 40, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.6830134553650709, + "offset": [ + 91.9153139552357, + 304.8849710151086 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/girl_dino_1024.png b/workflow/girl_dino_1024.png new file mode 100644 index 0000000..d41ef00 Binary files /dev/null and b/workflow/girl_dino_1024.png differ diff --git a/workflow/image_reward_filter_example.json b/workflow/image_reward_filter_example.json new file mode 100644 index 0000000..62ba280 --- /dev/null +++ b/workflow/image_reward_filter_example.json @@ -0,0 +1,498 @@ +{ + "last_node_id": 13, + "last_link_id": 13, + "nodes": [ + { + "id": 11, + "type": "LayerUtility: ImageRewardFilter", + "pos": [ + 1030, + 430 + ], + "size": { + "0": 315, + "1": 102 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 11 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": [ + 12 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "obsolete_images", + "type": "IMAGE", + "links": [ + 13 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: ImageRewardFilter" + }, + "widgets_values": [ + "", + 3 + ] + }, + { + "id": 12, + "type": "PreviewImage", + "pos": [ + 1440, + 130 + ], + "size": [ + 387.3799743652344, + 397.1624450683594 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 12 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 10, + "type": "workflow/default workflow", + "pos": [ + 520, + 400 + ], + "size": { + "0": 400, + "1": 390 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 11 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "workflow/default workflow" + }, + "widgets_values": [ + "SDXL\\sd_xl_base_1.0_0.9vae.safetensors", + 512, + 512, + 9, + " beauty girl,", + "text, watermark", + 600907135018167, + "randomize", + 25, + 8, + "euler", + "normal", + 1 + ] + }, + { + "id": 13, + "type": "PreviewImage", + "pos": [ + 1440, + 575 + ], + "size": [ + 381.0467224121094, + 392.1624450683594 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 13 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 11, + 10, + 0, + 11, + 0, + "IMAGE" + ], + [ + 12, + 11, + 0, + 12, + 0, + "IMAGE" + ], + [ + 13, + 11, + 1, + 13, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "groupNodes": { + "default workflow": { + "nodes": [ + { + "type": "CheckpointLoaderSimple", + "pos": [ + 18, + 255 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "SDXL\\juggernautXL_v9Rundiffusionphoto2.safetensors" + ], + "index": 0 + }, + { + "type": "EmptyLatentImage", + "pos": [ + 473, + 609 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 512, + 512, + 9 + ], + "index": 1 + }, + { + "type": "CLIPTextEncode", + "pos": [ + 415, + 186 + ], + "size": { + "0": 422.84503173828125, + "1": 164.31304931640625 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": null + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "beautiful scenery nature glass bottle landscape, , purple galaxy bottle," + ], + "index": 2 + }, + { + "type": "CLIPTextEncode", + "pos": [ + 413, + 389 + ], + "size": { + "0": 425.27801513671875, + "1": 180.6060791015625 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": null + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "text, watermark" + ], + "index": 3 + }, + { + "type": "KSampler", + "pos": [ + 863, + 186 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": null + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": null + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": null + }, + { + "name": "latent_image", + "type": "LATENT", + "link": null + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 156680208700286, + "randomize", + 20, + 8, + "euler", + "normal", + 1 + ], + "index": 4 + }, + { + "type": "VAEDecode", + "pos": [ + 1209, + 188 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": null + }, + { + "name": "vae", + "type": "VAE", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + }, + "index": 5 + } + ], + "links": [ + [ + 0, + 1, + 2, + 0, + 4, + "CLIP" + ], + [ + 0, + 1, + 3, + 0, + 4, + "CLIP" + ], + [ + 0, + 0, + 4, + 0, + 4, + "MODEL" + ], + [ + 2, + 0, + 4, + 1, + 6, + "CONDITIONING" + ], + [ + 3, + 0, + 4, + 2, + 7, + "CONDITIONING" + ], + [ + 1, + 0, + 4, + 3, + 5, + "LATENT" + ], + [ + 4, + 0, + 5, + 0, + 3, + "LATENT" + ], + [ + 0, + 2, + 5, + 1, + 4, + "VAE" + ] + ], + "external": [ + [ + 5, + 0, + "IMAGE" + ] + ] + } + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/joycaption2_example.json b/workflow/joycaption2_example.json new file mode 100644 index 0000000..cdcacb7 --- /dev/null +++ b/workflow/joycaption2_example.json @@ -0,0 +1,228 @@ +{ + "last_node_id": 16, + "last_link_id": 26, + "nodes": [ + { + "id": 15, + "type": "ShowText|pysssss", + "pos": { + "0": 1343, + "1": 475 + }, + "size": { + "0": 505.7555847167969, + "1": 384.9247131347656 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 26, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "Huluwa, a young girl with a radiant smile, sits atop a vibrant green Tyrannosaurus Rex, surrounded by the lush foliage of a dense jungle. The warm, golden light of the early morning sun filters through the canopy above, casting dappled shadows on the forest floor. In this idyllic scene, Huluwa appears carefree, her eyes shining with excitement as she gazes out at the camera.\n\nThe camera, positioned at a slight angle, captures the dynamic interaction between Huluwa and the T-Rex, emphasizing their symbiotic relationship. The composition of the image is guided by the rule of thirds, with the T-Rex's massive head positioned along the top third line, and Huluwa situated along the bottom third line, creating a sense of balance and harmony.\n\nAs the camera pans across the jungle, the viewer's attention is drawn to the intricate details of the foliage, from the delicate fronds of the tropical plants to the towering trunks of the ancient trees. The use of leading lines, in the form of the winding jungle path, adds depth and visual interest to the image, drawing the viewer's eye into the heart of the jungle.\n\nIn this captivating scene, Huluwa's bright orange t-shirt and blue shorts provide a pop of color against the lush greenery, while the T-Rex's vibrant green and orange scales seem to come alive in the soft, diffused light. The overall effect is one of enchantment and wonder, as if the" + ] + }, + { + "id": 3, + "type": "LoadImage", + "pos": { + "0": 141, + "1": 461 + }, + "size": { + "0": 633.7820434570312, + "1": 491.7446594238281 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 24 + ], + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "girl_dino_1024.png", + "image" + ] + }, + { + "id": 13, + "type": "LayerUtility: JoyCaption2ExtraOptions", + "pos": { + "0": 844, + "1": 868 + }, + "size": { + "0": 426.57257080078125, + "1": 466 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "extra_option", + "type": "JoyCaption2ExtraOption", + "links": [ + 25 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: JoyCaption2ExtraOptions" + }, + "widgets_values": [ + true, + false, + true, + true, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + "Huluwa" + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 16, + "type": "LayerUtility: JoyCaption2", + "pos": { + "0": 850, + "1": 459 + }, + "size": [ + 407.4161570409117, + 333.63231036410366 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 24 + }, + { + "name": "extra_options", + "type": "JoyCaption2ExtraOption", + "link": 25 + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 26 + ], + "shape": 6, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: JoyCaption2" + }, + "widgets_values": [ + "Orenguteng/Llama-3.1-8B-Lexi-Uncensored-V2", + "cuda", + "nf4", + "text_model", + "Descriptive", + "any", + "", + 300, + 0.9, + 0.6, + false + ], + "color": "rgba(38, 73, 116, 0.7)" + } + ], + "links": [ + [ + 24, + 3, + 0, + 16, + 0, + "IMAGE" + ], + [ + 25, + 13, + 0, + 16, + 1, + "JoyCaption2ExtraOption" + ], + [ + 26, + 16, + 0, + 15, + 0, + "STRING" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.683013455365071, + "offset": [ + 117.4235173548397, + -35.459722936583276 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/lama_example.json b/workflow/lama_example.json new file mode 100644 index 0000000..edfd303 --- /dev/null +++ b/workflow/lama_example.json @@ -0,0 +1,788 @@ +{ + "last_node_id": 35, + "last_link_id": 71, + "nodes": [ + { + "id": 15, + "type": "PreviewImage", + "pos": [ + 1680, + 650 + ], + "size": { + "0": 295.9647216796875, + "1": 320.621337890625 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 23 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 29, + "type": "PreviewImage", + "pos": [ + 1680, + 1040 + ], + "size": { + "0": 295.9647216796875, + "1": 320.621337890625 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 62 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 8, + "type": "PreviewImage", + "pos": [ + 1680, + 230 + ], + "size": { + "0": 299.51416015625, + "1": 327.3353271484375 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 8 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 31, + "type": "PreviewImage", + "pos": [ + 2410, + 240 + ], + "size": { + "0": 299.51416015625, + "1": 327.3353271484375 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 65 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 33, + "type": "PreviewImage", + "pos": [ + 2410, + 630 + ], + "size": { + "0": 299.51416015625, + "1": 327.3353271484375 + }, + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 68 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 35, + "type": "PreviewImage", + "pos": [ + 2420, + 1020 + ], + "size": { + "0": 299.51416015625, + "1": 327.3353271484375 + }, + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 71 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 25, + "type": "Reroute", + "pos": [ + 1132, + 727 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 54 + } + ], + "outputs": [ + { + "name": "", + "type": "MASK", + "links": [ + 58, + 59, + 61, + 64, + 67, + 70 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 27, + "type": "Reroute", + "pos": [ + 1129, + 439 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 55 + } + ], + "outputs": [ + { + "name": "", + "type": "IMAGE", + "links": [ + 56, + 57, + 60, + 63, + 66, + 69 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 24, + "type": "LayerMask: RemBgUltra", + "pos": [ + 785, + 772 + ], + "size": { + "0": 315, + "1": 150 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 36 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": null, + "shape": 3 + }, + { + "name": "mask", + "type": "MASK", + "links": [ + 54 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayerMask: RemBgUltra" + }, + "widgets_values": [ + 8, + 0.01, + 0.99, + false + ] + }, + { + "id": 2, + "type": "LoadImage", + "pos": [ + 431, + 439 + ], + "size": { + "0": 323.62158203125, + "1": 420.20391845703125 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 36, + 55 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "512x512with_background (24).png", + "image" + ] + }, + { + "id": 7, + "type": "LayerUtility: LaMa", + "pos": [ + 1300, + 320 + ], + "size": { + "0": 315, + "1": 174 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 56 + }, + { + "name": "mask", + "type": "MASK", + "link": 58 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 8 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: LaMa" + }, + "widgets_values": [ + "lama", + "cuda", + false, + 25, + 6 + ] + }, + { + "id": 14, + "type": "LayerUtility: LaMa", + "pos": [ + 1300, + 710 + ], + "size": { + "0": 315, + "1": 174 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 57 + }, + { + "name": "mask", + "type": "MASK", + "link": 59 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 23 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: LaMa" + }, + "widgets_values": [ + "ldm", + "cuda", + false, + 25, + 6 + ] + }, + { + "id": 28, + "type": "LayerUtility: LaMa", + "pos": [ + 1290, + 1030 + ], + "size": { + "0": 315, + "1": 174 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 60 + }, + { + "name": "mask", + "type": "MASK", + "link": 61 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 62 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: LaMa" + }, + "widgets_values": [ + "zits", + "cuda", + false, + 25, + 6 + ] + }, + { + "id": 30, + "type": "LayerUtility: LaMa", + "pos": [ + 2036, + 314 + ], + "size": { + "0": 315, + "1": 174 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 63 + }, + { + "name": "mask", + "type": "MASK", + "link": 64 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 65 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: LaMa" + }, + "widgets_values": [ + "mat", + "cuda", + false, + 25, + 6 + ] + }, + { + "id": 32, + "type": "LayerUtility: LaMa", + "pos": [ + 2037, + 724 + ], + "size": { + "0": 315, + "1": 174 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 66 + }, + { + "name": "mask", + "type": "MASK", + "link": 67 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 68 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: LaMa" + }, + "widgets_values": [ + "fcf", + "cuda", + false, + 25, + 6 + ] + }, + { + "id": 34, + "type": "LayerUtility: LaMa", + "pos": [ + 2043, + 1042 + ], + "size": { + "0": 315, + "1": 174 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 69 + }, + { + "name": "mask", + "type": "MASK", + "link": 70 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 71 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: LaMa" + }, + "widgets_values": [ + "spread", + "cuda", + false, + 25, + 6 + ] + } + ], + "links": [ + [ + 8, + 7, + 0, + 8, + 0, + "IMAGE" + ], + [ + 23, + 14, + 0, + 15, + 0, + "IMAGE" + ], + [ + 36, + 2, + 0, + 24, + 0, + "IMAGE" + ], + [ + 54, + 24, + 1, + 25, + 0, + "*" + ], + [ + 55, + 2, + 0, + 27, + 0, + "*" + ], + [ + 56, + 27, + 0, + 7, + 0, + "IMAGE" + ], + [ + 57, + 27, + 0, + 14, + 0, + "IMAGE" + ], + [ + 58, + 25, + 0, + 7, + 1, + "MASK" + ], + [ + 59, + 25, + 0, + 14, + 1, + "MASK" + ], + [ + 60, + 27, + 0, + 28, + 0, + "IMAGE" + ], + [ + 61, + 25, + 0, + 28, + 1, + "MASK" + ], + [ + 62, + 28, + 0, + 29, + 0, + "IMAGE" + ], + [ + 63, + 27, + 0, + 30, + 0, + "IMAGE" + ], + [ + 64, + 25, + 0, + 30, + 1, + "MASK" + ], + [ + 65, + 30, + 0, + 31, + 0, + "IMAGE" + ], + [ + 66, + 27, + 0, + 32, + 0, + "IMAGE" + ], + [ + 67, + 25, + 0, + 32, + 1, + "MASK" + ], + [ + 68, + 32, + 0, + 33, + 0, + "IMAGE" + ], + [ + 69, + 27, + 0, + 34, + 0, + "IMAGE" + ], + [ + 70, + 25, + 0, + 34, + 1, + "MASK" + ], + [ + 71, + 34, + 0, + 35, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/phi_prompt_example.json b/workflow/phi_prompt_example.json new file mode 100644 index 0000000..edf25fd --- /dev/null +++ b/workflow/phi_prompt_example.json @@ -0,0 +1,478 @@ +{ + "last_node_id": 23, + "last_link_id": 19, + "nodes": [ + { + "id": 12, + "type": "LayerUtility: PhiPrompt", + "pos": { + "0": 981, + "1": 223 + }, + "size": { + "0": 400, + "1": 268 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": null + }, + { + "name": "user_prompt", + "type": "STRING", + "link": 15, + "widget": { + "name": "user_prompt" + } + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 12 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: PhiPrompt" + }, + "widgets_values": [ + "auto", + "cuda", + "fp16", + false, + "You are a helpful AI assistant.", + "Describe this image", + true, + 0.5, + 512 + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 19, + "type": "LayerUtility: UserPromptGeneratorTxt2ImgPrompt", + "pos": { + "0": 538, + "1": 250 + }, + "size": { + "0": 389.4795837402344, + "1": 181.6023406982422 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "user_prompt", + "type": "STRING", + "links": [ + 15 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: UserPromptGeneratorTxt2ImgPrompt" + }, + "widgets_values": [ + "SD txt2img prompt", + "1 girl", + 200 + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 15, + "type": "LayerUtility: PhiPrompt", + "pos": { + "0": 980, + "1": 680 + }, + "size": { + "0": 400, + "1": 288 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 13 + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 14, + 19 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: PhiPrompt" + }, + "widgets_values": [ + "auto", + "cuda", + "fp16", + false, + "You are a helpful AI assistant.", + "Describe this image in 200 words.", + true, + 0.5, + 512 + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 14, + "type": "ShowText|pysssss", + "pos": { + "0": 1440, + "1": 228 + }, + "size": { + "0": 583.6148681640625, + "1": 256.0592346191406 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 12, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "\"Create an image depicting a young, radiant girl with cascading auburn hair and sparkling emerald eyes, standing amidst a lush, sunlit garden. She wears a delicate, floral dress that dances with the gentle breeze, its colors reflecting the vibrant hues of nature around her. In her hands, she holds a small, intricately carved wooden box, its surface adorned with delicate floral motifs. The girl's posture exudes a sense of serene confidence and joy, as she gazes into the distance, her expression a blend of nostalgia and wonder. Surrounding her, a myriad of blooming flowers and verdant foliage bursts with life, their petals and leaves glistening with morning dew. A soft smile plays on her lips, and the air is filled with the sweet scent of jasmine and roses. Capture the essence of innocence and the timeless beauty of nature, with the girl as the central figure, enveloped in a world where every detail harmoniously blends into a serene and enchanting tableau.\"" + ] + }, + { + "id": 22, + "type": "ShowText|pysssss", + "pos": { + "0": 1450, + "1": 1069 + }, + "size": { + "0": 579.9481811523438, + "1": 252.72593688964844 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 18, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "In the heart of a lush, green forest, an old man is captured in a moment of pure joy and adventure. The old man, dressed in a vibrant orange shirt and blue shorts, is perched atop a life-sized, green dinosaur model. The dinosaur, with its mouth open and teeth bared, adds an element of excitement to the scene. The old man's face is lit up with a smile, eyes wide with wonder, as if in awe of the prehistoric creature beneath him. The forest around him is dense with tall, broad-leaved trees, their leaves a mix of green hues that create a canopy overhead. The ground is a carpet of fallen leaves, adding to the authenticity of the forest setting. The sunlight filters through the canopy, casting dappled shadows on the forest floor and illuminating the scene with a soft, warm glow. This image captures a moment of innocent delight and exploration, a snapshot of childhood imagination brought to life." + ] + }, + { + "id": 17, + "type": "ShowText|pysssss", + "pos": { + "0": 1444, + "1": 690 + }, + "size": [ + 576.7242090484374, + 274.4475021895407 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 14, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "In the heart of a lush, green forest, a young child is captured in a moment of pure joy and adventure. The child, dressed in a vibrant orange shirt and blue shorts, is perched atop a life-sized, green dinosaur model. The dinosaur, with its mouth open and teeth bared, adds an element of excitement to the scene. The child's face is lit up with a smile, eyes wide with wonder, as if in awe of the prehistoric creature beneath them. The forest around them is dense with tall, broad-leaved trees, their leaves a mix of green hues that create a canopy overhead. The ground is a carpet of fallen leaves, adding to the authenticity of the forest setting. The sunlight filters through the canopy, casting dappled shadows on the forest floor and illuminating the scene with a soft, warm glow. This image captures a moment of innocent delight and exploration, a snapshot of childhood imagination brought to life." + ] + }, + { + "id": 21, + "type": "LayerUtility: PhiPrompt", + "pos": { + "0": 986, + "1": 1080 + }, + "size": { + "0": 400, + "1": 268 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": null + }, + { + "name": "user_prompt", + "type": "STRING", + "link": 16, + "widget": { + "name": "user_prompt" + } + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 18 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: PhiPrompt" + }, + "widgets_values": [ + "auto", + "cuda", + "fp16", + false, + "You are a helpful AI assistant.", + "Describe this image", + true, + 0.5, + 512 + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 20, + "type": "LayerUtility: UserPromptGeneratorReplaceWord", + "pos": { + "0": 543, + "1": 1106 + }, + "size": [ + 394.79998779296875, + 106 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "orig_prompt", + "type": "STRING", + "link": 19, + "widget": { + "name": "orig_prompt" + } + } + ], + "outputs": [ + { + "name": "user_prompt", + "type": "STRING", + "links": [ + 16 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: UserPromptGeneratorReplaceWord" + }, + "widgets_values": [ + "", + "prompt replace word", + "girl", + "old man" + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 16, + "type": "LoadImage", + "pos": { + "0": 562, + "1": 683 + }, + "size": [ + 332.04567106137745, + 314 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 13 + ], + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "girl_dino_1024.png", + "image" + ] + } + ], + "links": [ + [ + 12, + 12, + 0, + 14, + 0, + "STRING" + ], + [ + 13, + 16, + 0, + 15, + 0, + "IMAGE" + ], + [ + 14, + 15, + 0, + 17, + 0, + "STRING" + ], + [ + 15, + 19, + 0, + 12, + 1, + "STRING" + ], + [ + 16, + 20, + 0, + 21, + 1, + "STRING" + ], + [ + 18, + 21, + 0, + 22, + 0, + "STRING" + ], + [ + 19, + 15, + 0, + 20, + 0, + "STRING" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.6830134553650705, + "offset": [ + 265.1428085110255, + 160.2652107701903 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/prompt_embellish_example.json b/workflow/prompt_embellish_example.json new file mode 100644 index 0000000..34b8407 --- /dev/null +++ b/workflow/prompt_embellish_example.json @@ -0,0 +1,479 @@ +{ + "last_node_id": 14, + "last_link_id": 15, + "nodes": [ + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1430, + 380 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 8 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 11 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 630, + 480 + ], + "size": [ + 210, + 76 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 6 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "text, watermark" + ] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 630, + 360 + ], + "size": [ + 221.5748086041326, + 54 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + }, + { + "name": "text", + "type": "STRING", + "link": 10, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 4 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "beautiful scenery nature glass bottle landscape, , purple galaxy bottle," + ] + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 630, + 640 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 2 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 832, + 1152, + 1 + ] + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + 190, + 430 + ], + "size": [ + 339.3543294428463, + 98 + ], + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 1 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 3, + 5 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 8 + ], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "SDXL\\realvisxlV40_v40Bakedvae.safetensors" + ] + }, + { + "id": 11, + "type": "PreviewImage", + "pos": [ + 1700, + 230 + ], + "size": [ + 423.20624594675246, + 602.5239787263979 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 11 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 10, + "type": "LayerUtility: PromptEmbellish", + "pos": [ + 190, + 620 + ], + "size": [ + 332.8937369680273, + 125.21004277188638 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": null + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 10, + 12 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: PromptEmbellish" + }, + "widgets_values": [ + "gemini-1.5-flash", + 40, + "一只猫,夜晚,森林" + ] + }, + { + "id": 12, + "type": "ShowText|pysssss", + "pos": [ + 630, + 140 + ], + "size": [ + 358.2118278720675, + 149.85371460993542 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 12, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "A lone cat, its emerald eyes piercing the darkness, stands amidst the towering trees of an ancient forest. The moon casts an ethereal glow upon the scene, illuminating the intricate patterns of the cat's sleek fur. The air is thick with the scent of pine needles and damp earth, creating an atmosphere of mystery and enchantment." + ] + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 1080, + 380 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 1 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 4 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 6 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 2 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 7 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 712764536591081, + "fixed", + 20, + 8, + "euler", + "normal", + 1 + ] + } + ], + "links": [ + [ + 1, + 4, + 0, + 3, + 0, + "MODEL" + ], + [ + 2, + 5, + 0, + 3, + 3, + "LATENT" + ], + [ + 3, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 4, + 6, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 5, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 7, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 7, + 3, + 0, + 8, + 0, + "LATENT" + ], + [ + 8, + 4, + 2, + 8, + 1, + "VAE" + ], + [ + 10, + 10, + 0, + 6, + 1, + "STRING" + ], + [ + 11, + 8, + 0, + 11, + 0, + "IMAGE" + ], + [ + 12, + 10, + 0, + 12, + 0, + "STRING" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.8264462809917354, + "offset": [ + 651.852869780947, + 412.32328834665384 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/prompt_tagger_example.json b/workflow/prompt_tagger_example.json new file mode 100644 index 0000000..ec963b5 --- /dev/null +++ b/workflow/prompt_tagger_example.json @@ -0,0 +1,574 @@ +{ + "last_node_id": 21, + "last_link_id": 27, + "nodes": [ + { + "id": 3, + "type": "KSampler", + "pos": [ + 1522, + 245 + ], + "size": { + "0": 315, + "1": 262 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 1 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 4 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 6 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 2 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 7 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 930952346331301, + "fixed", + 20, + 8, + "euler", + "normal", + 1 + ] + }, + { + "id": 17, + "type": "LayerUtility: PromptTagger", + "pos": [ + 1018, + 680 + ], + "size": { + "0": 315, + "1": 130 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 23 + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 24 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: PromptTagger" + }, + "widgets_values": [ + "gemini-pro-vision", + 80, + "girl", + "oldman" + ] + }, + { + "id": 12, + "type": "LayerUtility: GetImageSize", + "pos": [ + 1014, + 448 + ], + "size": { + "0": 241.79998779296875, + "1": 66 + }, + "flags": { + "collapsed": true + }, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 12 + } + ], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 13 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "height", + "type": "INT", + "links": [ + 14 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "original_size", + "type": "BOX", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: GetImageSize" + } + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 1276, + 483 + ], + "size": { + "0": 228.18467712402344, + "1": 103.18214416503906 + }, + "flags": { + "collapsed": true + }, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "link": 13, + "widget": { + "name": "width" + } + }, + { + "name": "height", + "type": "INT", + "link": 14, + "widget": { + "name": "height" + } + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 2 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 512, + 512, + 1 + ] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 1262, + 320 + ], + "size": { + "0": 242.888671875, + "1": 60.13478088378906 + }, + "flags": { + "collapsed": true + }, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + }, + { + "name": "text", + "type": "STRING", + "link": 24, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 4 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "beautiful scenery nature glass bottle landscape, , purple galaxy bottle," + ] + }, + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 1255, + 396 + ], + "size": { + "0": 229.18539428710938, + "1": 76 + }, + "flags": { + "collapsed": true + }, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 6 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "text, watermark" + ] + }, + { + "id": 10, + "type": "LoadImage", + "pos": [ + 543, + 558 + ], + "size": [ + 415.2774353027344, + 333.71675872802734 + ], + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 12, + 23 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "girl_dino_1024.png", + "image" + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1697, + 552 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": { + "collapsed": true + }, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 8 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 25 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 18, + "type": "PreviewImage", + "pos": [ + 1399, + 602 + ], + "size": [ + 438.6108093261719, + 299.71675872802734 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 25 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + 903, + 248 + ], + "size": { + "0": 315, + "1": 98 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 1 + ], + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 3, + 5 + ], + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 8 + ], + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "SDXL\\realisticStockPhoto_v10.safetensors" + ] + } + ], + "links": [ + [ + 1, + 4, + 0, + 3, + 0, + "MODEL" + ], + [ + 2, + 5, + 0, + 3, + 3, + "LATENT" + ], + [ + 3, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 4, + 6, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 5, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 7, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 7, + 3, + 0, + 8, + 0, + "LATENT" + ], + [ + 8, + 4, + 2, + 8, + 1, + "VAE" + ], + [ + 12, + 10, + 0, + 12, + 0, + "IMAGE" + ], + [ + 13, + 12, + 0, + 5, + 0, + "INT" + ], + [ + 14, + 12, + 1, + 5, + 1, + "INT" + ], + [ + 23, + 10, + 0, + 17, + 0, + "IMAGE" + ], + [ + 24, + 17, + 0, + 6, + 1, + "STRING" + ], + [ + 25, + 8, + 0, + 18, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": {}, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/sam2_ultra_example.json b/workflow/sam2_ultra_example.json new file mode 100644 index 0000000..12bd81f --- /dev/null +++ b/workflow/sam2_ultra_example.json @@ -0,0 +1,893 @@ +{ + "last_node_id": 29, + "last_link_id": 46, + "nodes": [ + { + "id": 25, + "type": "LayerMask: BBoxJoin", + "pos": { + "0": 1010, + "1": 860, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 252, + "1": 86 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "bboxes_1", + "type": "BBOXES", + "link": 42 + }, + { + "name": "bboxes_2", + "type": "BBOXES", + "link": 44 + }, + { + "name": "bboxes_3", + "type": "BBOXES", + "link": null + }, + { + "name": "bboxes_4", + "type": "BBOXES", + "link": null + } + ], + "outputs": [ + { + "name": "bboxes", + "type": "BBOXES", + "links": [ + 33 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: BBoxJoin" + } + }, + { + "id": 22, + "type": "LayerMask: SAM2Ultra", + "pos": { + "0": 1320, + "1": 610, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 315, + "1": 366 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 22 + }, + { + "name": "bboxes", + "type": "BBOXES", + "link": 33 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 24 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "mask", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: SAM2Ultra" + }, + "widgets_values": [ + "sam2_hiera_base_plus.safetensors", + "fp16", + "all", + "0,", + false, + "VITMatte", + 6, + 4, + 0.15, + 0.99, + true, + "cuda", + 2 + ] + }, + { + "id": 23, + "type": "LayerMask: SAM2Ultra", + "pos": { + "0": 1320, + "1": 1040, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 315, + "1": 366 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 25 + }, + { + "name": "bboxes", + "type": "BBOXES", + "link": 46 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 27 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "mask", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: SAM2Ultra" + }, + "widgets_values": [ + "sam2_hiera_base_plus.safetensors", + "fp16", + "all", + "0,", + false, + "VITMatte", + 6, + 4, + 0.15, + 0.99, + true, + "cuda", + 2 + ] + }, + { + "id": 5, + "type": "PreviewImage", + "pos": { + "0": 1690, + "1": 190, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 607.5372314453125, + "1": 368.59552001953125 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 21 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 8, + "type": "PreviewImage", + "pos": { + "0": 1690, + "1": 610, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 607.5372314453125, + "1": 368.59552001953125 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 24 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 11, + "type": "PreviewImage", + "pos": { + "0": 1690, + "1": 1030, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 607.5372314453125, + "1": 368.59552001953125 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 27 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 4, + "type": "LayerMask: LoadFlorence2Model", + "pos": { + "0": 670, + "1": 210, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 301.9246520996094, + "1": 65.07791900634766 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "florence2_model", + "type": "FLORENCE2", + "links": [ + 38 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerMask: LoadFlorence2Model" + }, + "widgets_values": [ + "base" + ] + }, + { + "id": 15, + "type": "LoadImage", + "pos": { + "0": 210, + "1": 960, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 320.1606750488281, + 314 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 43 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "clipspace/clipspace-mask-122198.png [input]", + "image" + ] + }, + { + "id": 28, + "type": "LayerMask: ObjectDetectorMask", + "pos": { + "0": 670, + "1": 880, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 305.4603283920758, + 126 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "object_mask", + "type": "MASK", + "link": 43 + } + ], + "outputs": [ + { + "name": "bboxes", + "type": "BBOXES", + "links": [ + 44 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "preview", + "type": "IMAGE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: ObjectDetectorMask" + }, + "widgets_values": [ + "left_to_right", + "all", + "0," + ] + }, + { + "id": 2, + "type": "LoadImage", + "pos": { + "0": 210, + "1": 350, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 18, + 22, + 25, + 39, + 41, + 45 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "seven_persons_1280x720.jpg", + "image" + ] + }, + { + "id": 21, + "type": "LayerMask: SAM2Ultra", + "pos": { + "0": 1330, + "1": 180, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 315, + "1": 366 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 18 + }, + { + "name": "bboxes", + "type": "BBOXES", + "link": 40 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 21 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "mask", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: SAM2Ultra" + }, + "widgets_values": [ + "sam2_hiera_base_plus.safetensors", + "fp16", + "all", + "0,", + false, + "VITMatte", + 6, + 4, + 0.15, + 0.99, + true, + "cuda", + 2 + ] + }, + { + "id": 26, + "type": "LayerMask: ObjectDetectorFL2", + "pos": { + "0": 670, + "1": 340, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 302.3999938964844, + 150 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 39 + }, + { + "name": "florence2_model", + "type": "FLORENCE2", + "link": 38 + } + ], + "outputs": [ + { + "name": "bboxes", + "type": "BBOXES", + "links": [ + 40 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "preview", + "type": "IMAGE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: ObjectDetectorFL2" + }, + "widgets_values": [ + "woman", + "left_to_right", + "all", + "0," + ] + }, + { + "id": 27, + "type": "LayerMask: ObjectDetectorYOLOWorld", + "pos": { + "0": 670, + "1": 590, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 310.79998779296875, + 222 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 41 + } + ], + "outputs": [ + { + "name": "bboxes", + "type": "BBOXES", + "links": [ + 42 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "preview", + "type": "IMAGE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: ObjectDetectorYOLOWorld" + }, + "widgets_values": [ + "yolo_world/v2-x", + 0.05, + 0.3, + "person", + "left_to_right", + "by_index", + "2,4,5" + ] + }, + { + "id": 29, + "type": "LayerMask: ObjectDetectorYOLO8", + "pos": { + "0": 670, + "1": 1120, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 312.30031362156797, + 150 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 45 + } + ], + "outputs": [ + { + "name": "bboxes", + "type": "BBOXES", + "links": [ + 46 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "preview", + "type": "IMAGE", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: ObjectDetectorYOLO8" + }, + "widgets_values": [ + "face_yolov8m.pt", + "left_to_right", + "by_index", + "0,1,2,5,6" + ] + } + ], + "links": [ + [ + 18, + 2, + 0, + 21, + 0, + "IMAGE" + ], + [ + 21, + 21, + 0, + 5, + 0, + "IMAGE" + ], + [ + 22, + 2, + 0, + 22, + 0, + "IMAGE" + ], + [ + 24, + 22, + 0, + 8, + 0, + "IMAGE" + ], + [ + 25, + 2, + 0, + 23, + 0, + "IMAGE" + ], + [ + 27, + 23, + 0, + 11, + 0, + "IMAGE" + ], + [ + 33, + 25, + 0, + 22, + 1, + "BBOXES" + ], + [ + 38, + 4, + 0, + 26, + 1, + "FLORENCE2" + ], + [ + 39, + 2, + 0, + 26, + 0, + "IMAGE" + ], + [ + 40, + 26, + 0, + 21, + 1, + "BBOXES" + ], + [ + 41, + 2, + 0, + 27, + 0, + "IMAGE" + ], + [ + 42, + 27, + 0, + 25, + 0, + "BBOXES" + ], + [ + 43, + 15, + 1, + 28, + 0, + "MASK" + ], + [ + 44, + 28, + 0, + 25, + 1, + "BBOXES" + ], + [ + 45, + 2, + 0, + 29, + 0, + "IMAGE" + ], + [ + 46, + 29, + 0, + 23, + 1, + "BBOXES" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.683013455365071, + "offset": [ + 412.29938543495007, + 64.95539321714692 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/sam2_video_ultra_example.json b/workflow/sam2_video_ultra_example.json new file mode 100644 index 0000000..d726a52 --- /dev/null +++ b/workflow/sam2_video_ultra_example.json @@ -0,0 +1,809 @@ +{ + "last_node_id": 139, + "last_link_id": 90, + "nodes": [ + { + "id": 116, + "type": "VHS_LoadVideoPath", + "pos": { + "0": -314, + "1": 279, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 358.1507873535156, + 238 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [ + { + "name": "meta_batch", + "type": "VHS_BatchManager", + "link": null + }, + { + "name": "vae", + "type": "VAE", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 73, + 80, + 85 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "frame_count", + "type": "INT", + "links": null, + "shape": 3 + }, + { + "name": "audio", + "type": "AUDIO", + "links": null, + "shape": 3 + }, + { + "name": "video_info", + "type": "VHS_VIDEOINFO", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VHS_LoadVideoPath" + }, + "widgets_values": { + "video": "D:\\AIRes\\video\\hhou-test1.mp4", + "force_rate": 0, + "force_size": "Disabled", + "custom_width": 512, + "custom_height": 512, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 2, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "frame_load_cap": 0, + "skip_first_frames": 0, + "force_rate": 0, + "filename": "D:\\AIRes\\video\\hhou-test1.mp4", + "type": "path", + "format": "video/mp4", + "select_every_nth": 2 + }, + "muted": false + } + } + }, + { + "id": 137, + "type": "Reroute", + "pos": { + "0": 103, + "1": 186, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 85 + } + ], + "outputs": [ + { + "name": "", + "type": "IMAGE", + "links": [ + 86 + ], + "slot_index": 0 + } + ], + "properties": { + "showOutputText": false, + "horizontal": false + } + }, + { + "id": 127, + "type": "VHS_VideoCombine", + "pos": { + "0": -324, + "1": 629, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 588.8154907226562, + 643.9587135314941 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 73 + }, + { + "name": "audio", + "type": "AUDIO", + "link": null + }, + { + "name": "meta_batch", + "type": "VHS_BatchManager", + "link": null + }, + { + "name": "vae", + "type": "VAE", + "link": null + } + ], + "outputs": [ + { + "name": "Filenames", + "type": "VHS_FILENAMES", + "links": [], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VHS_VideoCombine" + }, + "widgets_values": { + "frame_rate": 15, + "loop_count": 0, + "filename_prefix": "orig", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": true, + "pingpong": false, + "save_output": true, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "orig_00035.mp4", + "subfolder": "", + "type": "output", + "format": "video/h264-mp4", + "frame_rate": 15 + }, + "muted": false + } + } + }, + { + "id": 122, + "type": "VHS_VideoCombine", + "pos": { + "0": 306, + "1": 637, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 578.6887817382812, + 638.2624397277832 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 71 + }, + { + "name": "audio", + "type": "AUDIO", + "link": null + }, + { + "name": "meta_batch", + "type": "VHS_BatchManager", + "link": null + }, + { + "name": "vae", + "type": "VAE", + "link": null + } + ], + "outputs": [ + { + "name": "Filenames", + "type": "VHS_FILENAMES", + "links": [], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VHS_VideoCombine" + }, + "widgets_values": { + "frame_rate": 15, + "loop_count": 0, + "filename_prefix": "sam2", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": true, + "pingpong": false, + "save_output": true, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "sam2_00033.mp4", + "subfolder": "", + "type": "output", + "format": "video/h264-mp4", + "frame_rate": 15 + }, + "muted": false + } + } + }, + { + "id": 133, + "type": "MaskToImage", + "pos": { + "0": 1192, + "1": 539, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 264.5999755859375, + "1": 26 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 78 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 79 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "MaskToImage" + } + }, + { + "id": 132, + "type": "VHS_VideoCombine", + "pos": { + "0": 914, + "1": 638, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 571.5888671875, + 634.2687377929688 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 79 + }, + { + "name": "audio", + "type": "AUDIO", + "link": null + }, + { + "name": "meta_batch", + "type": "VHS_BatchManager", + "link": null + }, + { + "name": "vae", + "type": "VAE", + "link": null + } + ], + "outputs": [ + { + "name": "Filenames", + "type": "VHS_FILENAMES", + "links": [], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "VHS_VideoCombine" + }, + "widgets_values": { + "frame_rate": 15, + "loop_count": 0, + "filename_prefix": "mask", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": true, + "pingpong": false, + "save_output": true, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "mask_00005.mp4", + "subfolder": "", + "type": "output", + "format": "video/h264-mp4", + "frame_rate": 15 + }, + "muted": false + } + } + }, + { + "id": 135, + "type": "LayerUtility: BatchSelector", + "pos": { + "0": 99, + "1": 275, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 263.46063232421875, + "1": 79.99906921386719 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 80 + }, + { + "name": "masks", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 87 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "mask", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: BatchSelector" + }, + "widgets_values": [ + "0," + ] + }, + { + "id": 136, + "type": "LayerMask: LoadFlorence2Model", + "pos": { + "0": 93, + "1": 439, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 269.74298095703125, + "1": 58.20575714111328 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "florence2_model", + "type": "FLORENCE2", + "links": [ + 88 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerMask: LoadFlorence2Model" + }, + "widgets_values": [ + "base" + ] + }, + { + "id": 139, + "type": "PreviewImage", + "pos": { + "0": 798, + "1": -111, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 343.80730263450573, + 225.6595587048399 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 90 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 126, + "type": "LayerMask: SAM2VideoUltra", + "pos": { + "0": 798, + "1": 166, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": { + "0": 340.20001220703125, + "1": 406 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 86 + }, + { + "name": "bboxes", + "type": "BBOXES", + "link": 89 + }, + { + "name": "pre_mask", + "type": "MASK", + "link": null + }, + { + "name": "first_frame_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "mask", + "type": "MASK", + "links": [ + 78 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "preview", + "type": "IMAGE", + "links": [ + 71 + ], + "slot_index": 1, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerMask: SAM2VideoUltra" + }, + "widgets_values": [ + "sam2_hiera_base_plus.safetensors", + "fp16", + false, + false, + "#FF0080", + "VITMatte", + 6, + 6, + 0.15, + 0.99, + true, + "cuda", + 0.5 + ] + }, + { + "id": 138, + "type": "LayerMask: ObjectDetectorFL2", + "pos": { + "0": 421, + "1": 326, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + "size": [ + 318.99998647724385, + 150 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 87 + }, + { + "name": "florence2_model", + "type": "FLORENCE2", + "link": 88 + } + ], + "outputs": [ + { + "name": "bboxes", + "type": "BBOXES", + "links": [ + 89 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "preview", + "type": "IMAGE", + "links": [ + 90 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayerMask: ObjectDetectorFL2" + }, + "widgets_values": [ + "main subject", + "top_to_bottom", + "by_index", + "1,2" + ] + } + ], + "links": [ + [ + 71, + 126, + 1, + 122, + 0, + "IMAGE" + ], + [ + 73, + 116, + 0, + 127, + 0, + "IMAGE" + ], + [ + 78, + 126, + 0, + 133, + 0, + "MASK" + ], + [ + 79, + 133, + 0, + 132, + 0, + "IMAGE" + ], + [ + 80, + 116, + 0, + 135, + 0, + "IMAGE" + ], + [ + 85, + 116, + 0, + 137, + 0, + "*" + ], + [ + 86, + 137, + 0, + 126, + 0, + "IMAGE" + ], + [ + 87, + 135, + 0, + 138, + 0, + "IMAGE" + ], + [ + 88, + 136, + 0, + 138, + 1, + "FLORENCE2" + ], + [ + 89, + 138, + 0, + 126, + 1, + "BBOXES" + ], + [ + 90, + 138, + 1, + 139, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.7513148009015777, + "offset": [ + 996.1918474342962, + 133.300244699258 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/sd3_negative_conditioning.json b/workflow/sd3_negative_conditioning.json new file mode 100644 index 0000000..7e2b334 --- /dev/null +++ b/workflow/sd3_negative_conditioning.json @@ -0,0 +1,434 @@ +{ + "last_node_id": 282, + "last_link_id": 619, + "nodes": [ + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 1210, + 690 + ], + "size": { + "0": 389.06927490234375, + "1": 207.84902954101562 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 601 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 605 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "a female character with long, flowing hair that appears to be made of ethereal, swirling patterns resembling the Northern Lights or Aurora Borealis. The background is dominated by deep blues and purples, creating a mysterious and dramatic atmosphere. The character's face is serene, with pale skin and striking features. She wears a dark-colored outfit with subtle patterns. The overall style of the artwork is reminiscent of fantasy or supernatural genres" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 135, + "type": "EmptySD3LatentImage", + "pos": [ + 1650, + 940 + ], + "size": { + "0": 315, + "1": 106 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 607 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "EmptySD3LatentImage" + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 275, + "type": "KSampler", + "pos": [ + 2060, + 590 + ], + "size": { + "0": 315, + "1": 446 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 604 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 605 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 612 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 607 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 613 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 945512652412924, + "fixed", + 28, + 4.5, + "dpmpp_2m", + "sgm_uniform", + 1 + ] + }, + { + "id": 279, + "type": "VAEDecode", + "pos": [ + 2420, + 623 + ], + "size": { + "0": 210, + "1": 46 + }, + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 613 + }, + { + "name": "vae", + "type": "VAE", + "link": 614 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 615 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "VAEDecode" + } + }, + { + "id": 280, + "type": "PreviewImage", + "pos": [ + 2699, + 576 + ], + "size": { + "0": 440.6585693359375, + "1": 455.54217529296875 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 615 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 273, + "type": "CheckpointLoaderSimple", + "pos": [ + 653, + 600 + ], + "size": { + "0": 485.783447265625, + "1": 103.3435287475586 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 604 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 601, + 602 + ], + "shape": 3, + "slot_index": 1 + }, + { + "name": "VAE", + "type": "VAE", + "links": [ + 614 + ], + "shape": 3, + "slot_index": 2 + } + ], + "properties": { + "Node name for S&R": "CheckpointLoaderSimple" + }, + "widgets_values": [ + "SD3\\2b_1024\\sd3_medium_incl_clips_t5xxlfp8.safetensors" + ] + }, + { + "id": 71, + "type": "CLIPTextEncode", + "pos": [ + 1215, + 968 + ], + "size": { + "0": 380.4615783691406, + "1": 102.07693481445312 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 602 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 611 + ], + "shape": 3, + "slot_index": 0 + } + ], + "title": "CLIP Text Encode (Negative Prompt)", + "properties": { + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "bad quality, poor quality, doll, disfigured, jpg, toy, bad anatomy, missing limbs, missing fingers, 3d, cgi" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 278, + "type": "LayerUtility: SD3NegativeConditioning", + "pos": [ + 1647, + 778 + ], + "size": { + "0": 327.6000061035156, + "1": 58 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 611 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 612 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: SD3NegativeConditioning" + }, + "widgets_values": [ + 0.1 + ] + } + ], + "links": [ + [ + 601, + 273, + 1, + 6, + 0, + "CLIP" + ], + [ + 602, + 273, + 1, + 71, + 0, + "CLIP" + ], + [ + 604, + 273, + 0, + 275, + 0, + "MODEL" + ], + [ + 605, + 6, + 0, + 275, + 1, + "CONDITIONING" + ], + [ + 607, + 135, + 0, + 275, + 3, + "LATENT" + ], + [ + 611, + 71, + 0, + 278, + 0, + "CONDITIONING" + ], + [ + 612, + 278, + 0, + 275, + 2, + "CONDITIONING" + ], + [ + 613, + 275, + 0, + 279, + 0, + "LATENT" + ], + [ + 614, + 273, + 2, + 279, + 1, + "VAE" + ], + [ + 615, + 279, + 0, + 280, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.6830134553650706, + "offset": [ + -69.02360401680795, + -15.503216960225018 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/ultra_v2_nodes_example.json b/workflow/ultra_v2_nodes_example.json new file mode 100644 index 0000000..9b2c06f --- /dev/null +++ b/workflow/ultra_v2_nodes_example.json @@ -0,0 +1,467 @@ +{ + "last_node_id": 81, + "last_link_id": 127, + "nodes": [ + { + "id": 72, + "type": "LoadImage", + "pos": [ + 48, + 204 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 119 + ], + "shape": 3, + "slot_index": 0, + "label": "IMAGE" + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3, + "label": "MASK" + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "768x1344_beach.png", + "image" + ] + }, + { + "id": 5, + "type": "LoadImage", + "pos": [ + 47, + 604 + ], + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 89, + 123 + ], + "shape": 3, + "slot_index": 0, + "label": "IMAGE" + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3, + "label": "MASK" + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "dress_768x1344 (1).png", + "image" + ] + }, + { + "id": 57, + "type": "LayerMask: SegmentAnythingUltra V2", + "pos": [ + 438, + 225 + ], + "size": { + "0": 315, + "1": 294 + }, + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 89 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 121 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "mask", + "type": "MASK", + "links": [ + 122 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayerMask: SegmentAnythingUltra V2" + }, + "widgets_values": [ + "sam_vit_h (2.56GB)", + "GroundingDINO_SwinT_OGC (694MB)", + 0.3, + "VITMatte", + 90, + 10, + 0.01, + 0.88, + true, + "subject" + ] + }, + { + "id": 79, + "type": "LayerMask: PersonMaskUltra V2", + "pos": [ + 437, + 584 + ], + "size": { + "0": 315, + "1": 366 + }, + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 123 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 127 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "mask", + "type": "MASK", + "links": [ + 126 + ], + "shape": 3, + "slot_index": 1 + } + ], + "properties": { + "Node name for S&R": "LayerMask: PersonMaskUltra V2" + }, + "widgets_values": [ + false, + true, + false, + false, + false, + false, + 0.55, + "GuidedFilter", + 4, + 18, + 0.65, + 0.99, + true + ] + }, + { + "id": 77, + "type": "LayerUtility: ImageBlend", + "pos": [ + 814, + 228 + ], + "size": { + "0": 315, + "1": 146 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "background_image", + "type": "IMAGE", + "link": 119 + }, + { + "name": "layer_image", + "type": "IMAGE", + "link": 121 + }, + { + "name": "layer_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 124 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: ImageBlend" + }, + "widgets_values": [ + true, + "normal", + 100 + ] + }, + { + "id": 78, + "type": "MaskPreview+", + "pos": [ + 824, + 420 + ], + "size": [ + 194.09358354048254, + 227.87744542143548 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 122 + } + ], + "properties": { + "Node name for S&R": "MaskPreview+" + } + }, + { + "id": 81, + "type": "MaskPreview+", + "pos": [ + 828, + 698 + ], + "size": [ + 185.24506170099403, + 240.1805127154695 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "mask", + "type": "MASK", + "link": 126 + } + ], + "properties": { + "Node name for S&R": "MaskPreview+" + } + }, + { + "id": 80, + "type": "LayerUtility: ImageBlend", + "pos": [ + 1153, + 382 + ], + "size": { + "0": 315, + "1": 146 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "background_image", + "type": "IMAGE", + "link": 124 + }, + { + "name": "layer_image", + "type": "IMAGE", + "link": 127 + }, + { + "name": "layer_mask", + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 125 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: ImageBlend" + }, + "widgets_values": [ + true, + "normal", + 100 + ] + }, + { + "id": 73, + "type": "PreviewImage", + "pos": [ + 1511, + 246 + ], + "size": [ + 357.3965465372253, + 654.0592602816492 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 125 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 89, + 5, + 0, + 57, + 0, + "IMAGE" + ], + [ + 119, + 72, + 0, + 77, + 0, + "IMAGE" + ], + [ + 121, + 57, + 0, + 77, + 1, + "IMAGE" + ], + [ + 122, + 57, + 1, + 78, + 0, + "MASK" + ], + [ + 123, + 5, + 0, + 79, + 0, + "IMAGE" + ], + [ + 124, + 77, + 0, + 80, + 0, + "IMAGE" + ], + [ + 125, + 80, + 0, + 73, + 0, + "IMAGE" + ], + [ + 126, + 79, + 1, + 81, + 0, + "MASK" + ], + [ + 127, + 79, + 0, + 80, + 1, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "0246.VERSION": [ + 0, + 0, + 4 + ] + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/vqa_example.json b/workflow/vqa_example.json new file mode 100644 index 0000000..5bd5155 --- /dev/null +++ b/workflow/vqa_example.json @@ -0,0 +1,205 @@ +{ + "last_node_id": 8, + "last_link_id": 9, + "nodes": [ + { + "id": 7, + "type": "LayerUtility: LoadVQAModel", + "pos": { + "0": 599, + "1": 113 + }, + "size": { + "0": 352.79998779296875, + "1": 106 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "vqa_model", + "type": "VQA_MODEL", + "links": [ + 8 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: LoadVQAModel" + }, + "widgets_values": [ + "blip-vqa-base", + "fp16", + "cuda" + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 3, + "type": "LoadImage", + "pos": { + "0": 214, + "1": 150 + }, + "size": { + "0": 315, + "1": 314 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 7 + ], + "slot_index": 0, + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "201709_08_2017.jpg", + "image" + ] + }, + { + "id": 8, + "type": "LayerUtility: VQAPrompt", + "pos": { + "0": 599, + "1": 287 + }, + "size": [ + 350.3710035845893, + 179.27100631924975 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 7 + }, + { + "name": "vqa_model", + "type": "VQA_MODEL", + "link": 8 + } + ], + "outputs": [ + { + "name": "text", + "type": "STRING", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: VQAPrompt" + }, + "widgets_values": [ + "{age number} years old {ethnicity} {gender}, weared {garment color} {garment}, {eye color} eyes, {hair style} {hair color} hair, {background} background." + ], + "color": "rgba(38, 73, 116, 0.7)" + }, + { + "id": 4, + "type": "ShowText|pysssss", + "pos": { + "0": 996, + "1": 271 + }, + "size": [ + 373.7758109354413, + 191.17457077237475 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 9, + "widget": { + "name": "text" + } + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": null, + "shape": 6 + } + ], + "properties": { + "Node name for S&R": "ShowText|pysssss" + }, + "widgets_values": [ + "", + "8 years old white female, weared green dress, blue eyes, short blonde hair. flowers background." + ] + } + ], + "links": [ + [ + 7, + 3, + 0, + 8, + 0, + "IMAGE" + ], + [ + 8, + 7, + 0, + 8, + 1, + "VQA_MODEL" + ], + [ + 9, + 8, + 0, + 4, + 0, + "STRING" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 1.2100000000000009, + "offset": [ + 82.59991056080125, + 175.82350027651842 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflow/watermark_example.json b/workflow/watermark_example.json new file mode 100644 index 0000000..e241ad6 --- /dev/null +++ b/workflow/watermark_example.json @@ -0,0 +1,592 @@ +{ + "last_node_id": 27, + "last_link_id": 27, + "nodes": [ + { + "id": 1, + "type": "LayerUtility: AddBlindWaterMark", + "pos": [ + 1135, + 670 + ], + "size": { + "0": 268.79998779296875, + "1": 46 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 1, + "slot_index": 0 + }, + { + "name": "watermark_image", + "type": "IMAGE", + "link": 8 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 3, + 4 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: AddBlindWaterMark" + } + }, + { + "id": 2, + "type": "LoadImage", + "pos": [ + 682, + 468 + ], + "size": { + "0": 397.7324523925781, + "1": 323.5675354003906 + }, + "flags": {}, + "order": 0, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 1 + ], + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "1344x768_beach (1).png", + "image" + ] + }, + { + "id": 9, + "type": "LayerUtility: CreateQRCode", + "pos": [ + 683, + 868 + ], + "size": { + "0": 400, + "1": 200 + }, + "flags": {}, + "order": 1, + "mode": 0, + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 8 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: CreateQRCode" + }, + "widgets_values": [ + 512, + 1, + "LayerStyle" + ] + }, + { + "id": 5, + "type": "LayerUtility: ShowBlindWaterMark", + "pos": [ + 1520, + 850 + ], + "size": { + "0": 277.20001220703125, + "1": 30.475421905517578 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 4 + } + ], + "outputs": [ + { + "name": "watermark_image", + "type": "IMAGE", + "links": [ + 5, + 9 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: ShowBlindWaterMark" + } + }, + { + "id": 10, + "type": "LayerUtility: DecodeQRCode", + "pos": [ + 1855, + 853 + ], + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 9 + } + ], + "outputs": [ + { + "name": "string", + "type": "STRING", + "links": [ + 10 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: DecodeQRCode" + }, + "widgets_values": [ + 2 + ] + }, + { + "id": 6, + "type": "PreviewImage", + "pos": [ + 1523, + 962 + ], + "size": { + "0": 262.6583251953125, + "1": 255.0736846923828 + }, + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 5 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 19, + "type": "LayerUtility: AddBlindWaterMark", + "pos": [ + 1160, + 1600 + ], + "size": { + "0": 268.79998779296875, + "1": 46 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 20, + "slot_index": 0 + }, + { + "name": "watermark_image", + "type": "IMAGE", + "link": 27 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [ + 22, + 23 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: AddBlindWaterMark" + } + }, + { + "id": 22, + "type": "LayerUtility: ShowBlindWaterMark", + "pos": [ + 1540, + 1780 + ], + "size": { + "0": 277.20001220703125, + "1": 30.475421905517578 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 23 + } + ], + "outputs": [ + { + "name": "watermark_image", + "type": "IMAGE", + "links": [ + 24 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "LayerUtility: ShowBlindWaterMark" + } + }, + { + "id": 23, + "type": "PreviewImage", + "pos": [ + 1550, + 1890 + ], + "size": { + "0": 262.6583251953125, + "1": 255.0736846923828 + }, + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 24 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 20, + "type": "LoadImage", + "pos": [ + 700, + 1400 + ], + "size": { + "0": 397.7324523925781, + "1": 323.5675354003906 + }, + "flags": {}, + "order": 2, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 20 + ], + "shape": 3 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "1344x768_girl2.png", + "image" + ] + }, + { + "id": 4, + "type": "PreviewImage", + "pos": [ + 1518, + 456 + ], + "size": [ + 494.42527914239736, + 315.20930867362824 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 3 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + }, + { + "id": 8, + "type": "Display Any (rgthree)", + "pos": [ + 1904, + 957 + ], + "size": { + "0": 242.66796875, + "1": 87.94121551513672 + }, + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "source", + "type": "*", + "link": 10, + "dir": 3 + } + ], + "properties": { + "Node name for S&R": "Display Any (rgthree)" + }, + "widgets_values": [ + "" + ] + }, + { + "id": 27, + "type": "LoadImage", + "pos": [ + 770, + 1820 + ], + "size": [ + 315, + 314.00000381469727 + ], + "flags": {}, + "order": 3, + "mode": 0, + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 27 + ], + "shape": 3, + "slot_index": 0 + }, + { + "name": "MASK", + "type": "MASK", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "LoadImage" + }, + "widgets_values": [ + "ComfyUI_temp_pzmea_00009_.png", + "image" + ] + }, + { + "id": 21, + "type": "PreviewImage", + "pos": [ + 1540, + 1390 + ], + "size": { + "0": 490.22747802734375, + "1": 323.8782653808594 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 22 + } + ], + "properties": { + "Node name for S&R": "PreviewImage" + } + } + ], + "links": [ + [ + 1, + 2, + 0, + 1, + 0, + "IMAGE" + ], + [ + 3, + 1, + 0, + 4, + 0, + "IMAGE" + ], + [ + 4, + 1, + 0, + 5, + 0, + "IMAGE" + ], + [ + 5, + 5, + 0, + 6, + 0, + "IMAGE" + ], + [ + 8, + 9, + 0, + 1, + 1, + "IMAGE" + ], + [ + 9, + 5, + 0, + 10, + 0, + "IMAGE" + ], + [ + 10, + 10, + 0, + 8, + 0, + "*" + ], + [ + 20, + 20, + 0, + 19, + 0, + "IMAGE" + ], + [ + 22, + 19, + 0, + 21, + 0, + "IMAGE" + ], + [ + 23, + 19, + 0, + 22, + 0, + "IMAGE" + ], + [ + 24, + 22, + 0, + 23, + 0, + "IMAGE" + ], + [ + 27, + 27, + 0, + 19, + 1, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.7513148009015778, + "offset": [ + 419.816938926498, + -337.6024702455139 + ] + } + }, + "version": 0.4 +} \ No newline at end of file