Spaces:
Running on Zero
Running on Zero
Download workflow.json from akhaliq/fibo-2.0-workflow: direct link, hf CLI and curl.
- Browser
- Download file 9.91 kB
-
https://huggingface.co/spaces/akhaliq/fibo-2.0-workflow/resolve/main/workflow.json
- Command line
-
hf download hf://spaces/akhaliq/fibo-2.0-workflow/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/akhaliq/fibo-2.0-workflow/resolve/main/workflow.json
9.91 kB
| { | |
| "schema_version": "2", | |
| "name": "Your Visual Production Team, Powered by FIBO", | |
| "view": {"default": "app"}, | |
| "references": [ | |
| { | |
| "id": "ref_prompt", | |
| "label": "JSON Prompt", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 40, | |
| "y": 40, | |
| "width": 280, | |
| "height": 200, | |
| "data": { | |
| "out": "{\n \"short_description\": \"A golden retriever puppy sitting in a lavender field at golden hour\",\n \"objects\": [{\"description\": \"a golden retriever puppy\", \"texture\": \"soft fluffy fur\", \"appearance_details\": \"bright curious eyes, slightly tilted head\"}],\n \"background_setting\": \"a blooming lavender field stretching to a soft horizon\",\n \"lighting\": {\"conditions\": \"golden hour sunlight\", \"direction\": \"backlit, warm rim light\"},\n \"aesthetics\": {\"color_scheme\": \"warm golds and soft purples\"},\n \"photographic_characteristics\": {\"depth_of_field\": \"shallow\", \"focus\": \"sharp on the puppy's face\"},\n \"style_medium\": \"photograph\",\n \"context\": \"\",\n \"artistic_style\": \"\"\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": 40, | |
| "y": 270, | |
| "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": 190, | |
| "y": 270, | |
| "width": 130, | |
| "height": 90, | |
| "data": {"out": "4"} | |
| }, | |
| { | |
| "id": "ref_turbo", | |
| "label": "Turbo (4-step)", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 40, | |
| "y": 390, | |
| "width": 130, | |
| "height": 90, | |
| "data": {"out": "true"} | |
| }, | |
| { | |
| "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": 640, | |
| "y": 40, | |
| "width": 280, | |
| "height": 140, | |
| "data": { | |
| "out": "{\n \"edit_instruction\": \"turn the scene into a dramatic stormy evening while keeping the puppy unchanged\"\n}" | |
| } | |
| }, | |
| { | |
| "id": "ref_edit_steps", | |
| "label": "Edit Steps", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [{"id": "in", "label": "Text", "type": "text"}], | |
| "outputs": [{"id": "out", "label": "Text", "type": "text"}], | |
| "x": 640, | |
| "y": 200, | |
| "width": 130, | |
| "height": 90, | |
| "data": {"out": "4"} | |
| }, | |
| { | |
| "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": 560, | |
| "width": 220, | |
| "height": 130, | |
| "data": {} | |
| }, | |
| { | |
| "id": "ref_b_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": 720, | |
| "width": 280, | |
| "height": 130, | |
| "data": { | |
| "out": "{\n \"edit_instruction\": \"make the sky dramatic and stormy\"\n}" | |
| } | |
| }, | |
| { | |
| "id": "ref_b_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": 720, | |
| "width": 130, | |
| "height": 90, | |
| "data": {"out": "7"} | |
| }, | |
| { | |
| "id": "ref_b_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": 830, | |
| "width": 130, | |
| "height": 90, | |
| "data": {"out": "4"} | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_generate", | |
| "label": "FIBO Generate", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "fibo_generate", | |
| "inputs": [ | |
| {"id": "json_prompt", "label": "JSON Prompt", "type": "text", "required": true}, | |
| {"id": "seed", "label": "Seed", "type": "text"}, | |
| {"id": "steps", "label": "Steps", "type": "text"}, | |
| {"id": "turbo", "label": "Turbo (4-step)", "type": "text"} | |
| ], | |
| "outputs": [{"id": "out_0", "label": "Image", "type": "image", "output_index": 0}], | |
| "x": 360, | |
| "y": 100, | |
| "width": 230, | |
| "height": 140, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_edit", | |
| "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": 100, | |
| "width": 230, | |
| "height": 160, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_edit_b", | |
| "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": 620, | |
| "width": 230, | |
| "height": 160, | |
| "data": {} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_generated", | |
| "label": "Generated Image", | |
| "role": "subject", | |
| "asset_type": "image", | |
| "inputs": [{"id": "in", "label": "Image", "type": "image"}], | |
| "outputs": [{"id": "out", "label": "Image", "type": "image"}], | |
| "x": 640, | |
| "y": 340, | |
| "width": 230, | |
| "height": 110, | |
| "data": {} | |
| }, | |
| { | |
| "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": 1240, | |
| "y": 100, | |
| "width": 230, | |
| "height": 110, | |
| "data": {} | |
| }, | |
| { | |
| "id": "sub_edited_b", | |
| "label": "Edited Result", | |
| "role": "subject", | |
| "asset_type": "image", | |
| "inputs": [{"id": "in", "label": "Image", "type": "image"}], | |
| "outputs": [{"id": "out", "label": "Image", "type": "image"}], | |
| "x": 800, | |
| "y": 620, | |
| "width": 230, | |
| "height": 110, | |
| "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| {"id": "e_prompt", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "json_prompt", "type": "text"}, | |
| {"id": "e_seed_gen", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "seed", "type": "text"}, | |
| {"id": "e_steps_gen", "from_node_id": "ref_steps", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "steps", "type": "text"}, | |
| {"id": "e_turbo_gen", "from_node_id": "ref_turbo", "from_port_id": "out", "to_node_id": "op_generate", "to_port_id": "turbo", "type": "text"}, | |
| {"id": "e_gen_out", "from_node_id": "op_generate", "from_port_id": "out_0", "to_node_id": "sub_generated", "to_port_id": "in", "type": "image"}, | |
| {"id": "e_gen_chain", "from_node_id": "op_generate", "from_port_id": "out_0", "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_edit", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "seed", "type": "text"}, | |
| {"id": "e_steps_edit", "from_node_id": "ref_edit_steps", "from_port_id": "out", "to_node_id": "op_edit", "to_port_id": "steps", "type": "text"}, | |
| {"id": "e_edit_out", "from_node_id": "op_edit", "from_port_id": "out_0", "to_node_id": "sub_edited", "to_port_id": "in", "type": "image"}, | |
| {"id": "e_source", "from_node_id": "ref_source", "from_port_id": "out", "to_node_id": "op_edit_b", "to_port_id": "image", "type": "image"}, | |
| {"id": "e_b_instruction", "from_node_id": "ref_b_instruction", "from_port_id": "out", "to_node_id": "op_edit_b", "to_port_id": "json_instruction", "type": "text"}, | |
| {"id": "e_b_seed", "from_node_id": "ref_b_seed", "from_port_id": "out", "to_node_id": "op_edit_b", "to_port_id": "seed", "type": "text"}, | |
| {"id": "e_b_steps", "from_node_id": "ref_b_steps", "from_port_id": "out", "to_node_id": "op_edit_b", "to_port_id": "steps", "type": "text"}, | |
| {"id": "e_b_out", "from_node_id": "op_edit_b", "from_port_id": "out_0", "to_node_id": "sub_edited_b", "to_port_id": "in", "type": "image"} | |
| ] | |
| } | |