aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-08 20:29:36 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-08 20:29:36 +0000
commit02bcd51a5af02ee5eab99dcc62e7f77dfbefb254 (patch)
tree8321f2e978a0b0862ff1fc51410f3e18d2a7d466
parentec33d6e84270a9d4b566d7cd9d89893a297cf68e (diff)
downloadstable-diffusion-webui-gfx803-02bcd51a5af02ee5eab99dcc62e7f77dfbefb254.tar.gz
stable-diffusion-webui-gfx803-02bcd51a5af02ee5eab99dcc62e7f77dfbefb254.tar.bz2
stable-diffusion-webui-gfx803-02bcd51a5af02ee5eab99dcc62e7f77dfbefb254.zip
fix aggressive caching for extras tab
-rw-r--r--webui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui.py b/webui.py
index c9421eec..6976848a 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: