Merge pull request #28 from JanGerritsen/Bugfix_Adding_Tag_Twice

Bugfix: Adding same Tag twice to Caption
This commit is contained in:
Victor Hall 2023-01-24 07:12:56 -08:00 committed by GitHub
commit f0e8ee55df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -105,10 +105,6 @@ class ImageCaption:
if caption:
caption += ", "
caption += tag
if caption:
caption += ", "
caption += tag
return caption
@ -395,4 +391,4 @@ class ImageTrainItem:
min_xy = min(x, y)
image = image.crop((x_crop, y_crop, x_crop + min_xy, y_crop + min_xy))
return image
return image