open('test_images/ILSVRC2012_val_00000001.JPEG').read()
Creates the following error in python 3 as it decodes it wrongly:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Proposed fixed:
mx.image.imdecode(open('test_images/ILSVRC2012_val_00000001.JPEG','rb').read())
open('test_images/ILSVRC2012_val_00000001.JPEG').read() Creates the following error in python 3 as it decodes it wrongly: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte Proposed fixed: mx.image.imdecode(open('test_images/ILSVRC2012_val_00000001.JPEG','rb').read())