ssaru / convert2Yolo

This project purpose is convert voc annotation xml file to yolo-darknet training file format
458 stars 182 forks source link

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

Open Khani1986 opened 5 years ago

Khani1986 commented 5 years ago

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 commented 5 years ago

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 commented 4 years ago

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