convert2Yolo icon indicating copy to clipboard operation
convert2Yolo copied to clipboard

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

Open Khani1986 opened this issue 5 years ago • 2 comments

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

Khani1986 avatar Oct 21 '19 11:10 Khani1986

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

postor avatar Oct 28 '19 09:10 postor

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

marfis89 avatar Jan 22 '20 09:01 marfis89