diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-08 20:29:36 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-08 20:29:36 +0000 |
commit | 02bcd51a5af02ee5eab99dcc62e7f77dfbefb254 (patch) | |
tree | 8321f2e978a0b0862ff1fc51410f3e18d2a7d466 | |
parent | ec33d6e84270a9d4b566d7cd9d89893a297cf68e (diff) | |
download | stable-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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:
|