mirror of https://github.com/vladmandic/automatic
parent
59a07a33cd
commit
c187aa706a
|
|
@ -1 +1 @@
|
|||
Subproject commit cfceed7243ce97cf8fd64a43df0291448c22a9dd
|
||||
Subproject commit 988f8b78c75f5652226a544d363f5bcda5159bcd
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue