Bugfix: Adding same Tag twice to Caption
This commit is contained in:
parent
b9825a7077
commit
44fcbb6aa7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue