Fix duplicated version logging (#2856)

pull/2857/head^2
Chenlei Hu 2024-05-06 16:31:37 -04:00 committed by GitHub
parent 80bf7481c2
commit 6a86fdd78d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -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(

View File

@ -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.