[go: nahoru, domu]

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

Fix AttributeError: 'ImageDraw' object has no attribute 'multiline_te… #16043

Closed
wants to merge 3 commits into from

Conversation

Panchovix
Copy link
@Panchovix Panchovix commented Jun 18, 2024

…xtsize' for Pillow >=10 when making grids.

Fixes AttributeError: 'ImageDraw' object has no attribute 'multiline_textsize' when using Pillow >10 trying to do X/Y/Z grids. This specially happens if using Python 3.12, where Pillow 10.1.0 is the least compatible version.

It changes multiline_textsize to multiline_textbbox, returning a tuple (left, top, right, bottom). text_width can be calculated as right - left and text_height as bottom - top.
Also adjust get_font to make it return a valid font object from a given font size.

Draft for now, since stable is using Python 3.10. It can be applied either if updating the Pillow library version in the requirements or if using Python 3.12.

Checklist:

…xtsize' for Pillow >=10 when making grids.

Fixes AttributeError: 'ImageDraw' object has no attribute 'multiline_textsize' when using Pillow >10 trying to do X/Y/Z grids. This specially happens if using Python 3.12, where Pillow 10.1.0 is the least compatible version.

Draft for now, since stable is using Python 3.10. It can be applied either if updating the Pillow library version in the requirements or if using Python 3.12.
Adds CFG++ Scheduler, making a mirror implementation of how CFG++ Sampler is implemented on #16035

Modified the code to make it work with k_diffusion samplers and not break compatibility with other schedulers.
@Panchovix Panchovix closed this Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant