|
""" |
|
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, |
|
Classification, |
|
invocation, |
|
invocation_output, |
|
) |
|
from invokeai.app.invocations.fields import ( |
|
BoardField, |
|
BoundingBoxField, |
|
ColorField, |
|
ConditioningField, |
|
DenoiseMaskField, |
|
FieldDescriptions, |
|
FieldKind, |
|
ImageField, |
|
Input, |
|
InputField, |
|
LatentsField, |
|
MetadataField, |
|
OutputField, |
|
UIComponent, |
|
UIType, |
|
WithBoard, |
|
WithMetadata, |
|
WithWorkflow, |
|
) |
|
from invokeai.app.invocations.metadata import MetadataItemField, MetadataItemOutput, MetadataOutput |
|
from invokeai.app.invocations.model import ( |
|
CLIPField, |
|
CLIPOutput, |
|
LoRALoaderOutput, |
|
ModelIdentifierField, |
|
ModelLoaderOutput, |
|
SDXLLoRALoaderOutput, |
|
UNetField, |
|
UNetOutput, |
|
VAEField, |
|
VAEOutput, |
|
) |
|
from invokeai.app.invocations.primitives import ( |
|
BooleanCollectionOutput, |
|
BooleanOutput, |
|
BoundingBoxOutput, |
|
ColorCollectionOutput, |
|
ColorOutput, |
|
ConditioningCollectionOutput, |
|
ConditioningOutput, |
|
DenoiseMaskOutput, |
|
FloatCollectionOutput, |
|
FloatOutput, |
|
ImageCollectionOutput, |
|
ImageOutput, |
|
IntegerCollectionOutput, |
|
IntegerOutput, |
|
LatentsCollectionOutput, |
|
LatentsOutput, |
|
StringCollectionOutput, |
|
StringOutput, |
|
) |
|
from invokeai.app.invocations.scheduler import SchedulerOutput |
|
from invokeai.app.services.boards.boards_common import BoardDTO |
|
from invokeai.app.services.config.config_default import InvokeAIAppConfig |
|
from invokeai.app.services.image_records.image_records_common import ImageCategory |
|
from invokeai.app.services.shared.invocation_context import InvocationContext |
|
from invokeai.app.services.workflow_records.workflow_records_common import WorkflowWithoutID |
|
from invokeai.app.util.misc import SEED_MAX, get_random_seed |
|
from invokeai.backend.model_manager.config import BaseModelType, ModelType, SubModelType |
|
from invokeai.backend.model_manager.load.load_base import LoadedModel |
|
from invokeai.backend.stable_diffusion.diffusers_pipeline import PipelineIntermediateState |
|
from invokeai.backend.stable_diffusion.diffusion.conditioning_data import ( |
|
BasicConditioningInfo, |
|
ConditioningFieldData, |
|
SDXLConditioningInfo, |
|
) |
|
from invokeai.backend.stable_diffusion.schedulers.schedulers import SCHEDULER_NAME_VALUES |
|
from invokeai.backend.util.devices import CPU_DEVICE, CUDA_DEVICE, MPS_DEVICE, choose_precision, choose_torch_device |
|
from invokeai.version import __version__ |
|
|
|
__all__ = [ |
|
|
|
"BaseInvocation", |
|
"BaseInvocationOutput", |
|
"Classification", |
|
"invocation", |
|
"invocation_output", |
|
|
|
"InvocationContext", |
|
|
|
"BoardField", |
|
"BoundingBoxField", |
|
"ColorField", |
|
"ConditioningField", |
|
"DenoiseMaskField", |
|
"FieldDescriptions", |
|
"FieldKind", |
|
"ImageField", |
|
"Input", |
|
"InputField", |
|
"LatentsField", |
|
"MetadataField", |
|
"OutputField", |
|
"UIComponent", |
|
"UIType", |
|
"WithBoard", |
|
"WithMetadata", |
|
"WithWorkflow", |
|
|
|
"SchedulerOutput", |
|
|
|
"MetadataItemField", |
|
"MetadataItemOutput", |
|
"MetadataOutput", |
|
|
|
"ModelIdentifierField", |
|
"UNetField", |
|
"CLIPField", |
|
"VAEField", |
|
"UNetOutput", |
|
"VAEOutput", |
|
"CLIPOutput", |
|
"ModelLoaderOutput", |
|
"LoRALoaderOutput", |
|
"SDXLLoRALoaderOutput", |
|
|
|
"BooleanCollectionOutput", |
|
"BooleanOutput", |
|
"BoundingBoxOutput", |
|
"ColorCollectionOutput", |
|
"ColorOutput", |
|
"ConditioningCollectionOutput", |
|
"ConditioningOutput", |
|
"DenoiseMaskOutput", |
|
"FloatCollectionOutput", |
|
"FloatOutput", |
|
"ImageCollectionOutput", |
|
"ImageOutput", |
|
"IntegerCollectionOutput", |
|
"IntegerOutput", |
|
"LatentsCollectionOutput", |
|
"LatentsOutput", |
|
"StringCollectionOutput", |
|
"StringOutput", |
|
|
|
"ImageCategory", |
|
|
|
"BoardDTO", |
|
|
|
"BasicConditioningInfo", |
|
"ConditioningFieldData", |
|
"SDXLConditioningInfo", |
|
|
|
"PipelineIntermediateState", |
|
|
|
"WorkflowWithoutID", |
|
|
|
"InvokeAIAppConfig", |
|
|
|
"LoadedModel", |
|
|
|
"BaseModelType", |
|
"ModelType", |
|
"SubModelType", |
|
|
|
"SCHEDULER_NAME_VALUES", |
|
|
|
"__version__", |
|
|
|
"choose_precision", |
|
"choose_torch_device", |
|
"CPU_DEVICE", |
|
"CUDA_DEVICE", |
|
"MPS_DEVICE", |
|
|
|
"SEED_MAX", |
|
"get_random_seed", |
|
] |
|
|