Having the following pickled data:
[array([[[148, 124, 115],
[150, 127, 116],
[154, 129, 121],
...,
[159, 142, 133],
[159, 142, 133],
[161, 145, 142]]]), array([1])]
I was able to retrieve the data and label, as follows:
data = batch[0]
labels = batch[1]
In which case, I had the following output when making a print for both data and label, separately:
[[[148 124 115]
[150 127 116]
[154 129 121]
...,
[159 142 133]
[159 142 133]
[161 145 142]]]
[1]
When my batch file now looks as follows as I added a new image, I didn't figure out how to read the 2nd image and its label. It seems I cannot understand how the pickled file is indexed here:
[array([[[148, 124, 115],
[150, 127, 116],
[154, 129, 121