aboutsummaryrefslogtreecommitdiff
path: root/modules/extras.py
diff options
context:
space:
mode:
authorMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-11-02 20:48:58 +0700
committerMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-11-02 20:48:58 +0700
commit237e79c77deec1924b3547f49402b9c1e51c9535 (patch)
tree589f9aea7ea27791df575371ff322d99ad3f3dbc /modules/extras.py
parentd5ea878b2aa117588d85287cbd8983aa52177df5 (diff)
parent172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff)
Merge branch 'master' into gradient-clipping
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)