aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bsrgan_model.py
diff options
context:
space:
mode:
authord8ahazard <d8ahazard@gmail.com>2022-09-30 17:51:57 +0000
committerd8ahazard <d8ahazard@gmail.com>2022-09-30 17:51:57 +0000
commit3665551b120d86a11d7eefa0dc33ecce812a2c94 (patch)
tree7adb84216a59ca46622d1422553ec961c8f7ad3c /modules/bsrgan_model.py
parent8f1d412e7bcd279c3c49b0153def0e3d6d941e5a (diff)
parent2162be514a5af4af56118e744c33de363e7bd97e (diff)
downloadstable-diffusion-webui-gfx803-3665551b120d86a11d7eefa0dc33ecce812a2c94.tar.gz
stable-diffusion-webui-gfx803-3665551b120d86a11d7eefa0dc33ecce812a2c94.tar.bz2
stable-diffusion-webui-gfx803-3665551b120d86a11d7eefa0dc33ecce812a2c94.zip
Merge branch 'master' of https://github.com/d8ahazard/stable-diffusion-webui
Diffstat (limited to 'modules/bsrgan_model.py')
-rw-r--r--modules/bsrgan_model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bsrgan_model.py b/modules/bsrgan_model.py
index 165f77b5..827a50a5 100644
--- a/modules/bsrgan_model.py
+++ b/modules/bsrgan_model.py
@@ -67,7 +67,7 @@ class UpscalerBSRGAN(modules.upscaler.Upscaler):
else:
filename = path
if not os.path.exists(filename) or filename is None:
- print("Unable to load %s from %s" % (self.model_path, filename))
+ print(f"BSRGAN: Unable to load model from {filename}", file=sys.stderr)
return None
print("Loading %s from %s" % (self.model_path, filename))
model = RRDBNet(in_nc=3, out_nc=3, nf=64, nb=23, gc=32, sf=4) # define network