From 44fcbb6aa7f92759c79ac471f5aa7d87623252b6 Mon Sep 17 00:00:00 2001 From: Jan Gerritsen Date: Tue, 24 Jan 2023 16:02:12 +0100 Subject: [PATCH] Bugfix: Adding same Tag twice to Caption --- data/image_train_item.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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