Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2026-03-18 09:25:09 +01:00
parent 59a07a33cd
commit c187aa706a
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -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
+6
View File
@@ -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: