From c187aa706aa109c42ab5224dd25cd75b6a557090 Mon Sep 17 00:00:00 2001 From: vladmandic Date: Wed, 18 Mar 2026 09:25:09 +0100 Subject: [PATCH] cleanup Signed-off-by: vladmandic --- extensions-builtin/stable-diffusion-webui-rembg | 2 +- modules/loader.py | 1 + modules/upscaler.py | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/extensions-builtin/stable-diffusion-webui-rembg b/extensions-builtin/stable-diffusion-webui-rembg index cfceed724..988f8b78c 160000 --- a/extensions-builtin/stable-diffusion-webui-rembg +++ b/extensions-builtin/stable-diffusion-webui-rembg @@ -1 +1 @@ -Subproject commit cfceed7243ce97cf8fd64a43df0291448c22a9dd +Subproject commit 988f8b78c75f5652226a544d363f5bcda5159bcd diff --git a/modules/loader.py b/modules/loader.py index 306481274..5e7b5a0a8 100644 --- a/modules/loader.py +++ b/modules/loader.py @@ -124,6 +124,7 @@ timer.startup.record("bnb") import huggingface_hub # pylint: disable=W0611,C0411 logging.getLogger("huggingface_hub.file_download").setLevel(logging.ERROR) +logging.getLogger("huggingface_hub.utils._http").setLevel(logging.ERROR) timer.startup.record("hfhub") import accelerate # pylint: disable=W0611,C0411 diff --git a/modules/upscaler.py b/modules/upscaler.py index 2423cee67..44dfad48d 100644 --- a/modules/upscaler.py +++ b/modules/upscaler.py @@ -51,6 +51,9 @@ class Upscaler: except Exception: pass + def __str__(self): + return f"Upscaler(name={self.name}, model_path={self.model_path}, user_path={self.user_path})" + def find_folder(self, folder, scalers, loaded): for fn in os.listdir(folder): # from folder file_name = os.path.join(folder, fn) @@ -161,6 +164,9 @@ class UpscalerData: self.scale = scale self.model = model + def __str__(self): + return f"UpscalerData(name={self.name}, path={self.data_path}, scale={self.scale})" + def compile_upscaler(model): if "Upscaler" in shared.opts.ipex_optimize: