diff --git a/invokeai/app/services/workflow_records/default_workflows/Flux Text to Image.json b/invokeai/app/services/workflow_records/default_workflows/Flux Text to Image.json new file mode 100644 index 00000000000..4be8ebf07c5 --- /dev/null +++ b/invokeai/app/services/workflow_records/default_workflows/Flux Text to Image.json @@ -0,0 +1,256 @@ +{ + "name": "Flux Text to Image", + "author": "InvokeAI", + "description": "A simple text-to-image workflow using Flux Dev or Flux Schnell", + "version": "1.0.0", + "contact": "", + "tags": "text2image, flux", + "notes": "", + "exposedFields": [ + { + "nodeId": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "fieldName": "model" + }, + { + "nodeId": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "fieldName": "t5_encoder" + }, + { + "nodeId": "7187b891-8b9e-41f2-bad0-579c14c92faf", + "fieldName": "positive_prompt" + } + ], + "meta": { + "version": "3.0.0", + "category": "default" + }, + "nodes": [ + { + "id": "4754c534-a5f3-4ad0-9382-7887985e668c", + "type": "invocation", + "data": { + "id": "4754c534-a5f3-4ad0-9382-7887985e668c", + "type": "rand_int", + "version": "1.0.1", + "label": "", + "notes": "", + "isOpen": true, + "isIntermediate": true, + "useCache": false, + "inputs": { + "low": { + "name": "low", + "label": "", + "value": 0 + }, + "high": { + "name": "high", + "label": "", + "value": 2147483647 + } + } + }, + "position": { + "x": 822.9899179655476, + "y": 360.9657214885052 + } + }, + { + "id": "159bdf1b-79e7-4174-b86e-d40e646964c8", + "type": "invocation", + "data": { + "id": "159bdf1b-79e7-4174-b86e-d40e646964c8", + "type": "flux_text_to_image", + "version": "1.0.0", + "label": "", + "notes": "", + "isOpen": true, + "isIntermediate": false, + "useCache": false, + "inputs": { + "board": { + "name": "board", + "label": "" + }, + "metadata": { + "name": "metadata", + "label": "" + }, + "transformer": { + "name": "transformer", + "label": "" + }, + "vae": { + "name": "vae", + "label": "" + }, + "positive_text_conditioning": { + "name": "positive_text_conditioning", + "label": "" + }, + "width": { + "name": "width", + "label": "", + "value": 1024 + }, + "height": { + "name": "height", + "label": "", + "value": 1024 + }, + "num_steps": { + "name": "num_steps", + "label": "", + "value": 4 + }, + "guidance": { + "name": "guidance", + "label": "", + "value": 4 + }, + "seed": { + "name": "seed", + "label": "", + "value": 0 + } + } + }, + "position": { + "x": 1216.3900791301849, + "y": 5.500841807102248 + } + }, + { + "id": "7187b891-8b9e-41f2-bad0-579c14c92faf", + "type": "invocation", + "data": { + "id": "7187b891-8b9e-41f2-bad0-579c14c92faf", + "type": "flux_text_encoder", + "version": "1.0.0", + "label": "", + "notes": "", + "isOpen": true, + "isIntermediate": true, + "useCache": false, + "inputs": { + "clip": { + "name": "clip", + "label": "" + }, + "t5_encoder": { + "name": "t5_encoder", + "label": "" + }, + "max_seq_len": { + "name": "max_seq_len", + "label": "", + "value": 256 + }, + "positive_prompt": { + "name": "positive_prompt", + "label": "", + "value": "dog eating an ice cream cone while watching the TV" + } + } + }, + "position": { + "x": 809.5428272455715, + "y": 111.5674004989348 + } + }, + { + "id": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "type": "invocation", + "data": { + "id": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "type": "flux_model_loader", + "version": "1.0.3", + "label": "", + "notes": "", + "isOpen": true, + "isIntermediate": true, + "useCache": false, + "inputs": { + "model": { + "name": "model", + "label": "", + "value": { + "key": "a1deb125-2781-482c-8a71-9a22e76fd956", + "hash": "random:40bd0a5b8b2c6edf8f5611e049000329b952efc6a1a24b4f77ca4ae3dbecaf6a", + "name": "flux1-schnell-bnb_nf4", + "base": "flux", + "type": "main" + } + }, + "t5_encoder": { + "name": "t5_encoder", + "label": "", + "value": "8b_quantized" + } + } + }, + "position": { + "x": 407.297070550788, + "y": 37.50301331772734 + } + } + ], + "edges": [ + { + "id": "reactflow__edge-4754c534-a5f3-4ad0-9382-7887985e668cvalue-159bdf1b-79e7-4174-b86e-d40e646964c8seed", + "type": "default", + "source": "4754c534-a5f3-4ad0-9382-7887985e668c", + "target": "159bdf1b-79e7-4174-b86e-d40e646964c8", + "sourceHandle": "value", + "targetHandle": "seed" + }, + { + "id": "reactflow__edge-90701a55-0a0f-444d-ab7d-ea9b7361dd44vae-159bdf1b-79e7-4174-b86e-d40e646964c8vae", + "type": "default", + "source": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "target": "159bdf1b-79e7-4174-b86e-d40e646964c8", + "sourceHandle": "vae", + "targetHandle": "vae" + }, + { + "id": "reactflow__edge-90701a55-0a0f-444d-ab7d-ea9b7361dd44transformer-159bdf1b-79e7-4174-b86e-d40e646964c8transformer", + "type": "default", + "source": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "target": "159bdf1b-79e7-4174-b86e-d40e646964c8", + "sourceHandle": "transformer", + "targetHandle": "transformer" + }, + { + "id": "reactflow__edge-7187b891-8b9e-41f2-bad0-579c14c92fafconditioning-159bdf1b-79e7-4174-b86e-d40e646964c8positive_text_conditioning", + "type": "default", + "source": "7187b891-8b9e-41f2-bad0-579c14c92faf", + "target": "159bdf1b-79e7-4174-b86e-d40e646964c8", + "sourceHandle": "conditioning", + "targetHandle": "positive_text_conditioning" + }, + { + "id": "reactflow__edge-90701a55-0a0f-444d-ab7d-ea9b7361dd44max_seq_len-7187b891-8b9e-41f2-bad0-579c14c92fafmax_seq_len", + "type": "default", + "source": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "target": "7187b891-8b9e-41f2-bad0-579c14c92faf", + "sourceHandle": "max_seq_len", + "targetHandle": "max_seq_len" + }, + { + "id": "reactflow__edge-90701a55-0a0f-444d-ab7d-ea9b7361dd44t5_encoder-7187b891-8b9e-41f2-bad0-579c14c92faft5_encoder", + "type": "default", + "source": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "target": "7187b891-8b9e-41f2-bad0-579c14c92faf", + "sourceHandle": "t5_encoder", + "targetHandle": "t5_encoder" + }, + { + "id": "reactflow__edge-90701a55-0a0f-444d-ab7d-ea9b7361dd44clip-7187b891-8b9e-41f2-bad0-579c14c92fafclip", + "type": "default", + "source": "90701a55-0a0f-444d-ab7d-ea9b7361dd44", + "target": "7187b891-8b9e-41f2-bad0-579c14c92faf", + "sourceHandle": "clip", + "targetHandle": "clip" + } + ] +}