edgetpu-yolo icon indicating copy to clipboard operation
edgetpu-yolo copied to clipboard

Encoding error on Windows during reading .yaml file

Open dobrikov91 opened this issue 10 months ago • 0 comments

I got an error using example:

UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 218: character maps to <undefined>

It seems windows uses CP1251 encoding by default. I changed the line with open(path, 'r') as f: to with open(path, 'r', encoding='utf8') as f:

in edgetpumodel.py get_names()

After it the example starts works fine :) This is the only issue on Windows, hope this fix will be committed. I have no rights to open PR on my own.

dobrikov91 avatar Aug 12 '23 23:08 dobrikov91