YOLOv5 中文显示乱码问题

tags
IT
date
Apr 2, 2023
slug
yolov5-chinese
status
Published
summary
首先确定需要使用的字体,比如: simhei.tff
type
Post
cover
1. 字体确认 首先确定需要使用的字体,比如: simhei.tff

2. train.py 修改

修改为:

3. test.py 修改

修改为:

4. utils/plots.py 修改

找到函数 plot_one_box,将 if label: 之后修改为:
找到 plot_images,将:
修改为:

5. detect.py 修改

找到:
修改为:
Done, enjoy.

© JediXL 2021 - 2024