Skip to content

got missing from current font warning when train Chinese names images #6522

@gaoyanzeng

Description

@gaoyanzeng

Search before asking

  • I have searched the YOLOv5 issues and found no similar bug report.

YOLOv5 Component

Training

Bug

Got warning as below:
metrics.py:199: UserWarning: Glyph 31888 (\N{CJK UNIFIED IDEOGRAPH-7C90}) missing from current font.
fig.savefig(Path(save_dir) / 'confusion_matrix.png', dpi=250)

All I changed is in the ./data/coco128.yaml as below:

Classes

nc: 4 # number of classes
names: ['翘头剪', '直剪', '止血钳', '组织钳'] # class names

Environment

OS: Windows 11
Python: 3.9.5

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soonbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions