Skip to content

Commit

Permalink
refactor ImageTextOverlay class to improve text drawing readability
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravarthik27 committed Nov 8, 2024
1 parent 63d3bd4 commit 4be2fe5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion langtest/transform/image/robustness.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,10 @@ def transform(
draw = ImageDraw.Draw(sample.perturbed_image)
font = ImageFont.load_default()
draw.text(
position, text, font=font, fill=font_color,
position,
text,
font=font,
fill=font_color,
)

return sample_list

0 comments on commit 4be2fe5

Please sign in to comment.