From 79fecba274effaefb849fa24236553fe000c2af3 Mon Sep 17 00:00:00 2001 From: Sergey Borisov Date: Fri, 12 May 2023 23:05:08 +0300 Subject: [PATCH] Fix model manager initialization in web ui --- invokeai/app/api/dependencies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/app/api/dependencies.py b/invokeai/app/api/dependencies.py index 99127c4332..0e0d7481a7 100644 --- a/invokeai/app/api/dependencies.py +++ b/invokeai/app/api/dependencies.py @@ -8,7 +8,6 @@ from typing import types from ..services.default_graphs import create_system_graphs from ..services.latent_storage import DiskLatentsStorage, ForwardCacheLatentsStorage from ...backend import Globals -from ..services.model_manager_initializer import get_model_manager from ..services.restoration_services import RestorationServices from ..services.graph import GraphExecutionState, LibraryGraph from ..services.image_storage import DiskImageStorage @@ -18,6 +17,7 @@ from ..services.invoker import Invoker from ..services.processor import DefaultInvocationProcessor from ..services.sqlite import SqliteItemStorage from ..services.metadata import PngMetadataService +from ..services.model_manager_service import ModelManagerService from .events import FastAPIEventService @@ -70,7 +70,7 @@ class ApiDependencies: db_location = os.path.join(output_folder, "invokeai.db") services = InvocationServices( - model_manager=get_model_manager(config,logger), + model_manager=ModelManagerService(config,logger), events=events, logger=logger, latents=latents,