Model Maker UnicodeDecodeError

Am using Model Maker and am throwing this error:

/usr/local/lib/python3.7/dist-packages/tensorflow/python/util/compat.py in as_text(bytes_or_text, encoding)
    103     return bytes_or_text
    104   elif isinstance(bytes_or_text, bytes):
--> 105     return bytes_or_text.decode(encoding)
    106   else:
    107     raise TypeError('Expected binary or unicode string, got %r' % bytes_or_text)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte

My guessing is the xml annotation files may not be correctly coded in UTF-8, but they do look pretty ok to me.

Has anyone else had this issue? Any solutions to this error? Using approximately 16,000 images across 16 classes.

Was using exact methodology code plus also annotation of images with approx 1,600 images and everything ran smoothly.

Any help is greatly appreciated.

Cheers,
Will

Have just run Model Maker again where I’ve declared the encoding as utf-8 in all the files and still getting the same error. Here is some more info on the error if anyone has any other clues.

---------------------------------------------------------------------------
UnicodeDecodeError                        Traceback (most recent call last)
<ipython-input-5-a797b2d57d13> in <module>()
      2     'all_objects/train',
      3     'all_objects/train',
----> 4     ['Bowl', 'Woman', 'Pen', 'Chair', 'Fruit', 'Car', 'Cat']
      5 )
      6 

7 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/util/compat.py in as_text(bytes_or_text, encoding)
    103     return bytes_or_text
    104   elif isinstance(bytes_or_text, bytes):
--> 105     return bytes_or_text.decode(encoding)
    106   else:
    107     raise TypeError('Expected binary or unicode string, got %r' % bytes_or_text)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte