From 0908604ec5d6a260ba75196c9b9cf82f5927ab1a Mon Sep 17 00:00:00 2001 From: gaclove Date: Mon, 8 Sep 2025 16:40:42 +0800 Subject: [PATCH] feat: improve logging for configuration reinitialization in LightX2VModularInference; provide detailed info on config hash changes --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 4141dcb..730a59b 100644 --- a/nodes.py +++ b/nodes.py @@ -771,8 +771,8 @@ class LightX2VModularInference: config_hash = self._get_config_hash(config) needs_reinit = self._current_runner is None or self._current_config_hash != config_hash or getattr(config, "lazy_load", False) + logging.info(f"Needs reinit: {needs_reinit}, old config hash: {self._current_config_hash}, new config hash: {config_hash}") if needs_reinit: - logging.info(f"Reinitializing runner, old config hash: {self._current_config_hash}, new config hash: {config_hash}") if self._current_runner is not None: del self._current_runner torch.cuda.empty_cache()