Spaces:
Running on Zero
Running on Zero
Download workflow.json from akhaliq/Qwen-Image-2.1-workflow: direct link, hf CLI and curl.
- Browser
- Download file 5.01 kB
-
https://huggingface.co/spaces/akhaliq/Qwen-Image-2.1-workflow/resolve/4eac3f3178862ddb2912acded538061b6ccb27b0/workflow.json
- Command line
-
hf download hf://spaces/akhaliq/Qwen-Image-2.1-workflow@4eac3f3178862ddb2912acded538061b6ccb27b0/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/akhaliq/Qwen-Image-2.1-workflow/resolve/4eac3f3178862ddb2912acded538061b6ccb27b0/workflow.json
5.01 kB
| { | |
| "schema_version": "2", | |
| "name": "Qwen-Image 2.1", | |
| "references": [ | |
| { | |
| "id": "ref_prompt", | |
| "label": "Prompt", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "x": 40, | |
| "y": 60, | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Text", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Text", | |
| "type": "text", | |
| "default_value": "A capybara wearing a wizard hat, oil painting" | |
| } | |
| ], | |
| "data": { | |
| "out": "A capybara wearing a wizard hat, oil painting" | |
| } | |
| }, | |
| { | |
| "id": "ref_image", | |
| "label": "Condition Image", | |
| "role": "reference", | |
| "asset_type": "image", | |
| "x": 40, | |
| "y": 380, | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "data": { | |
| "out": { | |
| "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/input_image_vermeer.png" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "ref_instruction", | |
| "label": "Edit Instruction", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "x": 40, | |
| "y": 640, | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Text", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Text", | |
| "type": "text", | |
| "default_value": "Move it to a snowy mountain top" | |
| } | |
| ], | |
| "data": { | |
| "out": "Move it to a snowy mountain top" | |
| } | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_t2i", | |
| "label": "Qwen-Image 2.1 Text-to-Image", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "text_to_image", | |
| "x": 420, | |
| "y": 60, | |
| "inputs": [ | |
| { | |
| "id": "prompt", | |
| "label": "Prompt", | |
| "type": "text", | |
| "required": true | |
| }, | |
| { | |
| "id": "steps", | |
| "label": "Steps", | |
| "type": "number", | |
| "default_value": 40 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "Image", | |
| "type": "image", | |
| "output_index": 0 | |
| } | |
| ], | |
| "data": { | |
| "steps": 40 | |
| } | |
| }, | |
| { | |
| "id": "op_edit", | |
| "label": "Qwen-Image 2.1 Edit", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "edit_image", | |
| "x": 820, | |
| "y": 320, | |
| "inputs": [ | |
| { | |
| "id": "image", | |
| "label": "Image", | |
| "type": "image", | |
| "required": true | |
| }, | |
| { | |
| "id": "instruction", | |
| "label": "Instruction", | |
| "type": "text", | |
| "required": true | |
| }, | |
| { | |
| "id": "steps", | |
| "label": "Steps", | |
| "type": "number", | |
| "default_value": 40 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "Image", | |
| "type": "image", | |
| "output_index": 0 | |
| } | |
| ], | |
| "data": { | |
| "steps": 40 | |
| } | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_generated", | |
| "label": "Generated Image", | |
| "role": "subject", | |
| "asset_type": "image", | |
| "x": 820, | |
| "y": 60, | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ] | |
| }, | |
| { | |
| "id": "sub_edited", | |
| "label": "Edited Image", | |
| "role": "subject", | |
| "asset_type": "image", | |
| "x": 1220, | |
| "y": 320, | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ] | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "id": "e1", | |
| "from_node_id": "ref_prompt", | |
| "from_port_id": "out", | |
| "to_node_id": "op_t2i", | |
| "to_port_id": "prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e2", | |
| "from_node_id": "op_t2i", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_generated", | |
| "to_port_id": "in", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e4", | |
| "from_node_id": "ref_instruction", | |
| "from_port_id": "out", | |
| "to_node_id": "op_edit", | |
| "to_port_id": "instruction", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e5", | |
| "from_node_id": "op_edit", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_edited", | |
| "to_port_id": "in", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e3", | |
| "from_node_id": "ref_image", | |
| "from_port_id": "out", | |
| "to_node_id": "op_edit", | |
| "to_port_id": "image", | |
| "type": "image" | |
| } | |
| ] | |
| } |