Skip to content

Commit

Permalink
Merge pull request #14775 from AUTOMATIC1111/fix-CLIP-Interrogator-to…
Browse files Browse the repository at this point in the history
…pN-regex

fix CLIP Interrogator topN regex
  • Loading branch information
AUTOMATIC1111 authored Jan 27, 2024
2 parents 7ea0859 + 486aeda commit 0a3a833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/interrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

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')]
Expand Down

0 comments on commit 0a3a833

Please sign in to comment.