mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Mark FLUX nodes as prototypes.
This commit is contained in:
parent
94aba5892a
commit
0c5649491e
@ -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."""
|
||||||
|
@ -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."""
|
||||||
|
@ -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."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user