Merge pull request #28 from JanGerritsen/Bugfix_Adding_Tag_Twice
Bugfix: Adding same Tag twice to Caption
This commit is contained in:
commit
f0e8ee55df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue