From 5431dd5f501a17b8e0ceb7f173d79a8ea4391056 Mon Sep 17 00:00:00 2001 From: Sergey Borisov Date: Fri, 12 May 2023 23:08:03 +0300 Subject: [PATCH] Fix event args --- invokeai/app/services/events.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/invokeai/app/services/events.py b/invokeai/app/services/events.py index 03a36962fc..d3f61a70b8 100644 --- a/invokeai/app/services/events.py +++ b/invokeai/app/services/events.py @@ -119,13 +119,13 @@ class EventServiceBase: graph_execution_state_id=graph_execution_state_id, node=node, source_node_id=source_node_id, - model_name=str, - model_type=model_type, + model_name=model_name, + model_type=model_type.name, submodel=submodel, ), ) - def emit_model_load_completed ( + def emit_model_load_completed( self, graph_execution_state_id: str, node: dict, @@ -137,13 +137,13 @@ class EventServiceBase: ) -> None: """Emitted when a model is correctly loaded (returns model info)""" self.__emit_session_event( - event_name="model_load_started", + event_name="model_load_completed", payload=dict( graph_execution_state_id=graph_execution_state_id, node=node, source_node_id=source_node_id, - model_name=str, - model_type=model_type, + model_name=model_name, + model_type=model_type.name, submodel=submodel, model_info=model_info, ),