Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

ERROR : 'utf-8' codec can't decode byte 0xb0 in position 37 #21

Open
Khani1986 opened this issue Oct 21, 2019 · 2 comments
Open

ERROR : 'utf-8' codec can't decode byte 0xb0 in position 37 #21

Khani1986 opened this issue Oct 21, 2019 · 2 comments

Comments

@Khani1986
Copy link

Hi,

I have the following issue, do you know where the issue is?
VOC Parsing Result : False, msg : ERROR : 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte, moreInfo : <class 'UnicodeDecodeError'> Format.py 233

I am using the VOTT Tool to label my pictures. With the VOTT I am exporting the labels to Pascal VOC in order to convert it to Yolo.

Can you help please?

Thank you very much!
Khani

@postor
Copy link

postor commented Oct 28, 2019

xml = open(os.path.join(dir_path, filename), "r", encoding='utf-8') change Format.py 232 line to something like this, the encoding depends on your xml file, use file xx.xml to check the encoding

@marfis89
Copy link

@Khani1986 did you put the xml and images in the same folder? You have to put everything in a different directory.
best regards

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants