{ "last_node_id": 10, "last_link_id": 12, "nodes": [ { "id": 1, "type": "LoadImage", "pos": [ 0, 0 ], "size": [ 315, 314 ], "order": 0, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 1 ], "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": null, "slot_index": 1 } ], "widgets_values": [ "example.png", "image" ] }, { "id": 2, "type": "LoadImage", "pos": [ 0, 400 ], "size": [ 315, 314 ], "order": 1, "mode": 0, "inputs": [], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 2 ], "slot_index": 0 }, { "name": "MASK", "type": "MASK", "links": null, "slot_index": 1 } ], "widgets_values": [ "example.png", "image" ] }, { "id": 3, "type": "IteratorItem", "pos": [ 400, 0 ], "size": [ 315, 122 ], "order": 2, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 1 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": null, "slot_index": 0 }, { "name": "AUDIO_TEXT", "type": "STRING", "links": null, "slot_index": 1 }, { "name": "VIDEO_PROMPT", "type": "STRING", "links": null, "slot_index": 2 }, { "name": "ITERATOR_ITEM", "type": "ITERATOR_ITEM", "links": [ 3 ], "slot_index": 3 } ], "widgets_values": [ "A beautiful cat", "A cat lounging in the sun" ] }, { "id": 4, "type": "IteratorItem", "pos": [ 400, 400 ], "size": [ 315, 122 ], "order": 3, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 2 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": null, "slot_index": 0 }, { "name": "AUDIO_TEXT", "type": "STRING", "links": null, "slot_index": 1 }, { "name": "VIDEO_PROMPT", "type": "STRING", "links": null, "slot_index": 2 }, { "name": "ITERATOR_ITEM", "type": "ITERATOR_ITEM", "links": [ 4 ], "slot_index": 3 } ], "widgets_values": [ "A brave dog", "A dog running in the park" ] }, { "id": 5, "type": "IteratorList", "pos": [ 800, 200 ], "size": [ 315, 200 ], "order": 4, "mode": 0, "inputs": [ { "name": "item1", "type": "ITERATOR_ITEM", "link": 3 }, { "name": "item2", "type": "ITERATOR_ITEM", "link": 4 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 5 ], "slot_index": 0 }, { "name": "AUDIO_TEXT", "type": "STRING", "links": null, "slot_index": 1 }, { "name": "VIDEO_PROMPT", "type": "STRING", "links": null, "slot_index": 2 }, { "name": "IS_FINISHED", "type": "BOOLEAN", "links": [ 12 ], "slot_index": 3 } ], "widgets_values": [ "image_iterator", false ] }, { "id": 6, "type": "ImageScale", "pos": [ 1200, 200 ], "size": [ 315, 82 ], "order": 5, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 5 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 6, 7 ], "slot_index": 0 } ], "widgets_values": [ "nearest-exact", 512, 512, "disabled" ] }, { "id": 7, "type": "PreviewImage", "pos": [ 1600, 100 ], "size": [ 315, 314 ], "order": 6, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 6 } ], "outputs": [] }, { "id": 8, "type": "IteratorSignal", "pos": [ 1600, 450 ], "size": [ 315, 82 ], "order": 7, "mode": 0, "inputs": [ { "name": "image", "type": "IMAGE", "link": 7 }, { "name": "is_finished", "type": "BOOLEAN", "link": 12 } ], "outputs": [ { "name": "SIGNAL", "type": "BOOLEAN", "links": null, "slot_index": 0 } ], "widgets_values": [ "image_iterator", true ] }, { "id": 9, "type": "Note", "pos": [ 800, 500 ], "size": [ 400, 150 ], "order": 8, "mode": 0, "widgets_values": [ "STEPS TO RUN:\n1. Ensure images are loaded in nodes 1 & 2.\n2. Click 'Queue Prompt' ONCE.\n3. The workflow will automatically loop until all items are processed.\n4. 'IteratorSignal' detects when 'IteratorList' is finished via the new connection and stops re-queueing." ] } ], "links": [ [ 1, 1, 0, 3, 0, "IMAGE" ], [ 2, 2, 0, 4, 0, "IMAGE" ], [ 3, 3, 3, 5, 0, "ITERATOR_ITEM" ], [ 4, 4, 3, 5, 1, "ITERATOR_ITEM" ], [ 5, 5, 0, 6, 0, "IMAGE" ], [ 6, 6, 0, 7, 0, "IMAGE" ], [ 7, 6, 0, 8, 0, "IMAGE" ], [ 12, 5, 3, 8, 1, "BOOLEAN" ] ], "groups": [], "config": {}, "extra": {}, "version": 0.4 }