diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-27 11:36:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 11:36:27 +0000 |
commit | 0a3a83382fc6a3ce113d86cef7da2b8f8e61bce4 (patch) | |
tree | 0e270ca956094527877a499f0b0ad73372810d81 | |
parent | 7ea0859362beb318977249f51853afd4fe8e3100 (diff) | |
parent | 486aeda3a75ed20e75d85d6ae6845d66d1cbe1de (diff) | |
download | stable-diffusion-webui-gfx803-0a3a83382fc6a3ce113d86cef7da2b8f8e61bce4.tar.gz stable-diffusion-webui-gfx803-0a3a83382fc6a3ce113d86cef7da2b8f8e61bce4.tar.bz2 stable-diffusion-webui-gfx803-0a3a83382fc6a3ce113d86cef7da2b8f8e61bce4.zip |
Merge pull request #14775 from AUTOMATIC1111/fix-CLIP-Interrogator-topN-regex
fix CLIP Interrogator topN regex
-rw-r--r-- | modules/interrogate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/interrogate.py b/modules/interrogate.py index 35a627ca..c93e7aa8 100644 --- a/modules/interrogate.py +++ b/modules/interrogate.py @@ -17,7 +17,7 @@ clip_model_name = 'ViT-L/14' Category = namedtuple("Category", ["name", "topn", "items"])
-re_topn = re.compile(r"\.top(\d+)\.")
+re_topn = re.compile(r"\.top(\d+)$")
def category_types():
return [f.stem for f in Path(shared.interrogator.content_dir).glob('*.txt')]
|