edgetpu-yolo
edgetpu-yolo copied to clipboard
Encoding error on Windows during reading .yaml file
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.