Spaces:
Running
Running
| { | |
| "schema_version": "2", | |
| "name": "Krea 2 Creative pipeline", | |
| "references": [ | |
| { | |
| "id": "ref_prompt", | |
| "label": "Input Prompt", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Text", | |
| "type": "text", | |
| "default_value": "immense rocket launch exhaust as seen from extremely close up" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Text", | |
| "type": "text", | |
| "default_value": "immense rocket launch exhaust as seen from extremely close up" | |
| } | |
| ], | |
| "x": 80, | |
| "y": 50, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": "immense rocket launch exhaust as seen from extremely close up", | |
| "out": "immense rocket launch exhaust as seen from extremely close up" | |
| } | |
| }, | |
| { | |
| "id": "ref_style", | |
| "label": "Enhancement Preset", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Style Name", | |
| "type": "text", | |
| "default_value": "None (Pass-through)" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Style Name", | |
| "type": "text", | |
| "default_value": "None (Pass-through)" | |
| } | |
| ], | |
| "x": 80, | |
| "y": 200, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": "None (Pass-through)", | |
| "out": "None (Pass-through)" | |
| } | |
| }, | |
| { | |
| "id": "ref_neg_prompt", | |
| "label": "Negative Prompt", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Text", | |
| "type": "text", | |
| "default_value": "blurry, low quality" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Text", | |
| "type": "text", | |
| "default_value": "blurry, low quality" | |
| } | |
| ], | |
| "x": 80, | |
| "y": 350, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": "blurry, low quality", | |
| "out": "blurry, low quality" | |
| } | |
| }, | |
| { | |
| "id": "ref_steps", | |
| "label": "Steps", | |
| "role": "reference", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 8 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 8 | |
| } | |
| ], | |
| "x": 80, | |
| "y": 500, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": 8, | |
| "out": 8 | |
| } | |
| }, | |
| { | |
| "id": "ref_guidance", | |
| "label": "Guidance Scale", | |
| "role": "reference", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 0.0 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 0.0 | |
| } | |
| ], | |
| "x": 80, | |
| "y": 650, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": 0.0, | |
| "out": 0.0 | |
| } | |
| }, | |
| { | |
| "id": "ref_width", | |
| "label": "Width", | |
| "role": "reference", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 1024 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 1024 | |
| } | |
| ], | |
| "x": 380, | |
| "y": 50, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": 1024, | |
| "out": 1024 | |
| } | |
| }, | |
| { | |
| "id": "ref_height", | |
| "label": "Height", | |
| "role": "reference", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 1024 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 1024 | |
| } | |
| ], | |
| "x": 380, | |
| "y": 200, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": 1024, | |
| "out": 1024 | |
| } | |
| }, | |
| { | |
| "id": "ref_seed", | |
| "label": "Seed", | |
| "role": "reference", | |
| "asset_type": "number", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 42 | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Number", | |
| "type": "number", | |
| "default_value": 42 | |
| } | |
| ], | |
| "x": 380, | |
| "y": 350, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": 42, | |
| "out": 42 | |
| } | |
| }, | |
| { | |
| "id": "ref_randomize", | |
| "label": "Randomize Seed", | |
| "role": "reference", | |
| "asset_type": "boolean", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Boolean", | |
| "type": "boolean", | |
| "default_value": false | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Boolean", | |
| "type": "boolean", | |
| "default_value": false | |
| } | |
| ], | |
| "x": 380, | |
| "y": 500, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": false, | |
| "out": false | |
| } | |
| }, | |
| { | |
| "id": "ref_filter", | |
| "label": "Filter Selection", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Filter Name", | |
| "type": "text", | |
| "default_value": "None" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Filter Name", | |
| "type": "text", | |
| "default_value": "None" | |
| } | |
| ], | |
| "x": 380, | |
| "y": 650, | |
| "width": 220, | |
| "height": 120, | |
| "data": { | |
| "in": "None", | |
| "out": "None" | |
| } | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_enhance", | |
| "label": "Enhance Prompt", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "Enhance Prompt", | |
| "inputs": [ | |
| { | |
| "id": "in_prompt", | |
| "label": "prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "in_style", | |
| "label": "style", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "output", | |
| "type": "text" | |
| } | |
| ], | |
| "x": 380, | |
| "y": 800, | |
| "width": 220, | |
| "height": 140, | |
| "data": {} | |
| }, | |
| { | |
| "id": "op_krea", | |
| "label": "Krea 2 Generator", | |
| "role": "operator", | |
| "kind": "space", | |
| "space_id": "krea/Krea-2", | |
| "endpoint": "/generate", | |
| "inputs": [ | |
| { | |
| "id": "in_0", | |
| "label": "Prompt", | |
| "type": "text", | |
| "required": true | |
| }, | |
| { | |
| "id": "in_1", | |
| "label": "Negative prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "in_2", | |
| "label": "Model", | |
| "type": "text", | |
| "value": "Turbo", | |
| "default_value": "Turbo" | |
| }, | |
| { | |
| "id": "in_3", | |
| "label": "Steps", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "in_4", | |
| "label": "Guidance scale", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "in_5", | |
| "label": "Width", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "in_6", | |
| "label": "Height", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "in_7", | |
| "label": "Seed", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "in_8", | |
| "label": "Randomize seed", | |
| "type": "boolean" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "Result", | |
| "type": "image", | |
| "output_index": 0 | |
| }, | |
| { | |
| "id": "out_1", | |
| "label": "Seed", | |
| "type": "number", | |
| "output_index": 1 | |
| } | |
| ], | |
| "x": 680, | |
| "y": 100, | |
| "width": 220, | |
| "height": 280, | |
| "data": { | |
| "in_2": "Turbo" | |
| } | |
| }, | |
| { | |
| "id": "op_filter", | |
| "label": "Apply Filter", | |
| "role": "operator", | |
| "kind": "fn", | |
| "fn": "Apply Filter", | |
| "inputs": [ | |
| { | |
| "id": "in_image", | |
| "label": "image", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "in_filter_type", | |
| "label": "filter_type", | |
| "type": "text" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out_0", | |
| "label": "output", | |
| "type": "image" | |
| } | |
| ], | |
| "x": 980, | |
| "y": 250, | |
| "width": 220, | |
| "height": 140, | |
| "data": {} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_result", | |
| "label": "Final Output Image", | |
| "role": "subject", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { | |
| "id": "in", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "id": "out", | |
| "label": "Image", | |
| "type": "image" | |
| } | |
| ], | |
| "x": 1280, | |
| "y": 270, | |
| "width": 220, | |
| "height": 110, | |
| "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "id": "e_prompt", | |
| "from_node_id": "ref_prompt", | |
| "from_port_id": "out", | |
| "to_node_id": "op_enhance", | |
| "to_port_id": "in_prompt", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_style", | |
| "from_node_id": "ref_style", | |
| "from_port_id": "out", | |
| "to_node_id": "op_enhance", | |
| "to_port_id": "in_style", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_enhance_krea", | |
| "from_node_id": "op_enhance", | |
| "from_port_id": "out_0", | |
| "to_node_id": "op_krea", | |
| "to_port_id": "in_0", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_neg_prompt", | |
| "from_node_id": "ref_neg_prompt", | |
| "from_port_id": "out", | |
| "to_node_id": "op_krea", | |
| "to_port_id": "in_1", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_steps", | |
| "from_node_id": "ref_steps", | |
| "from_port_id": "out", | |
| "to_node_id": "op_krea", | |
| "to_port_id": "in_3", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e_guidance", | |
| "from_node_id": "ref_guidance", | |
| "from_port_id": "out", | |
| "to_node_id": "op_krea", | |
| "to_port_id": "in_4", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e_width", | |
| "from_node_id": "ref_width", | |
| "from_port_id": "out", | |
| "to_node_id": "op_krea", | |
| "to_port_id": "in_5", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e_height", | |
| "from_node_id": "ref_height", | |
| "from_port_id": "out", | |
| "to_node_id": "op_krea", | |
| "to_port_id": "in_6", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e_seed", | |
| "from_node_id": "ref_seed", | |
| "from_port_id": "out", | |
| "to_node_id": "op_krea", | |
| "to_port_id": "in_7", | |
| "type": "number" | |
| }, | |
| { | |
| "id": "e_randomize", | |
| "from_node_id": "ref_randomize", | |
| "from_port_id": "out", | |
| "to_node_id": "op_krea", | |
| "to_port_id": "in_8", | |
| "type": "boolean" | |
| }, | |
| { | |
| "id": "e_krea_filter", | |
| "from_node_id": "op_krea", | |
| "from_port_id": "out_0", | |
| "to_node_id": "op_filter", | |
| "to_port_id": "in_image", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e_filter_selection", | |
| "from_node_id": "ref_filter", | |
| "from_port_id": "out", | |
| "to_node_id": "op_filter", | |
| "to_port_id": "in_filter_type", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_filter_subject", | |
| "from_node_id": "op_filter", | |
| "from_port_id": "out_0", | |
| "to_node_id": "sub_result", | |
| "to_port_id": "in", | |
| "type": "image" | |
| } | |
| ] | |
| } |