Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:toriato/stable-diffusion-webui-wd…
Browse files Browse the repository at this point in the history
…14-tagger
  • Loading branch information
toriato committed Jan 3, 2023
2 parents d5ea1aa + 988aaab commit 3b8f68a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions install.py

This file was deleted.

5 changes: 3 additions & 2 deletions tagger/interrogator.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def postprocess_tags(
)
}

new_tags = []
for tag in list(tags):
new_tag = tag

Expand All @@ -82,8 +83,8 @@ def postprocess_tags(
if add_confident_as_weight:
new_tag = f'({new_tag}:{tags[tag]})'

if new_tag != tag:
tags[new_tag] = tags.pop(tag)
new_tags.append((new_tag, tags[tag]))
tags = dict(new_tags)

return tags

Expand Down

0 comments on commit 3b8f68a

Please sign in to comment.