InvokeAI/ldm/invoke/app/services/invocation_services.py

21 lines
612 B
Python
Raw Normal View History

# Copyright (c) 2022 Kyle Schouviller (https://github.com/kyle0654)
from .image_storage import ImageStorageBase
from .events import EventServiceBase
from ....generate import Generate
class InvocationServices():
"""Services that can be used by invocations"""
generate: Generate # TODO: wrap Generate, or split it up from model?
events: EventServiceBase
images: ImageStorageBase
def __init__(self,
generate: Generate,
events: EventServiceBase,
images: ImageStorageBase
):
self.generate = generate
self.events = events
self.images = images