diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-30 12:26:41 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-30 12:26:41 +0300 |
commit | 9a54077d4d7ade6031cad33a0dd46f4d9acfa548 (patch) | |
tree | d57643740e0727a03a796eaf0d017d671f57a5ab /modules/processing.py | |
parent | 828d6cce72e23c3da7036086da860ac7bbac593c (diff) |
repair broken highres fix #1109
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index 4ecdfcd2..7eeb5191 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -492,8 +492,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)
|