diff --git a/data/image_train_item.py b/data/image_train_item.py index d882678..2db8630 100644 --- a/data/image_train_item.py +++ b/data/image_train_item.py @@ -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 \ No newline at end of file + return image