Spaces:
Running on Zero
Running on Zero
Download workflow.json from ysharma/gr-workflow-klein-studio: direct link, hf CLI and curl.
- Browser
- Download file 7.87 kB
-
https://huggingface.co/spaces/ysharma/gr-workflow-klein-studio/resolve/main/workflow.json
- Command line
-
hf download hf://spaces/ysharma/gr-workflow-klein-studio/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/ysharma/gr-workflow-klein-studio/resolve/main/workflow.json
7.87 kB
| { | |
| "schema_version": "2", | |
| "name": "Klein Image Studio", | |
| "references": [ | |
| { | |
| "id": "ref_prompt", | |
| "role": "reference", | |
| "label": "Prompt", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Prompt", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Prompt", | |
| "type": "text" | |
| } | |
| ], | |
| "data": { | |
| "out": "a red fox sitting on a mossy log in a misty pine forest at dawn, soft golden light, photorealistic" | |
| }, | |
| "x": 340, | |
| "y": 280, | |
| "width": 260, | |
| "height": 163 | |
| }, | |
| { | |
| "id": "ref_instruction", | |
| "role": "reference", | |
| "label": "Edit instruction", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Edit instruction", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Edit instruction", | |
| "type": "text" | |
| } | |
| ], | |
| "data": { | |
| "out": "make it a snowy winter scene at night with the fox wearing a small red knitted scarf, keep the pose and composition" | |
| }, | |
| "x": 325, | |
| "y": 535, | |
| "width": 260, | |
| "height": 163 | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_generate", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "generate", | |
| "label": "generate · FLUX.2 klein 4B (ZeroGPU)", | |
| "inputs": [ | |
| { | |
| "id": "prompt", | |
| "label": "prompt", | |
| "type": "text", | |
| "required": true | |
| }, | |
| { | |
| "id": "width", | |
| "label": "width", | |
| "type": "number", | |
| "required": false, | |
| "default_value": 1024 | |
| }, | |
| { | |
| "id": "height", | |
| "label": "height", | |
| "type": "number", | |
| "required": false, | |
| "default_value": 1024 | |
| }, | |
| { | |
| "id": "steps", | |
| "label": "steps", | |
| "type": "number", | |
| "required": false, | |
| "default_value": 4 | |
| }, | |
| { | |
| "id": "guidance", | |
| "label": "guidance", | |
| "type": "number", | |
| "required": false, | |
| "default_value": 1 | |
| }, | |
| { | |
| "id": "seed", | |
| "label": "seed (-1 = random)", | |
| "type": "number", | |
| "required": false, | |
| "default_value": -1 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "image", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "out_1", | |
| "label": "seed used", | |
| "type": "text" | |
| } | |
| ], | |
| "data": { | |
| "width": 1024, | |
| "height": 1024, | |
| "steps": 4, | |
| "guidance": 1.0, | |
| "seed": -1 | |
| }, | |
| "x": 622, | |
| "y": 265, | |
| "width": 300, | |
| "height": 162 | |
| }, | |
| { | |
| "id": "op_edit", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "edit", | |
| "label": "edit · FLUX.2 klein 4B (ZeroGPU)", | |
| "inputs": [ | |
| { | |
| "id": "image", | |
| "label": "image", | |
| "type": "image", | |
| "required": true | |
| }, | |
| { | |
| "id": "instruction", | |
| "label": "instruction", | |
| "type": "text", | |
| "required": true | |
| }, | |
| { | |
| "id": "steps", | |
| "label": "steps", | |
| "type": "number", | |
| "required": false, | |
| "default_value": 4 | |
| }, | |
| { | |
| "id": "guidance", | |
| "label": "guidance", | |
| "type": "number", | |
| "required": false, | |
| "default_value": 1 | |
| }, | |
| { | |
| "id": "seed", | |
| "label": "seed (-1 = random)", | |
| "type": "number", | |
| "required": false, | |
| "default_value": -1 | |
| }, | |
| { | |
| "id": "width", | |
| "label": "width (0 = match input)", | |
| "type": "number", | |
| "required": false, | |
| "default_value": 0 | |
| }, | |
| { | |
| "id": "height", | |
| "label": "height (0 = match input)", | |
| "type": "number", | |
| "required": false, | |
| "default_value": 0 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "edited image", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "out_1", | |
| "label": "seed used", | |
| "type": "text" | |
| } | |
| ], | |
| "data": { | |
| "steps": 4, | |
| "guidance": 1.0, | |
| "seed": -1, | |
| "width": 0, | |
| "height": 0 | |
| }, | |
| "x": 686, | |
| "y": 527, | |
| "width": 300, | |
| "height": 186 | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_generated", | |
| "role": "subject", | |
| "label": "Generated image", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Generated image", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Generated image", | |
| "type": "image" | |
| } | |
| ], | |
| "data": {}, | |
| "x": 1028, | |
| "y": 308, | |
| "width": 300, | |
| "height": 184 | |
| }, | |
| { | |
| "id": "sub_gen_seed", | |
| "role": "subject", | |
| "label": "Generation seed", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Generation seed", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Generation seed", | |
| "type": "text" | |
| } | |
| ], | |
| "data": {}, | |
| "x": 990, | |
| "y": 140, | |
| "width": 220, | |
| "height": 163 | |
| }, | |
| { | |
| "id": "sub_edited", | |
| "role": "subject", | |
| "label": "Edited image", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Edited image", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Edited image", | |
| "type": "image" | |
| } | |
| ], | |
| "data": {}, | |
| "x": 1338, | |
| "y": 420, | |
| "width": 300, | |
| "height": 184 | |
| }, | |
| { | |
| "id": "sub_edit_seed", | |
| "role": "subject", | |
| "label": "Edit seed", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Edit seed", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Edit seed", | |
| "type": "text" | |
| } | |
| ], | |
| "data": {}, | |
| "x": 1150, | |
| "y": 625, | |
| "width": 220, | |
| "height": 163 | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "id": "e1", | |
| "from_node_id": "ref_prompt", | |
| "from_port_id": "out", | |
| "to_node_id": "op_generate", | |
| "to_port_id": "prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e2", | |
| "from_node_id": "op_generate", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_generated", | |
| "to_port_id": "in", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e3", | |
| "from_node_id": "op_generate", | |
| "from_port_id": "out_1", | |
| "to_node_id": "sub_gen_seed", | |
| "to_port_id": "in", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e4", | |
| "from_node_id": "sub_generated", | |
| "from_port_id": "out", | |
| "to_node_id": "op_edit", | |
| "to_port_id": "image", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e5", | |
| "from_node_id": "ref_instruction", | |
| "from_port_id": "out", | |
| "to_node_id": "op_edit", | |
| "to_port_id": "instruction", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e6", | |
| "from_node_id": "op_edit", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_edited", | |
| "to_port_id": "in", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e7", | |
| "from_node_id": "op_edit", | |
| "from_port_id": "out_1", | |
| "to_node_id": "sub_edit_seed", | |
| "to_port_id": "in", | |
| "type": "text" | |
| } | |
| ] | |
| } | |