Skip to content

torchvision.utils.draw_bounding_boxes set font_size #5725

@haozhihang123

Description

@haozhihang123

🚀 The feature

font_ The size setting must be specified at the same time as the font to be valid, otherwise it is invalid.
I think utils.py in torchvision Line 239 can be improved.Make font settings and font size settings separate.
utils.py Line 239:
"txt_font = ImageFont.load_default() if font is None else ImageFont.truetype(font=font, size=font_size)"

Motivation, pitch

Improve the experience of torchvision.draw_bounding_boxes

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions