diff options
author | DepFA <35278260+dfaker@users.noreply.github.com> | 2022-10-17 21:46:56 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-18 05:29:52 +0000 |
commit | d3338bdef18b3049431a0649d55ff22aa18baa68 (patch) | |
tree | 0a5efe7cbaf8c908f513c391cd86c65e24a3e559 /modules/extras.py | |
parent | 43cb1ddad2af31170352394b81b9a299b151ea05 (diff) | |
download | stable-diffusion-webui-gfx803-d3338bdef18b3049431a0649d55ff22aa18baa68.tar.gz stable-diffusion-webui-gfx803-d3338bdef18b3049431a0649d55ff22aa18baa68.tar.bz2 stable-diffusion-webui-gfx803-d3338bdef18b3049431a0649d55ff22aa18baa68.zip |
extras extend cache key with new upscale to options
Diffstat (limited to 'modules/extras.py')
-rw-r--r-- | modules/extras.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py index 8dbab240..c908b43e 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -91,7 +91,8 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_ def upscale(image, scaler_index, resize, mode, resize_w, resize_h, crop):
small = image.crop((image.width // 2, image.height // 2, image.width // 2 + 10, image.height // 2 + 10))
pixels = tuple(np.array(small).flatten().tolist())
- key = (resize, scaler_index, image.width, image.height, gfpgan_visibility, codeformer_visibility, codeformer_weight) + pixels
+ key = (resize, scaler_index, image.width, image.height, gfpgan_visibility, codeformer_visibility, codeformer_weight,
+ resize_mode, upscaling_resize, upscaling_resize_w, upscaling_resize_h, upscaling_crop) + pixels
c = cached_images.get(key)
if c is None:
|