feat(nodes): bump version of flux model node, update default workflow

This commit is contained in:
maryhipp 2024-08-28 15:57:49 -04:00 committed by Mary Hipp Rogers
parent 3f5340fa53
commit 16825ee6e9
2 changed files with 38 additions and 44 deletions

View File

@ -157,7 +157,7 @@ class FluxModelLoaderOutput(BaseInvocationOutput):
title="Flux Main Model", title="Flux Main Model",
tags=["model", "flux"], tags=["model", "flux"],
category="model", category="model",
version="1.0.3", version="1.0.4",
classification=Classification.Prototype, classification=Classification.Prototype,
) )
class FluxModelLoaderInvocation(BaseInvocation): class FluxModelLoaderInvocation(BaseInvocation):

View File

@ -2,13 +2,13 @@
"name": "FLUX Text to Image", "name": "FLUX Text to Image",
"author": "InvokeAI", "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.", "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": "", "contact": "",
"tags": "text2image, flux", "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.", "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": [ "exposedFields": [
{ {
"nodeId": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", "nodeId": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90",
"fieldName": "model" "fieldName": "model"
}, },
{ {
@ -20,8 +20,8 @@
"fieldName": "num_steps" "fieldName": "num_steps"
}, },
{ {
"nodeId": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", "nodeId": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90",
"fieldName": "t5_encoder" "fieldName": "t5_encoder_model"
} }
], ],
"meta": { "meta": {
@ -30,12 +30,12 @@
}, },
"nodes": [ "nodes": [
{ {
"id": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", "id": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90",
"type": "invocation", "type": "invocation",
"data": { "data": {
"id": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", "id": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90",
"type": "flux_model_loader", "type": "flux_model_loader",
"version": "1.0.3", "version": "1.0.4",
"label": "", "label": "",
"notes": "", "notes": "",
"isOpen": true, "isOpen": true,
@ -44,31 +44,25 @@
"inputs": { "inputs": {
"model": { "model": {
"name": "model", "name": "model",
"label": "Model (Starter Models can be found in Model Manager)", "label": ""
"value": {
"key": "f04a7a2f-c74d-4538-8d5e-879a53501662",
"hash": "random:4875da7a9508444ffa706f61961c260d0c6729f6181a86b31fad06df1277b850",
"name": "FLUX Dev (Quantized)",
"base": "flux",
"type": "main"
}
}, },
"t5_encoder": { "t5_encoder_model": {
"name": "t5_encoder", "name": "t5_encoder_model",
"label": "T 5 Encoder (Starter Models can be found in Model Manager)", "label": ""
"value": { },
"key": "20dcd9ec-5fbb-4012-8401-049e707da5e5", "clip_embed_model": {
"hash": "random:f986be43ff3502169e4adbdcee158afb0e0a65a1edc4cab16ae59963630cfd8f", "name": "clip_embed_model",
"name": "t5_bnb_int8_quantized_encoder", "label": ""
"base": "any", },
"type": "t5_encoder" "vae_model": {
} "name": "vae_model",
"label": ""
} }
} }
}, },
"position": { "position": {
"x": 337.09365228062825, "x": 381.1882713063478,
"y": 40.63469521079861 "y": -95.89663532854017
} }
}, },
{ {
@ -207,45 +201,45 @@
], ],
"edges": [ "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", "type": "default",
"source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90",
"target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c", "target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c",
"sourceHandle": "max_seq_len", "sourceHandle": "max_seq_len",
"targetHandle": "t5_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", "type": "default",
"source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90",
"target": "159bdf1b-79e7-4174-b86e-d40e646964c8", "target": "159bdf1b-79e7-4174-b86e-d40e646964c8",
"sourceHandle": "vae", "sourceHandle": "vae",
"targetHandle": "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", "type": "default",
"source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90",
"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",
"target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c", "target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c",
"sourceHandle": "t5_encoder", "sourceHandle": "t5_encoder",
"targetHandle": "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", "type": "default",
"source": "4f0207c2-ff40-41fd-b047-ad33fbb1c33a", "source": "f8d9d7c8-9ed7-4bd7-9e42-ab0e89bfac90",
"target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c", "target": "01f674f8-b3d1-4df1-acac-6cb8e0bfb63c",
"sourceHandle": "clip", "sourceHandle": "clip",
"targetHandle": "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", "id": "reactflow__edge-01f674f8-b3d1-4df1-acac-6cb8e0bfb63cconditioning-159bdf1b-79e7-4174-b86e-d40e646964c8positive_text_conditioning",
"type": "default", "type": "default",