Jelajahi Sumber

Don't eat colons in booru tags

guaneec 2 tahun lalu
induk
melakukan
d62ef76614
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  1. 0 2
      modules/deepbooru.py

+ 0 - 2
modules/deepbooru.py

@@ -157,8 +157,6 @@ def get_deepbooru_tags_from_model(model, tags, pil_image, threshold, deepbooru_o
     # sort by reverse by likelihood and normal for alpha, and format tag text as requested
     # sort by reverse by likelihood and normal for alpha, and format tag text as requested
     unsorted_tags_in_theshold.sort(key=lambda y: y[sort_ndx], reverse=(not alpha_sort))
     unsorted_tags_in_theshold.sort(key=lambda y: y[sort_ndx], reverse=(not alpha_sort))
     for weight, tag in unsorted_tags_in_theshold:
     for weight, tag in unsorted_tags_in_theshold:
-        # note: tag_outformat will still have a colon if include_ranks is True
-        tag_outformat = tag.replace(':', ' ')
         if use_spaces:
         if use_spaces:
             tag_outformat = tag_outformat.replace('_', ' ')
             tag_outformat = tag_outformat.replace('_', ' ')
         if use_escape:
         if use_escape: