aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ldsr_model_arch.py
diff options
context:
space:
mode:
authord8ahazard <d8ahazard@gmail.com>2022-10-02 12:56:22 +0000
committerGitHub <noreply@github.com>2022-10-02 12:56:22 +0000
commit5d26ba2b4b84b64d82150ae70495f928b3b0b116 (patch)
tree71cb73ba018dab302ea1dfa8c3f368137106a6af /modules/ldsr_model_arch.py
parent8deae077004f0332ca607fc3a5d568b1a4705bec (diff)
parent5f561ee95dcb09d92ea67bab5561dced93fe3d00 (diff)
downloadstable-diffusion-webui-gfx803-5d26ba2b4b84b64d82150ae70495f928b3b0b116.tar.gz
stable-diffusion-webui-gfx803-5d26ba2b4b84b64d82150ae70495f928b3b0b116.tar.bz2
stable-diffusion-webui-gfx803-5d26ba2b4b84b64d82150ae70495f928b3b0b116.zip
Merge branch 'master' into ScuNET
Diffstat (limited to 'modules/ldsr_model_arch.py')
-rw-r--r--modules/ldsr_model_arch.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/ldsr_model_arch.py b/modules/ldsr_model_arch.py
index 7faac6e1..14db5076 100644
--- a/modules/ldsr_model_arch.py
+++ b/modules/ldsr_model_arch.py
@@ -98,9 +98,7 @@ class LDSR:
im_og = image
width_og, height_og = im_og.size
# If we can adjust the max upscale size, then the 4 below should be our variable
- print("Foo")
down_sample_rate = target_scale / 4
- print(f"Downsample rate is {down_sample_rate}")
wd = width_og * down_sample_rate
hd = height_og * down_sample_rate
width_downsampled_pre = int(wd)
@@ -111,7 +109,7 @@ class LDSR:
f'Downsampling from [{width_og}, {height_og}] to [{width_downsampled_pre}, {height_downsampled_pre}]')
im_og = im_og.resize((width_downsampled_pre, height_downsampled_pre), Image.LANCZOS)
else:
- print(f"Down sample rate is 1 from {target_scale} / 4")
+ print(f"Down sample rate is 1 from {target_scale} / 4 (Not downsampling)")
logs = self.run(model["model"], im_og, diffusion_steps, eta)
sample = logs["sample"]