at file 9.1_image-augmentation.ipynb show_images(x[0:32][0], 4, 8, scale=0.8); should be changed: show_images(x[0:32], 4, 8, scale=0.8);