aboutsummaryrefslogtreecommitdiffstats
path: root/modules/esrgan_model.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-21 05:39:47 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-21 05:39:47 +0000
commit8d1d64f9a238272d7a166d21e25cf529c09b2ad5 (patch)
tree9bfa8239c7bfcd8070c12f56d2743bcf3681dab6 /modules/esrgan_model.py
parent1578859305f3593fa213309e505905e607a0e52c (diff)
downloadstable-diffusion-webui-gfx803-8d1d64f9a238272d7a166d21e25cf529c09b2ad5.tar.gz
stable-diffusion-webui-gfx803-8d1d64f9a238272d7a166d21e25cf529c09b2ad5.tar.bz2
stable-diffusion-webui-gfx803-8d1d64f9a238272d7a166d21e25cf529c09b2ad5.zip
fix for swininr PR breaking ESRGAN for new users
Diffstat (limited to 'modules/esrgan_model.py')
-rw-r--r--modules/esrgan_model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/esrgan_model.py b/modules/esrgan_model.py
index 7f3baf31..930e790c 100644
--- a/modules/esrgan_model.py
+++ b/modules/esrgan_model.py
@@ -92,10 +92,10 @@ def upscale_without_tiling(model, img):
def esrgan_upscale(model, img):
- if opts.ESRGAN_tile == 0:
+ if opts.GAN_tile == 0:
return upscale_without_tiling(model, img)
- grid = modules.images.split_grid(img, opts.ESRGAN_tile, opts.ESRGAN_tile, opts.ESRGAN_tile_overlap)
+ grid = modules.images.split_grid(img, opts.GAN_tile, opts.GAN_tile, opts.GAN_tile_overlap)
newtiles = []
scale_factor = 1