File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2828 workflows ,
2929)
3030from invokeai .app .api .sockets import SocketIO
31- from invokeai .app .invocations .load_custom_nodes import load_custom_nodes
3231from invokeai .app .services .config .config_default import get_config
3332from invokeai .app .util .custom_openapi import get_openapi_func
3433from invokeai .backend .util .logging import InvokeAILogger
3837
3938loop = asyncio .new_event_loop ()
4039
41- # Load custom nodes. This must be done after importing the Graph class, which itself imports all modules from the
42- # invocations module. The ordering here is implicit, but important - we want to load custom nodes after all the
43- # core nodes have been imported so that we can catch when a custom node clobbers a core node.
44- load_custom_nodes (custom_nodes_path = app_config .custom_nodes_path )
45-
4640
4741@asynccontextmanager
4842async def lifespan (app : FastAPI ):
Original file line number Diff line number Diff line change 11import uvicorn
22
3+ from invokeai .app .invocations .load_custom_nodes import load_custom_nodes
34from invokeai .app .services .config .config_default import get_config
45from invokeai .app .util .startup_utils import (
56 apply_monkeypatches ,
@@ -47,6 +48,11 @@ def run_app() -> None:
4748 # Initialize the app and event loop.
4849 app , loop = get_app ()
4950
51+ # Load custom nodes. This must be done after importing the Graph class, which itself imports all modules from the
52+ # invocations module. The ordering here is implicit, but important - we want to load custom nodes after all the
53+ # core nodes have been imported so that we can catch when a custom node clobbers a core node.
54+ load_custom_nodes (custom_nodes_path = app_config .custom_nodes_path )
55+
5056 # Start the server.
5157 config = uvicorn .Config (
5258 app = app ,
You can’t perform that action at this time.
0 commit comments