From 178e82b643c08091b670b68312789cd3848b1744 Mon Sep 17 00:00:00 2001 From: tazlin Date: Wed, 4 Oct 2023 10:18:45 -0400 Subject: [PATCH] fix: check len not list for available models --- horde_worker_regen/process_management/inference_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horde_worker_regen/process_management/inference_process.py b/horde_worker_regen/process_management/inference_process.py index 7cf7c47e..cc80fe4e 100644 --- a/horde_worker_regen/process_management/inference_process.py +++ b/horde_worker_regen/process_management/inference_process.py @@ -109,7 +109,7 @@ def __init__( ) return - if SharedModelManager.manager.compvis.available_models == 0: + if len(SharedModelManager.manager.compvis.available_models) == 0: logger.critical("No models available in SharedModelManager") self.send_process_state_change_message( process_state=HordeProcessState.PROCESS_ENDED,