From 8bf9fd34ad19d07d33931bd711aac2191dfaa92f Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 18 Feb 2024 16:51:58 +1100 Subject: [PATCH] fix(nodes): fix model load events was accessing incorrect properties in event data --- .../services/model_load/model_load_default.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/invokeai/app/services/model_load/model_load_default.py b/invokeai/app/services/model_load/model_load_default.py index 24ab10b427..3ff7898c0e 100644 --- a/invokeai/app/services/model_load/model_load_default.py +++ b/invokeai/app/services/model_load/model_load_default.py @@ -97,17 +97,17 @@ class ModelLoadService(ModelLoadServiceBase): if not loaded: self._invoker.services.events.emit_model_load_started( - queue_id=context_data.queue_id, - queue_item_id=context_data.queue_item_id, - queue_batch_id=context_data.batch_id, - graph_execution_state_id=context_data.session_id, + queue_id=context_data.queue_item.queue_id, + queue_item_id=context_data.queue_item.item_id, + queue_batch_id=context_data.queue_item.batch_id, + graph_execution_state_id=context_data.queue_item.session_id, model_config=model_config, ) else: self._invoker.services.events.emit_model_load_completed( - queue_id=context_data.queue_id, - queue_item_id=context_data.queue_item_id, - queue_batch_id=context_data.batch_id, - graph_execution_state_id=context_data.session_id, + queue_id=context_data.queue_item.queue_id, + queue_item_id=context_data.queue_item.item_id, + queue_batch_id=context_data.queue_item.batch_id, + graph_execution_state_id=context_data.queue_item.session_id, model_config=model_config, )