Revert "fix for swininr PR breaking ESRGAN for new users"

This reverts commit 8d1d64f9a2.
This commit is contained in:
AUTOMATIC
2022-09-21 09:09:20 +03:00
parent 8d1d64f9a2
commit 6785fabefb
2 changed files with 3 additions and 3 deletions

View File

@@ -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