aboutsummaryrefslogtreecommitdiffstats
path: root/modules/extras.py
diff options
context:
space:
mode:
authorDepFA <35278260+dfaker@users.noreply.github.com>2022-10-31 02:39:55 +0000
committerGitHub <noreply@github.com>2022-10-31 02:39:55 +0000
commit29f758afe9c09834a1cd2dac3f5dd6fbf7dfeaa7 (patch)
tree39768ef877d14ae462c29563af7f146a9827cf58 /modules/extras.py
parent17a2076f72562b428052ee3fc8c43d19c03ecd1e (diff)
downloadstable-diffusion-webui-gfx803-29f758afe9c09834a1cd2dac3f5dd6fbf7dfeaa7.tar.gz
stable-diffusion-webui-gfx803-29f758afe9c09834a1cd2dac3f5dd6fbf7dfeaa7.tar.bz2
stable-diffusion-webui-gfx803-29f758afe9c09834a1cd2dac3f5dd6fbf7dfeaa7.zip
Extend extras image cache with upscale_first arg
Diffstat (limited to 'modules/extras.py')
-rw-r--r--modules/extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py
index 4d51088b..8e2ab35c 100644
--- a/modules/extras.py
+++ b/modules/extras.py
@@ -141,7 +141,7 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
upscaling_resize_w, upscaling_resize_h, upscaling_crop)
cache_key = LruCache.Key(image_hash=hash(np.array(image.getdata()).tobytes()),
info_hash=hash(info),
- args_hash=hash(upscale_args))
+ args_hash=hash((upscale_args, upscale_first)))
cached_entry = cached_images.get(cache_key)
if cached_entry is None:
res = upscale(image, *upscale_args)