From 6a86fdd78db65fbdb0d32a86496208d264b5534e Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 6 May 2024 16:31:37 -0400 Subject: [PATCH] Fix duplicated version logging (#2856) --- scripts/controlnet.py | 1 + scripts/controlnet_version.py | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/controlnet.py b/scripts/controlnet.py index ab6c3369e..35b349ff2 100644 --- a/scripts/controlnet.py +++ b/scripts/controlnet.py @@ -99,6 +99,7 @@ def swap_img2img_pipeline(p: processing.StableDiffusionProcessingImg2Img): global_state.update_cn_models() +logger.info(f"ControlNet {controlnet_version.version_flag}") def prepare_mask( diff --git a/scripts/controlnet_version.py b/scripts/controlnet_version.py index c5cdc9a72..5b8222290 100644 --- a/scripts/controlnet_version.py +++ b/scripts/controlnet_version.py @@ -1,8 +1,4 @@ -from scripts.logging import logger - version_flag = 'v1.1.448' - -logger.info(f"ControlNet {version_flag}") # A smart trick to know if user has updated as well as if user has restarted terminal. # Note that in "controlnet.py" we do NOT use "importlib.reload" to reload this "controlnet_version.py" # This means if user did not completely restart terminal, the "version_flag" will be the previous version.