From 954731d56402a463a71c0626cb22699bc4e43c3b Mon Sep 17 00:00:00 2001 From: Disty0 Date: Wed, 27 Mar 2024 22:00:59 +0300 Subject: [PATCH] fix typo --- finetune/tag_images_by_wd14_tagger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finetune/tag_images_by_wd14_tagger.py b/finetune/tag_images_by_wd14_tagger.py index 1d49afc7..4003210e 100644 --- a/finetune/tag_images_by_wd14_tagger.py +++ b/finetune/tag_images_by_wd14_tagger.py @@ -228,7 +228,7 @@ def main(args): if tag_name not in undesired_tags: tag_freq[tag_name] = tag_freq.get(tag_name, 0) + 1 character_tag_text += caption_separator + tag_name - combined_tags.insert(0,tag_name) # insert to the beggining + combined_tags.insert(0,tag_name) # insert to the beginning #最初の4つはratingなので無視する # First 4 labels are actually ratings: pick one with argmax @@ -241,7 +241,7 @@ def main(args): if found_rating not in undesired_tags: tag_freq[found_rating] = tag_freq.get(found_rating, 0) + 1 rating_tag_text = found_rating - combined_tags.insert(0,found_rating) # insert to the beggining + combined_tags.insert(0,found_rating) # insert to the beginning # 先頭のカンマを取る if len(general_tag_text) > 0: