Mark FLUX nodes as prototypes.

This commit is contained in:
Ryan Dick 2024-08-22 15:29:59 +00:00 committed by Brandon
parent 94aba5892a
commit 0c5649491e
3 changed files with 12 additions and 3 deletions

View File

@ -3,7 +3,7 @@ from typing import Literal
import torch import torch
from transformers import CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5Tokenizer from transformers import CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5Tokenizer
from invokeai.app.invocations.baseinvocation import BaseInvocation, invocation from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation
from invokeai.app.invocations.fields import FieldDescriptions, Input, InputField from invokeai.app.invocations.fields import FieldDescriptions, Input, InputField
from invokeai.app.invocations.model import CLIPField, T5EncoderField from invokeai.app.invocations.model import CLIPField, T5EncoderField
from invokeai.app.invocations.primitives import ConditioningOutput from invokeai.app.invocations.primitives import ConditioningOutput
@ -18,6 +18,7 @@ from invokeai.backend.stable_diffusion.diffusion.conditioning_data import Condit
tags=["prompt", "conditioning", "flux"], tags=["prompt", "conditioning", "flux"],
category="conditioning", category="conditioning",
version="1.0.0", version="1.0.0",
classification=Classification.Prototype,
) )
class FluxTextEncoderInvocation(BaseInvocation): class FluxTextEncoderInvocation(BaseInvocation):
"""Encodes and preps a prompt for a flux image.""" """Encodes and preps a prompt for a flux image."""

View File

@ -2,7 +2,7 @@ import torch
from einops import rearrange, repeat from einops import rearrange, repeat
from PIL import Image from PIL import Image
from invokeai.app.invocations.baseinvocation import BaseInvocation, invocation from invokeai.app.invocations.baseinvocation import BaseInvocation, Classification, invocation
from invokeai.app.invocations.fields import ( from invokeai.app.invocations.fields import (
ConditioningField, ConditioningField,
FieldDescriptions, FieldDescriptions,
@ -28,6 +28,7 @@ from invokeai.backend.util.devices import TorchDevice
tags=["image", "flux"], tags=["image", "flux"],
category="image", category="image",
version="1.0.0", version="1.0.0",
classification=Classification.Prototype,
) )
class FluxTextToImageInvocation(BaseInvocation, WithMetadata, WithBoard): class FluxTextToImageInvocation(BaseInvocation, WithMetadata, WithBoard):
"""Text-to-image generation using a FLUX model.""" """Text-to-image generation using a FLUX model."""

View File

@ -152,7 +152,14 @@ class FluxModelLoaderOutput(BaseInvocationOutput):
) )
@invocation("flux_model_loader", title="Flux Main Model", tags=["model", "flux"], category="model", version="1.0.3") @invocation(
"flux_model_loader",
title="Flux Main Model",
tags=["model", "flux"],
category="model",
version="1.0.3",
classification=Classification.Prototype,
)
class FluxModelLoaderInvocation(BaseInvocation): class FluxModelLoaderInvocation(BaseInvocation):
"""Loads a flux base model, outputting its submodels.""" """Loads a flux base model, outputting its submodels."""