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 #11556

Merged
merged 1 commit into from
Mar 6, 2024
Merged

fix AttributeError #11556

merged 1 commit into from
Mar 6, 2024

Conversation

GreatV
Copy link
Collaborator

@GreatV GreatV commented Jan 30, 2024

PR 类型 PR types

Bug fixes

PR 变化内容类型 PR changes

Others

描述 Description

getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.

cd StyleText
python tools/synth_dataset.py -c configs/dataset_config.yml
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

提PR之前的检查 Check-list

  • 这个 PR 是提交到dygraph分支或者是一个cherry-pick,否则请先提交到dygarph分支。
    This PR is pushed to the dygraph branch or cherry-picked from the dygraph branch. Otherwise, please push your changes to the dygraph branch.
  • 这个PR清楚描述了功能,帮助评审能提升效率。This PR have fully described what it does such that reviewers can speedup.
  • 这个PR已经经过本地测试。This PR can be convered by current tests or already test locally by you.

Copy link
Collaborator

@tink2123 tink2123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tink2123 tink2123 merged commit 14fff65 into PaddlePaddle:release/2.7 Mar 6, 2024
2 checks passed
@GreatV GreatV deleted the patch-1 branch March 6, 2024 05:13
GreatV added a commit to GreatV/PaddleOCR that referenced this pull request Mar 6, 2024
@GreatV GreatV mentioned this pull request Mar 6, 2024
3 tasks
jzhang533 pushed a commit that referenced this pull request Mar 27, 2024
jzhang533 pushed a commit to jzhang533/PaddleOCR that referenced this pull request Mar 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants