vahidk/tfrecord

this byte image data is ```open('xxx.jpg','rb').read() ``` data?

jaffe-fly opened this issue · 1 comments

value = np.frombuffer(value[0], dtype=np.uint8)

when i use open('xxx.jpg','rb').read() to read the image, I get wrong shape

data = next(iter(loader))
print(data['image'].shape)
torch.Size([1, 12751])

how to do ?

See readme.