aboutsummaryrefslogtreecommitdiffstats
path: root/modules/upscaler.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2023-12-25 12:43:51 +0000
committerAarni Koskela <akx@iki.fi>2023-12-30 14:24:01 +0000
commitb0f59342346b1c8b405f97c0e0bb01c6ae05c601 (patch)
tree8f77ec512bf8c3352d03898cf9bf1c26df02c1a0 /modules/upscaler.py
parente472383acbb9e07dca311abe5fb16ee2675e410a (diff)
downloadstable-diffusion-webui-gfx803-b0f59342346b1c8b405f97c0e0bb01c6ae05c601.tar.gz
stable-diffusion-webui-gfx803-b0f59342346b1c8b405f97c0e0bb01c6ae05c601.tar.bz2
stable-diffusion-webui-gfx803-b0f59342346b1c8b405f97c0e0bb01c6ae05c601.zip
Use Spandrel for upscaling and face restoration architectures (aside from GFPGAN and LDSR)
Diffstat (limited to 'modules/upscaler.py')
-rw-r--r--modules/upscaler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/upscaler.py b/modules/upscaler.py
index b256e085..3aee69db 100644
--- a/modules/upscaler.py
+++ b/modules/upscaler.py
@@ -98,6 +98,9 @@ class UpscalerData:
self.scale = scale
self.model = model
+ def __repr__(self):
+ return f"<UpscalerData name={self.name} path={self.data_path} scale={self.scale}>"
+
class UpscalerNone(Upscaler):
name = "None"