mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
Submodule extensions-builtin/stable-diffusion-webui-rembg updated: cfceed7243...988f8b78c7
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user