From 16825ee6e98b0c4ac470f395e5874a594d8c7000 Mon Sep 17 00:00:00 2001 From: maryhipp Date: Wed, 28 Aug 2024 15:57:49 -0400 Subject: [PATCH] feat(nodes): bump version of flux model node, update default workflow --- invokeai/app/invocations/model.py | 2 +- .../default_workflows/Flux Text to Image.json | 80 +++++++++---------- 2 files changed, 38 insertions(+), 44 deletions(-) diff --git a/invokeai/app/invocations/model.py b/invokeai/app/invocations/model.py index 0427b1677b..ef32f7bc01 100644 --- a/invokeai/app/invocations/model.py +++ b/invokeai/app/invocations/model.py @@ -157,7 +157,7 @@ class FluxModelLoaderOutput(BaseInvocationOutput): title="Flux Main Model", tags=["model", "flux"], category="model", - version="1.0.3", + version="1.0.4", classification=Classification.Prototype, ) class FluxModelLoaderInvocation(BaseInvocation): 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 index 783fdeed5e..7e392de5fa 100644 --- 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 @@ -2,13 +2,13 @@ "name": "FLUX Text to Image", "author": "InvokeAI", "description": "A simple text-to-image workflow using FLUX dev or schnell models. Prerequisite model downloads: T5 Encoder, CLIP-L Encoder, and FLUX VAE. Quantized and un-quantized versions can be found in the starter models tab within your Model Manager. We recommend 4 steps for FLUX schnell models and 30 steps for FLUX dev models.", - "version": "1.0.0", + "version": "1.0.4", "contact": "", "tags": "text2image, flux", "notes": "Prerequisite model downloads: T5 Encoder, CLIP-L Encoder, and FLUX VAE. Quantized and un-quantized versions can be found in the starter models tab within your Model Manager. We recommend 4 steps for FLUX schnell models and 30 steps for FLUX dev models.", "exposedFields": [ { - "nodeId": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", + "nodeId": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", "fieldName": "model" }, { @@ -20,8 +20,8 @@ "fieldName": "num_steps" }, { - "nodeId": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", - "fieldName": "t5_encoder" + "nodeId": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", + "fieldName": "t5_encoder_model" } ], "meta": { @@ -30,12 +30,12 @@ }, "nodes": [ { - "id": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", + "id": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", "type": "invocation", "data": { - "id": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", + "id": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", "type": "flux_model_loader", - "version": "1.0.3", + "version": "1.0.4", "label": "", "notes": "", "isOpen": true, @@ -44,31 +44,25 @@ "inputs": { "model": { "name": "model", - "label": "Model (Starter Models can be found in Model Manager)", - "value": { - "key": "f04a7a2f-c74d-4538-8d5e-879a53501662", - "hash": "random:4875da7a9508444ffa706f61961c260d0c6729f6181a86b31fad06df1277b850", - "name": "FLUX Dev (Quantized)", - "base": "flux", - "type": "main" - } + "label": "" }, - "t5_encoder": { - "name": "t5_encoder", - "label": "T 5 Encoder (Starter Models can be found in Model Manager)", - "value": { - "key": "20dcd9ec-5fbb-4012-8401-049e707da5e5", - "hash": "random:f986be43ff3502169e4adbdcee158afb0e0a65a1edc4cab16ae59963630cfd8f", - "name": "t5_bnb_int8_quantized_encoder", - "base": "any", - "type": "t5_encoder" - } + "t5_encoder_model": { + "name": "t5_encoder_model", + "label": "" + }, + "clip_embed_model": { + "name": "clip_embed_model", + "label": "" + }, + "vae_model": { + "name": "vae_model", + "label": "" } } }, "position": { - "x": 337.09365228062825, - "y": 40.63469521079861 + "x": 381.1882713063478, + "y": -95.89663532854017 } }, { @@ -207,45 +201,45 @@ ], "edges": [ { - "id": "reactflow__edge-4f0207c2-ff40-41fd-b047-ad33fbb1c33amax_seq_len-01f674f8-b3d1-4df1-acac-6cb8e0bfb63ct5_max_seq_len", + "id": "reactflow__edge-f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90max_seq_len-01f674f8-b3d1-4df1-acac-6cb8e0bfb63ct5_max_seq_len", "type": "default", - "source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", + "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", "target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c", "sourceHandle": "max_seq_len", "targetHandle": "t5_max_seq_len" }, { - "id": "reactflow__edge-4f0207c2-ff40-41fd-b047-ad33fbb1c33avae-159bdf1b-79e7-4174-b86e-d40e646964c8vae", + "id": "reactflow__edge-f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90vae-159bdf1b-79e7-4174-b86e-d40e646964c8vae", "type": "default", - "source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", + "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", "target": "159bdf1b-79e7-4174-b86e-d40e646964c8", "sourceHandle": "vae", "targetHandle": "vae" }, { - "id": "reactflow__edge-4f0207c2-ff40-41fd-b047-ad33fbb1c33atransformer-159bdf1b-79e7-4174-b86e-d40e646964c8transformer", + "id": "reactflow__edge-f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90t5_encoder-01f674f8-b3d1-4df1-acac-6cb8e0bfb63ct5_encoder", "type": "default", - "source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", - "target": "159bdf1b-79e7-4174-b86e-d40e646964c8", - "sourceHandle": "transformer", - "targetHandle": "transformer" - }, - { - "id": "reactflow__edge-4f0207c2-ff40-41fd-b047-ad33fbb1c33at5_encoder-01f674f8-b3d1-4df1-acac-6cb8e0bfb63ct5_encoder", - "type": "default", - "source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", + "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", "target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c", "sourceHandle": "t5_encoder", "targetHandle": "t5_encoder" }, { - "id": "reactflow__edge-4f0207c2-ff40-41fd-b047-ad33fbb1c33aclip-01f674f8-b3d1-4df1-acac-6cb8e0bfb63cclip", + "id": "reactflow__edge-f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90clip-01f674f8-b3d1-4df1-acac-6cb8e0bfb63cclip", "type": "default", - "source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", + "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", "target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c", "sourceHandle": "clip", "targetHandle": "clip" }, + { + "id": "reactflow__edge-f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90transformer-159bdf1b-79e7-4174-b86e-d40e646964c8transformer", + "type": "default", + "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90", + "target": "159bdf1b-79e7-4174-b86e-d40e646964c8", + "sourceHandle": "transformer", + "targetHandle": "transformer" + }, { "id": "reactflow__edge-01f674f8-b3d1-4df1-acac-6cb8e0bfb63cconditioning-159bdf1b-79e7-4174-b86e-d40e646964c8positive_text_conditioning", "type": "default",