2024-01-14 23:48:33 +00:00
|
|
|
"""
|
|
|
|
This file re-exports all the public API for invocations. This is the only file that should be imported by custom nodes.
|
|
|
|
|
|
|
|
TODO(psyche): Do we want to dogfood this?
|
|
|
|
"""
|
|
|
|
|
|
|
|
from invokeai.app.invocations.baseinvocation import (
|
|
|
|
BaseInvocation,
|
|
|
|
BaseInvocationOutput,
|
2024-02-10 23:06:53 +00:00
|
|
|
Classification,
|
2024-01-14 23:48:33 +00:00
|
|
|
invocation,
|
|
|
|
invocation_output,
|
|
|
|
)
|
2024-02-10 23:06:53 +00:00
|
|
|
from invokeai.app.invocations.constants import SCHEDULER_NAME_VALUES
|
2024-01-14 23:48:33 +00:00
|
|
|
from invokeai.app.invocations.fields import (
|
|
|
|
BoardField,
|
|
|
|
ColorField,
|
|
|
|
ConditioningField,
|
|
|
|
DenoiseMaskField,
|
|
|
|
FieldDescriptions,
|
|
|
|
FieldKind,
|
|
|
|
ImageField,
|
|
|
|
Input,
|
|
|
|
InputField,
|
|
|
|
LatentsField,
|
|
|
|
MetadataField,
|
|
|
|
OutputField,
|
|
|
|
UIComponent,
|
|
|
|
UIType,
|
|
|
|
WithMetadata,
|
|
|
|
WithWorkflow,
|
|
|
|
)
|
2024-02-10 23:06:53 +00:00
|
|
|
from invokeai.app.invocations.latent import SchedulerOutput
|
|
|
|
from invokeai.app.invocations.metadata import MetadataItemField, MetadataItemOutput, MetadataOutput
|
2024-02-10 22:39:36 +00:00
|
|
|
from invokeai.app.invocations.model import (
|
2024-03-06 08:42:47 +00:00
|
|
|
CLIPField,
|
2024-02-10 22:39:36 +00:00
|
|
|
CLIPOutput,
|
2024-03-06 08:42:47 +00:00
|
|
|
LoRALoaderOutput,
|
2024-03-06 08:37:15 +00:00
|
|
|
ModelField,
|
2024-02-10 22:39:36 +00:00
|
|
|
ModelLoaderOutput,
|
2024-03-06 08:42:47 +00:00
|
|
|
SDXLLoRALoaderOutput,
|
2024-02-10 22:39:36 +00:00
|
|
|
UNetField,
|
|
|
|
UNetOutput,
|
2024-03-06 08:42:47 +00:00
|
|
|
VAEField,
|
2024-02-10 22:39:36 +00:00
|
|
|
VAEOutput,
|
|
|
|
)
|
2024-01-14 23:48:33 +00:00
|
|
|
from invokeai.app.invocations.primitives import (
|
|
|
|
BooleanCollectionOutput,
|
|
|
|
BooleanOutput,
|
|
|
|
ColorCollectionOutput,
|
|
|
|
ColorOutput,
|
|
|
|
ConditioningCollectionOutput,
|
|
|
|
ConditioningOutput,
|
|
|
|
DenoiseMaskOutput,
|
|
|
|
FloatCollectionOutput,
|
|
|
|
FloatOutput,
|
|
|
|
ImageCollectionOutput,
|
|
|
|
ImageOutput,
|
|
|
|
IntegerCollectionOutput,
|
|
|
|
IntegerOutput,
|
|
|
|
LatentsCollectionOutput,
|
|
|
|
LatentsOutput,
|
|
|
|
StringCollectionOutput,
|
|
|
|
StringOutput,
|
|
|
|
)
|
2024-02-05 06:48:32 +00:00
|
|
|
from invokeai.app.services.boards.boards_common import BoardDTO
|
|
|
|
from invokeai.app.services.config.config_default import InvokeAIAppConfig
|
2024-01-14 23:48:33 +00:00
|
|
|
from invokeai.app.services.image_records.image_records_common import ImageCategory
|
|
|
|
from invokeai.app.services.shared.invocation_context import InvocationContext
|
2024-02-05 06:48:32 +00:00
|
|
|
from invokeai.app.services.workflow_records.workflow_records_common import WorkflowWithoutID
|
2024-02-10 23:06:53 +00:00
|
|
|
from invokeai.app.util.misc import SEED_MAX, get_random_seed
|
2024-03-06 08:37:15 +00:00
|
|
|
from invokeai.backend.model_manager.config import BaseModelType, ModelType, SubModelType
|
|
|
|
from invokeai.backend.model_manager.load.load_base import LoadedModel
|
2024-02-05 06:48:32 +00:00
|
|
|
from invokeai.backend.stable_diffusion.diffusers_pipeline import PipelineIntermediateState
|
2024-01-14 23:48:33 +00:00
|
|
|
from invokeai.backend.stable_diffusion.diffusion.conditioning_data import (
|
|
|
|
BasicConditioningInfo,
|
|
|
|
ConditioningFieldData,
|
|
|
|
ExtraConditioningInfo,
|
|
|
|
SDXLConditioningInfo,
|
|
|
|
)
|
2024-02-10 23:06:53 +00:00
|
|
|
from invokeai.backend.util.devices import CPU_DEVICE, CUDA_DEVICE, MPS_DEVICE, choose_precision, choose_torch_device
|
|
|
|
from invokeai.version import __version__
|
2024-01-14 23:48:33 +00:00
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
# invokeai.app.invocations.baseinvocation
|
|
|
|
"BaseInvocation",
|
|
|
|
"BaseInvocationOutput",
|
2024-02-10 23:06:53 +00:00
|
|
|
"Classification",
|
2024-01-14 23:48:33 +00:00
|
|
|
"invocation",
|
|
|
|
"invocation_output",
|
|
|
|
# invokeai.app.services.shared.invocation_context
|
|
|
|
"InvocationContext",
|
|
|
|
# invokeai.app.invocations.fields
|
|
|
|
"BoardField",
|
|
|
|
"ColorField",
|
|
|
|
"ConditioningField",
|
|
|
|
"DenoiseMaskField",
|
|
|
|
"FieldDescriptions",
|
|
|
|
"FieldKind",
|
|
|
|
"ImageField",
|
|
|
|
"Input",
|
|
|
|
"InputField",
|
|
|
|
"LatentsField",
|
|
|
|
"MetadataField",
|
|
|
|
"OutputField",
|
|
|
|
"UIComponent",
|
|
|
|
"UIType",
|
|
|
|
"WithMetadata",
|
|
|
|
"WithWorkflow",
|
2024-02-10 23:06:53 +00:00
|
|
|
# invokeai.app.invocations.latent
|
|
|
|
"SchedulerOutput",
|
|
|
|
# invokeai.app.invocations.metadata
|
|
|
|
"MetadataItemField",
|
|
|
|
"MetadataItemOutput",
|
|
|
|
"MetadataOutput",
|
2024-02-10 22:39:36 +00:00
|
|
|
# invokeai.app.invocations.model
|
2024-03-06 08:37:15 +00:00
|
|
|
"ModelField",
|
2024-02-10 22:39:36 +00:00
|
|
|
"UNetField",
|
2024-03-06 08:42:47 +00:00
|
|
|
"CLIPField",
|
|
|
|
"VAEField",
|
2024-02-10 22:39:36 +00:00
|
|
|
"UNetOutput",
|
|
|
|
"VAEOutput",
|
|
|
|
"CLIPOutput",
|
|
|
|
"ModelLoaderOutput",
|
2024-03-06 08:42:47 +00:00
|
|
|
"LoRALoaderOutput",
|
|
|
|
"SDXLLoRALoaderOutput",
|
2024-01-14 23:48:33 +00:00
|
|
|
# invokeai.app.invocations.primitives
|
|
|
|
"BooleanCollectionOutput",
|
|
|
|
"BooleanOutput",
|
|
|
|
"ColorCollectionOutput",
|
|
|
|
"ColorOutput",
|
|
|
|
"ConditioningCollectionOutput",
|
|
|
|
"ConditioningOutput",
|
|
|
|
"DenoiseMaskOutput",
|
|
|
|
"FloatCollectionOutput",
|
|
|
|
"FloatOutput",
|
|
|
|
"ImageCollectionOutput",
|
|
|
|
"ImageOutput",
|
|
|
|
"IntegerCollectionOutput",
|
|
|
|
"IntegerOutput",
|
|
|
|
"LatentsCollectionOutput",
|
|
|
|
"LatentsOutput",
|
|
|
|
"StringCollectionOutput",
|
|
|
|
"StringOutput",
|
|
|
|
# invokeai.app.services.image_records.image_records_common
|
|
|
|
"ImageCategory",
|
2024-02-05 06:48:32 +00:00
|
|
|
# invokeai.app.services.boards.boards_common
|
|
|
|
"BoardDTO",
|
2024-01-14 23:48:33 +00:00
|
|
|
# invokeai.backend.stable_diffusion.diffusion.conditioning_data
|
|
|
|
"BasicConditioningInfo",
|
|
|
|
"ConditioningFieldData",
|
|
|
|
"ExtraConditioningInfo",
|
|
|
|
"SDXLConditioningInfo",
|
2024-02-05 06:48:32 +00:00
|
|
|
# invokeai.backend.stable_diffusion.diffusers_pipeline
|
|
|
|
"PipelineIntermediateState",
|
|
|
|
# invokeai.app.services.workflow_records.workflow_records_common
|
|
|
|
"WorkflowWithoutID",
|
|
|
|
# invokeai.app.services.config.config_default
|
|
|
|
"InvokeAIAppConfig",
|
|
|
|
# invokeai.backend.model_management.model_manager
|
2024-03-06 08:37:15 +00:00
|
|
|
"LoadedModel",
|
2024-02-05 06:48:32 +00:00
|
|
|
# invokeai.backend.model_management.models.base
|
|
|
|
"BaseModelType",
|
|
|
|
"ModelType",
|
|
|
|
"SubModelType",
|
2024-02-10 23:06:53 +00:00
|
|
|
# invokeai.app.invocations.constants
|
|
|
|
"SCHEDULER_NAME_VALUES",
|
|
|
|
# invokeai.version
|
|
|
|
"__version__",
|
|
|
|
# invokeai.backend.util.devices
|
|
|
|
"choose_precision",
|
|
|
|
"choose_torch_device",
|
|
|
|
"CPU_DEVICE",
|
|
|
|
"CUDA_DEVICE",
|
|
|
|
"MPS_DEVICE",
|
|
|
|
# invokeai.app.util.misc
|
|
|
|
"SEED_MAX",
|
|
|
|
"get_random_seed",
|
2024-01-14 23:48:33 +00:00
|
|
|
]
|