mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
log to print tag frequencies
This commit is contained in:
@@ -291,9 +291,9 @@ def main(args):
|
|||||||
|
|
||||||
if args.frequency_tags:
|
if args.frequency_tags:
|
||||||
sorted_tags = sorted(tag_freq.items(), key=lambda x: x[1], reverse=True)
|
sorted_tags = sorted(tag_freq.items(), key=lambda x: x[1], reverse=True)
|
||||||
logger.info("Tag frequencies:")
|
print("Tag frequencies:")
|
||||||
for tag, freq in sorted_tags:
|
for tag, freq in sorted_tags:
|
||||||
logger.info(f"{tag}: {freq}")
|
print(f"{tag}: {freq}")
|
||||||
|
|
||||||
logger.info("done!")
|
logger.info("done!")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user