Python - Reading The Indices Of Pickled Data
Having the following pickled data: [array([[[148, 124, 115], [150, 127, 116], [154, 129, 121], ..., [159, 142, 133], [159, 142, 133],
Solution 1:
The way your data is pickled, the two images end up in the same array and thus you have to index accordingly:
batch[0][0] #this will give the first image
batch[0][1] #this will give the second image
batch[1][0] #this will give the first label
batch[1][1] #this will give the second label
Post a Comment for "Python - Reading The Indices Of Pickled Data"