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

图像分类、图像目标检测当中,如何更改返回值为中文,目前返回结果是英文 #2480

Open
ssyy398 opened this issue Nov 14, 2024 · 1 comment
Assignees

Comments

@ssyy398
Copy link

ssyy398 commented Nov 14, 2024

描述问题

使用图像目标检测模型,识别图像,返回值和图像上标注框选都是英文的,如下:

1731550981136

而paddlex文档的介绍里面,这个返回值是有中文的,如下:
343820042-099e2b00-0bbe-4b20-9c5a-96b69e473bd2

图像分类模型,结果也是英文的,如下:
image

然后paddlex的首页文档中,返回值是中文的如下:
image

请问这个应该怎么修改,更改哪个参数还是需要更换模型? 代码使用的都是文档中默认的代码,没有进行更改

@TingquanGao TingquanGao self-assigned this Nov 14, 2024
@TingquanGao
Copy link
Collaborator

目前都是默认使用公开数据集的官方标签字段,所以是英文的。如果想要中文的话,需要更改下推理模型参数,如果使用的是官方模型PP-LCNet_x0_25,则修改:~/.paddlex/official_models/PP-LCNet_x0_25/inference.yml文件中的label_list字段,目标检测模型类似,修改对应模型配置文件即可。

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

No branches or pull requests

2 participants