Bugfix: Adding same Tag twice to Caption

This commit is contained in:
Jan Gerritsen 2023-01-24 16:02:12 +01:00
parent b9825a7077
commit 44fcbb6aa7
1 changed files with 1 additions and 5 deletions

View File

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