Fibo-2.0-editing / workflow.json
tingled's picture
gradio server + workflow app (#3)
e99af70
Raw History Blame Contribute Delete
5.56 kB
{
"schema_version": "2",
"name": "FIBO 2.0 Edit Turbo Workflow",
"references": [
{
"id": "ref_source",
"label": "Source Image",
"role": "reference",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 40,
"y": 40,
"width": 220,
"height": 130,
"data": {}
},
{
"id": "ref_instruction",
"label": "Edit Instruction (JSON)",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 40,
"y": 200,
"width": 280,
"height": 140,
"data": {
"out": "{\n \"edit_instruction\": \"make the sky dramatic and stormy\"\n}"
}
},
{
"id": "ref_seed",
"label": "Seed",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 340,
"y": 200,
"width": 130,
"height": 90,
"data": {"out": "42"}
},
{
"id": "ref_steps",
"label": "Steps",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 340,
"y": 310,
"width": 130,
"height": 90,
"data": {"out": "4"}
},
{
"id": "ref_instruction_2",
"label": "Second Instruction (JSON)",
"role": "reference",
"asset_type": "text",
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"x": 640,
"y": 40,
"width": 280,
"height": 130,
"data": {
"out": "{\n \"edit_instruction\": \"turn the scene into night with warm window lights\"\n}"
}
}
],
"operators": [
{
"id": "op_edit",
"label": "FIBO Edit",
"role": "operator",
"kind": "fn",
"fn": "fibo_edit",
"inputs": [
{"id": "image", "label": "Image", "type": "image", "required": true},
{"id": "json_instruction", "label": "JSON Instruction", "type": "text", "required": true},
{"id": "seed", "label": "Seed", "type": "text"},
{"id": "steps", "label": "Steps", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}],
"x": 520,
"y": 120,
"width": 230,
"height": 160,
"data": {}
},
{
"id": "op_edit_2",
"label": "FIBO Edit (chained)",
"role": "operator",
"kind": "fn",
"fn": "fibo_edit",
"inputs": [
{"id": "image", "label": "Image", "type": "image", "required": true},
{"id": "json_instruction", "label": "JSON Instruction", "type": "text", "required": true},
{"id": "seed", "label": "Seed", "type": "text"},
{"id": "steps", "label": "Steps", "type": "text"}
],
"outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}],
"x": 960,
"y": 120,
"width": 230,
"height": 160,
"data": {}
}
],
"subjects": [
{
"id": "sub_edited",
"label": "Edited Image",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 780,
"y": 340,
"width": 230,
"height": 110,
"data": {}
},
{
"id": "sub_chained",
"label": "Final Image",
"role": "subject",
"asset_type": "image",
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}],
"x": 1240,
"y": 120,
"width": 230,
"height": 110,
"data": {}
}
],
"edges": [
{"id": "e_source", "from_node_id": "ref_source", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "image", "type": "image"},
{"id": "e_instruction", "from_node_id": "ref_instruction", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "json_instruction", "type": "text"},
{"id": "e_seed", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "seed", "type": "text"},
{"id": "e_steps", "from_node_id": "ref_steps", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "steps", "type": "text"},
{"id": "e_out", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "sub_edited", "to_port_id": "in", "type": "image"},
{"id": "e_chain", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "op_edit_2", "to_port_id": "image", "type": "image"},
{"id": "e_instruction_2", "from_node_id": "ref_instruction_2", "from_port_id": "out", "to_node_id": "op_edit_2", "to_port_id": "json_instruction", "type": "text"},
{"id": "e_seed_2", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_edit_2", "to_port_id": "seed", "type": "text"},
{"id": "e_steps_2", "from_node_id": "ref_steps", "from_port_id": "out", "to_node_id": "op_edit_2", "to_port_id": "steps", "type": "text"},
{"id": "e_out_2", "from_node_id": "op_edit_2", "from_port_id": "out_0", "to_node_id": "sub_chained", "to_port_id": "in", "type": "image"}
]
}