mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
9c89d3452c
feat(nodes): add ResultsServiceABC & SqliteResultsService **Doesn't actually work bc of circular imports. Can't even test it.** - add a base class for ResultsService and SQLite implementation - use `graph_execution_manager` `on_changed` callback to keep `results` table in sync fix(nodes): fix results service bugs chore(ui): regen api fix(ui): fix type guards feat(nodes): add `result_type` to results table, fix types fix(nodes): do not shadow `list` builtin feat(nodes): add results router It doesn't work due to circular imports still fix(nodes): Result class should use outputs classes, not fields feat(ui): crude results router fix(ui): send to canvas in currentimagebuttons not working feat(nodes): add core metadata builder feat(nodes): add design doc feat(nodes): wip latents db stuff feat(nodes): images_db_service and resources router feat(nodes): wip images db & router feat(nodes): update image related names feat(nodes): update urlservice feat(nodes): add high-level images service
29 lines
661 B
Python
29 lines
661 B
Python
# TODO: Make a new model for this
|
|
from enum import Enum
|
|
|
|
from invokeai.app.util.enum import MetaEnum
|
|
|
|
|
|
class ResourceType(str, Enum, metaclass=MetaEnum):
|
|
"""The type of a resource."""
|
|
|
|
IMAGES = "images"
|
|
TENSORS = "tensors"
|
|
|
|
|
|
# class ResourceOrigin(str, Enum, metaclass=MetaEnum):
|
|
# """The origin of a resource (eg image or tensor)."""
|
|
|
|
# RESULTS = "results"
|
|
# UPLOADS = "uploads"
|
|
# INTERMEDIATES = "intermediates"
|
|
|
|
|
|
|
|
class TensorKind(str, Enum, metaclass=MetaEnum):
|
|
"""The kind of a tensor. Use TensorKind.OTHER for non-default kinds."""
|
|
|
|
IMAGE_LATENTS = "image_latents"
|
|
CONDITIONING = "conditioning"
|
|
OTHER = "other"
|