Coder Social home page Coder Social logo

Comments (10)

CVHub520 avatar CVHub520 commented on May 20, 2024

您好,这个是文件编码问题,网上有很多参考解决方案,例如这个,可以自行搜索下。

from x-anylabeling.

kwanxian avatar kwanxian commented on May 20, 2024

您好,这个是文件编码问题,网上有很多参考解决方案,例如这个,可以自行搜索下。

确认JSON文件是utf8编码,PY文件也是utf8编码,with open 时也指定utf8。
如果指定utf8,则会报 0xff开头错误。

from x-anylabeling.

CVHub520 avatar CVHub520 commented on May 20, 2024

您好,@kwanxian ,如果方便的话可以提供下你的图片和JSON文件打包发我下。

from x-anylabeling.

seejah avatar seejah commented on May 20, 2024

这个问题解决了吗?我也遇到了同样的问题

from x-anylabeling.

seejah avatar seejah commented on May 20, 2024

File "D:\DeveFolder\X-AnyLabeling\tools\label_converter.py", line 251, in custom_to_coco
data = json.load(f)
File "C:\Program Files\Python310\lib\json_init_.py", line 293, in load
return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xff in position 0: illegal multibyte sequence

如果把250行处的with open,加上encoding='utf-8',提示又变成:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
说明也不对?

from x-anylabeling.

CVHub520 avatar CVHub520 commented on May 20, 2024

您好,@seejah ,可以提供下相关文件打包给我下吗,这边复现下。

from x-anylabeling.

seejah avatar seejah commented on May 20, 2024

from x-anylabeling.

seejah avatar seejah commented on May 20, 2024

您好,@seejah ,可以提供下相关文件打包给我下吗,这边复现下。

邮件已发送,期待好消息!

from x-anylabeling.

CVHub520 avatar CVHub520 commented on May 20, 2024

您好,@seejah ,可以提供下相关文件打包给我下吗,这边复现下。

邮件已发送,期待好消息!

您好,可以发送到指定邮箱:[email protected]

from x-anylabeling.

CVHub520 avatar CVHub520 commented on May 20, 2024

@kwanxian @seejah 您好,bug 已修复,请更新代码重新转换,有问题欢迎随时反馈。

from x-anylabeling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.