Traceback (most recent call last):
File "/root/code/ICDAR-2019-SROIE-master/task2/dataset.py", line 55, in getitem
img = Image.open(buf).convert('L')
File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/PIL/Image.py", line 2519, in open
% (filename if filename else fp))
OSError: cannot identify image file <_io.BytesIO object at 0x7f20e6463a98>
Traceback (most recent call last): File "/root/code/ICDAR-2019-SROIE-master/task2/dataset.py", line 55, in getitem img = Image.open(buf).convert('L') File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/PIL/Image.py", line 2519, in open % (filename if filename else fp)) OSError: cannot identify image file <_io.BytesIO object at 0x7f20e6463a98>