diff options
author | Muhammad Rizqi Nur <rizqinur2010@gmail.com> | 2022-11-02 20:48:58 +0700 |
---|---|---|
committer | Muhammad Rizqi Nur <rizqinur2010@gmail.com> | 2022-11-02 20:48:58 +0700 |
commit | 237e79c77deec1924b3547f49402b9c1e51c9535 (patch) | |
tree | 589f9aea7ea27791df575371ff322d99ad3f3dbc /modules/extras.py | |
parent | d5ea878b2aa117588d85287cbd8983aa52177df5 (diff) | |
parent | 172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff) |
Merge branch 'master' into gradient-clipping
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 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)
|