Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility for custom font sizes on bounding boxes #8894

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrdbourke
Copy link

As of PIL 10.1.0+ the size parameter is available in PIL.ImageFont.load_default(size).

This enables the font_size parameter in draw_bounding_boxes to be used even if font=None.

See PIL docs: https://pillow.readthedocs.io/en/stable/reference/ImageFont.html#PIL.ImageFont.load_default

As of PIL 10.1.0+ the `size` parameter is available in `PIL.ImageFont.load_default(size)`. 

This enables the `font_size` parameter in `draw_bounding_boxes` to be used even if `font=None`.

See PIL docs: https://pillow.readthedocs.io/en/stable/reference/ImageFont.html#PIL.ImageFont.load_default
Copy link

pytorch-bot bot commented Feb 3, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8894

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants