aboutsummaryrefslogtreecommitdiff
path: root/modules/modelloader.py
diff options
context:
space:
mode:
authord8ahazard <d8ahazard@gmail.com>2022-09-29 19:59:53 -0500
committerd8ahazard <d8ahazard@gmail.com>2022-09-29 19:59:53 -0500
commit435fd2112aee9a0e61408ac56663e41beea1e446 (patch)
tree52ba152eb04e1c51f17cfbd6091b1b76b696fd7e /modules/modelloader.py
parentd73741794d38a5c1aacacc7a6ed3fe3ca65724db (diff)
Fixes, cleanup.
Diffstat (limited to 'modules/modelloader.py')
-rw-r--r--modules/modelloader.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/modules/modelloader.py b/modules/modelloader.py
index 6de65c69..51b3ecd5 100644
--- a/modules/modelloader.py
+++ b/modules/modelloader.py
@@ -118,11 +118,9 @@ def load_upscalers():
for cls in Upscaler.__subclasses__():
name = cls.__name__
module_name = cls.__module__
- print(f"Class: {name} and {module_name}")
module = importlib.import_module(module_name)
class_ = getattr(module, name)
cmd_name = f"{name.lower().replace('upscaler', '')}-models-path"
- print(f"CMD Name: {cmd_name}")
opt_string = None
try:
opt_string = shared.opts.__getattr__(cmd_name)
@@ -130,18 +128,6 @@ def load_upscalers():
pass
scaler = class_(opt_string)
for child in scaler.scalers:
- print(f"Appending {child.name}")
datas.append(child)
shared.sd_upscalers = datas
-
- # for scaler in subclasses:
- # print(f"Found scaler: {type(scaler).__name__}")
- # try:
- # scaler = scaler()
- # for child in scaler.scalers:
- # print(f"Appending {child.name}")
- # datas.append[child]
- # except:
- # pass
- # shared.sd_upscalers = datas