aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorJairo Correa <jn.j41r0@gmail.com>2022-09-30 21:58:51 +0000
committerJairo Correa <jn.j41r0@gmail.com>2022-09-30 21:58:51 +0000
commitad1fbbae93fa17f797a76bc59220d074990b85b4 (patch)
tree79ff375c07afee8597598bbcc6fb693ff912dab4 /modules/processing.py
parentc2d5b29040132c171bc4d77f1f63da972306f22c (diff)
parent84e97a98c5233119d0f444e0a3a0f6391da23677 (diff)
downloadstable-diffusion-webui-gfx803-ad1fbbae93fa17f797a76bc59220d074990b85b4.tar.gz
stable-diffusion-webui-gfx803-ad1fbbae93fa17f797a76bc59220d074990b85b4.tar.bz2
stable-diffusion-webui-gfx803-ad1fbbae93fa17f797a76bc59220d074990b85b4.zip
Merge branch 'master' into fix-vram
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py
index de5cda79..a838ebb3 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -508,8 +508,7 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
x_sample = 255. * np.moveaxis(x_sample.cpu().numpy(), 0, 2)
x_sample = x_sample.astype(np.uint8)
image = Image.fromarray(x_sample)
- upscaler = [x for x in shared.sd_upscalers if x.name == opts.upscaler_for_img2img][0]
- image = upscaler.upscale(image, self.width, self.height)
+ image = images.resize_image(0, image, self.width, self.height)
image = np.array(image).astype(np.float32) / 255.0
image = np.moveaxis(image, 2, 0)
batch_images.append(image)