From 02bcd51a5af02ee5eab99dcc62e7f77dfbefb254 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Thu, 8 Sep 2022 23:29:36 +0300 Subject: [PATCH] fix aggressive caching for extras tab --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index c9421eec7..6976848a2 100644 --- a/webui.py +++ b/webui.py @@ -88,7 +88,7 @@ def run_extras(image, gfpgan_visibility, codeformer_visibility, codeformer_weigh def upscale(image, scaler_index, resize): 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) + pixels + key = (resize, scaler_index, image.width, image.height, gfpgan_visibility, codeformer_visibility, codeformer_weight) + pixels c = cached_images.get(key) if c is None: