-
Notifications
You must be signed in to change notification settings - Fork 316
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
转换标注失败'gbk' codec can't decode byte 0xff in position 0: illegal multibyte sequence #51
Comments
您好,这个是文件编码问题,网上有很多参考解决方案,例如这个,可以自行搜索下。 |
确认JSON文件是utf8编码,PY文件也是utf8编码,with open 时也指定utf8。 |
您好,@kwanxian ,如果方便的话可以提供下你的图片和JSON文件打包发我下。 |
这个问题解决了吗?我也遇到了同样的问题 |
File "D:\DeveFolder\X-AnyLabeling\tools\label_converter.py", line 251, in custom_to_coco
|
您好,@seejah ,可以提供下相关文件打包给我下吗,这边复现下。 |
al_train文件夹内是用X-AnyLabeling标注的4张图片,另外还有一个标签文件txt,只有一个标签:1
好像存在乱码,所以无论utf8还是gbk还是gb18030都出现了错误。用了您给的chardet函数解决方案也行不通。
期待您的好消息!
------------------ Original ------------------
From: ***@***.***>;
Date: Mon, Sep 11, 2023 04:54 PM
To: ***@***.***>;
Cc: ***@***.***>; ***@***.***>;
Subject: Re: [CVHub520/X-AnyLabeling] 转换标注失败'gbk' codec can't decode byte 0xff in position 0: illegal multibyte sequence (Issue #51)
***@***.*** ,可以提供下相关文件打包给我下吗,这边复现下。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
邮件已发送,期待好消息! |
您好,可以发送到指定邮箱:cv_hub@163.com |
windows 10
python 3.10
The text was updated successfully, but these errors were encountered: