Spaces:
Running on Zero
Running on Zero
Wire Edit Image node to user-provided image + edit prompt references
Browse files- workflow.json +23 -1
workflow.json
CHANGED
|
@@ -24,6 +24,27 @@
|
|
| 24 |
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
|
| 25 |
"data": {"out": 8}
|
| 26 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
{
|
| 28 |
"id": "ref_seed",
|
| 29 |
"label": "Seed",
|
|
@@ -95,7 +116,8 @@
|
|
| 95 |
{"id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "prompt", "type": "text"},
|
| 96 |
{"id": "e2", "from_node_id": "ref_steps", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "steps", "type": "number"},
|
| 97 |
{"id": "e3", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "seed", "type": "number"},
|
| 98 |
-
{"id": "e4", "from_node_id": "
|
|
|
|
| 99 |
{"id": "e5", "from_node_id": "op_generate", "from_port_id": "out_0", "to_node_id": "sub_generated", "to_port_id": "in", "type": "image"},
|
| 100 |
{"id": "e6", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "sub_edited", "to_port_id": "in", "type": "image"}
|
| 101 |
]
|
|
|
|
| 24 |
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
|
| 25 |
"data": {"out": 8}
|
| 26 |
},
|
| 27 |
+
{
|
| 28 |
+
"id": "ref_image",
|
| 29 |
+
"label": "Input Image",
|
| 30 |
+
"role": "reference",
|
| 31 |
+
"asset_type": "image",
|
| 32 |
+
"x": 40,
|
| 33 |
+
"y": 640,
|
| 34 |
+
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
|
| 35 |
+
"outputs": [{"id": "out", "label": "Image", "type": "image"}]
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"id": "ref_edit_prompt",
|
| 39 |
+
"label": "Edit Prompt",
|
| 40 |
+
"role": "reference",
|
| 41 |
+
"asset_type": "text",
|
| 42 |
+
"x": 40,
|
| 43 |
+
"y": 840,
|
| 44 |
+
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
|
| 45 |
+
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
|
| 46 |
+
"data": {"out": "Change the background to a sunset beach"}
|
| 47 |
+
},
|
| 48 |
{
|
| 49 |
"id": "ref_seed",
|
| 50 |
"label": "Seed",
|
|
|
|
| 116 |
{"id": "e1", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "prompt", "type": "text"},
|
| 117 |
{"id": "e2", "from_node_id": "ref_steps", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "steps", "type": "number"},
|
| 118 |
{"id": "e3", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "seed", "type": "number"},
|
| 119 |
+
{"id": "e4", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "image", "type": "image"},
|
| 120 |
+
{"id": "e7", "from_node_id": "ref_edit_prompt", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "prompt", "type": "text"},
|
| 121 |
{"id": "e5", "from_node_id": "op_generate", "from_port_id": "out_0", "to_node_id": "sub_generated", "to_port_id": "in", "type": "image"},
|
| 122 |
{"id": "e6", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "sub_edited", "to_port_id": "in", "type": "image"}
|
| 123 |
]
|