diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-21 06:09:20 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-21 06:09:20 +0000 |
commit | 6785fabefb57e95f563527ce6171ec4fa9ea6b7d (patch) | |
tree | 1ad1d6724a9a784594c870b98b701c9a4da7d202 /modules/esrgan_model.py | |
parent | 8d1d64f9a238272d7a166d21e25cf529c09b2ad5 (diff) | |
download | stable-diffusion-webui-gfx803-6785fabefb57e95f563527ce6171ec4fa9ea6b7d.tar.gz stable-diffusion-webui-gfx803-6785fabefb57e95f563527ce6171ec4fa9ea6b7d.tar.bz2 stable-diffusion-webui-gfx803-6785fabefb57e95f563527ce6171ec4fa9ea6b7d.zip |
Revert "fix for swininr PR breaking ESRGAN for new users"
This reverts commit 8d1d64f9a238272d7a166d21e25cf529c09b2ad5.
Diffstat (limited to 'modules/esrgan_model.py')
-rw-r--r-- | modules/esrgan_model.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/esrgan_model.py b/modules/esrgan_model.py index 930e790c..7f3baf31 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.GAN_tile == 0:
+ if opts.ESRGAN_tile == 0:
return upscale_without_tiling(model, img)
- grid = modules.images.split_grid(img, opts.GAN_tile, opts.GAN_tile, opts.GAN_tile_overlap)
+ grid = modules.images.split_grid(img, opts.ESRGAN_tile, opts.ESRGAN_tile, opts.ESRGAN_tile_overlap)
newtiles = []
scale_factor = 1
|