diff options
author | Chris OBryan <13701027+cobryan05@users.noreply.github.com> | 2022-10-28 21:55:02 +0000 |
---|---|---|
committer | Chris OBryan <13701027+cobryan05@users.noreply.github.com> | 2022-10-28 21:55:02 +0000 |
commit | d8b366146748555a18b595af400c8cb222ea0ec9 (patch) | |
tree | 1e552e8b22db178050c05de213564d06c92e6be3 /modules/extras.py | |
parent | 5732c0282d529ef2e0591c76e16959e97240dad8 (diff) | |
download | stable-diffusion-webui-gfx803-d8b366146748555a18b595af400c8cb222ea0ec9.tar.gz stable-diffusion-webui-gfx803-d8b366146748555a18b595af400c8cb222ea0ec9.tar.bz2 stable-diffusion-webui-gfx803-d8b366146748555a18b595af400c8cb222ea0ec9.zip |
extras: upscaler blending should not be considered in cache key
Diffstat (limited to 'modules/extras.py')
-rw-r--r-- | modules/extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py index 50026a25..681d8d5a 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 + (upscaler.blend_alpha,)))
+ args_hash=hash(upscale_args))
cached_entry = cached_images.get(cache_key)
if cached_entry is None:
res = upscale(image, *upscale_args)
|