Spaces:
Running
Running
Download workflow.json from hmb/flux-compare: direct link, hf CLI and curl.
- Browser
- Download file 9.31 kB
-
https://huggingface.co/spaces/hmb/flux-compare/resolve/main/workflow.json
- Command line
-
hf download hf://spaces/hmb/flux-compare/workflow.json
-
curl -L -o workflow.json https://huggingface.co/spaces/hmb/flux-compare/resolve/main/workflow.json
9.31 kB
| { | |
| "schema_version": "2", | |
| "name": "FLUX 3 Klein vs FLUX.2 Klein", | |
| "references": [ | |
| { | |
| "id": "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 wide-angle wildlife photograph of a red fox standing alert in a snow-covered forest clearing at golden hour, soft blue shadows on fresh snow." | |
| } | |
| }, | |
| { | |
| "id": "seed", | |
| "role": "reference", | |
| "label": "Seed (shared)", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Seed (shared)", | |
| "type": "number" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Seed (shared)", | |
| "type": "number" | |
| } | |
| ], | |
| "data": { | |
| "out": 42 | |
| } | |
| }, | |
| { | |
| "id": "width", | |
| "role": "reference", | |
| "label": "Width", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Width", | |
| "type": "number" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Width", | |
| "type": "number" | |
| } | |
| ], | |
| "data": { | |
| "out": 1024 | |
| } | |
| }, | |
| { | |
| "id": "height", | |
| "role": "reference", | |
| "label": "Height", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Height", | |
| "type": "number" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Height", | |
| "type": "number" | |
| } | |
| ], | |
| "data": { | |
| "out": 1024 | |
| } | |
| }, | |
| { | |
| "id": "mode_choice", | |
| "role": "reference", | |
| "label": "Mode (shared: Base (50 steps) valid on both)", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Mode (shared: Base (50 steps) valid on both)", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Mode (shared: Base (50 steps) valid on both)", | |
| "type": "text" | |
| } | |
| ], | |
| "data": { | |
| "out": "Base (50 steps)" | |
| } | |
| }, | |
| { | |
| "id": "num_inference_steps", | |
| "role": "reference", | |
| "label": "Steps", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Steps", | |
| "type": "number" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Steps", | |
| "type": "number" | |
| } | |
| ], | |
| "data": { | |
| "out": 50 | |
| } | |
| }, | |
| { | |
| "id": "guidance_scale", | |
| "role": "reference", | |
| "label": "Guidance", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Guidance", | |
| "type": "number" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Guidance", | |
| "type": "number" | |
| } | |
| ], | |
| "data": { | |
| "out": 3.5 | |
| } | |
| }, | |
| { | |
| "id": "prompt_upsampling", | |
| "role": "reference", | |
| "label": "Prompt upsampling", | |
| "asset_type": "boolean", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Prompt upsampling", | |
| "type": "boolean" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Prompt upsampling", | |
| "type": "boolean" | |
| } | |
| ], | |
| "data": { | |
| "out": false | |
| } | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "klein3", | |
| "role": "operator", | |
| "kind": "space", | |
| "space_id": "black-forest-labs/flux-3-image-klein", | |
| "endpoint": "/generate", | |
| "label": "FLUX 3 Image Klein (new, 5.6B)", | |
| "inputs": [ | |
| { | |
| "id": "prompt", | |
| "label": "Prompt", | |
| "type": "text", | |
| "required": true | |
| }, | |
| { | |
| "id": "input_images", | |
| "label": "Input images", | |
| "type": "json" | |
| }, | |
| { | |
| "id": "mode_choice", | |
| "label": "Mode", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "seed", | |
| "label": "Seed", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "randomize_seed", | |
| "label": "Randomize seed", | |
| "type": "boolean" | |
| }, | |
| { | |
| "id": "width", | |
| "label": "Width", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "height", | |
| "label": "Height", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "num_inference_steps", | |
| "label": "Steps", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "guidance_scale", | |
| "label": "Guidance", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "prompt_upsampling", | |
| "label": "Prompt upsampling", | |
| "type": "boolean" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "image", | |
| "label": "Image", | |
| "type": "image", | |
| "output_index": 0 | |
| } | |
| ], | |
| "data": { | |
| "input_images": [], | |
| "randomize_seed": false | |
| } | |
| }, | |
| { | |
| "id": "klein2", | |
| "role": "operator", | |
| "kind": "space", | |
| "space_id": "black-forest-labs/FLUX.2-klein-4B", | |
| "endpoint": "/infer", | |
| "label": "FLUX.2 Klein 4B (previous)", | |
| "inputs": [ | |
| { | |
| "id": "prompt", | |
| "label": "Prompt", | |
| "type": "text", | |
| "required": true | |
| }, | |
| { | |
| "id": "input_images", | |
| "label": "Input images", | |
| "type": "json" | |
| }, | |
| { | |
| "id": "mode_choice", | |
| "label": "Mode", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "seed", | |
| "label": "Seed", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "randomize_seed", | |
| "label": "Randomize seed", | |
| "type": "boolean" | |
| }, | |
| { | |
| "id": "width", | |
| "label": "Width", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "height", | |
| "label": "Height", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "num_inference_steps", | |
| "label": "Steps", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "guidance_scale", | |
| "label": "Guidance", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "prompt_upsampling", | |
| "label": "Prompt upsampling", | |
| "type": "boolean" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "image", | |
| "label": "Image", | |
| "type": "image", | |
| "output_index": 0 | |
| } | |
| ], | |
| "data": { | |
| "input_images": [], | |
| "randomize_seed": false | |
| } | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "out_klein3", | |
| "role": "subject", | |
| "label": "FLUX 3 Image Klein", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "FLUX 3 Image Klein", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "FLUX 3 Image Klein", | |
| "type": "image" | |
| } | |
| ], | |
| "data": {} | |
| }, | |
| { | |
| "id": "out_klein2", | |
| "role": "subject", | |
| "label": "FLUX.2 Klein 4B (previous)", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "FLUX.2 Klein 4B (previous)", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "FLUX.2 Klein 4B (previous)", | |
| "type": "image" | |
| } | |
| ], | |
| "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "id": "e0", | |
| "from_node_id": "prompt", | |
| "from_port_id": "out", | |
| "to_node_id": "klein3", | |
| "to_port_id": "prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e1", | |
| "from_node_id": "seed", | |
| "from_port_id": "out", | |
| "to_node_id": "klein3", | |
| "to_port_id": "seed", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e2", | |
| "from_node_id": "width", | |
| "from_port_id": "out", | |
| "to_node_id": "klein3", | |
| "to_port_id": "width", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e3", | |
| "from_node_id": "height", | |
| "from_port_id": "out", | |
| "to_node_id": "klein3", | |
| "to_port_id": "height", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e4", | |
| "from_node_id": "mode_choice", | |
| "from_port_id": "out", | |
| "to_node_id": "klein3", | |
| "to_port_id": "mode_choice", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e5", | |
| "from_node_id": "num_inference_steps", | |
| "from_port_id": "out", | |
| "to_node_id": "klein3", | |
| "to_port_id": "num_inference_steps", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e6", | |
| "from_node_id": "guidance_scale", | |
| "from_port_id": "out", | |
| "to_node_id": "klein3", | |
| "to_port_id": "guidance_scale", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e7", | |
| "from_node_id": "prompt_upsampling", | |
| "from_port_id": "out", | |
| "to_node_id": "klein3", | |
| "to_port_id": "prompt_upsampling", | |
| "type": "boolean" | |
| }, | |
| { | |
| "id": "e8", | |
| "from_node_id": "klein3", | |
| "from_port_id": "image", | |
| "to_node_id": "out_klein3", | |
| "to_port_id": "in", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e9", | |
| "from_node_id": "prompt", | |
| "from_port_id": "out", | |
| "to_node_id": "klein2", | |
| "to_port_id": "prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e10", | |
| "from_node_id": "seed", | |
| "from_port_id": "out", | |
| "to_node_id": "klein2", | |
| "to_port_id": "seed", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e11", | |
| "from_node_id": "width", | |
| "from_port_id": "out", | |
| "to_node_id": "klein2", | |
| "to_port_id": "width", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e12", | |
| "from_node_id": "height", | |
| "from_port_id": "out", | |
| "to_node_id": "klein2", | |
| "to_port_id": "height", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e13", | |
| "from_node_id": "mode_choice", | |
| "from_port_id": "out", | |
| "to_node_id": "klein2", | |
| "to_port_id": "mode_choice", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e14", | |
| "from_node_id": "num_inference_steps", | |
| "from_port_id": "out", | |
| "to_node_id": "klein2", | |
| "to_port_id": "num_inference_steps", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e15", | |
| "from_node_id": "guidance_scale", | |
| "from_port_id": "out", | |
| "to_node_id": "klein2", | |
| "to_port_id": "guidance_scale", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e16", | |
| "from_node_id": "prompt_upsampling", | |
| "from_port_id": "out", | |
| "to_node_id": "klein2", | |
| "to_port_id": "prompt_upsampling", | |
| "type": "boolean" | |
| }, | |
| { | |
| "id": "e17", | |
| "from_node_id": "klein2", | |
| "from_port_id": "image", | |
| "to_node_id": "out_klein2", | |
| "to_port_id": "in", | |
| "type": "image" | |
| } | |
| ] | |
| } |