Could you post the code for your dataset?
It seems that at some point the returned data is corrupted, i.e. it has only 1 dimension.
For your image data, you should have 4 dimensions: [batch, channels, width, height].