image_output_1.png
from sklearn.utils import shuffle

import matplotlib.pyplot as plt

data_path = '../input/all-dogs/all-dogs/'
lable_path = '../input/annotation/Annotation/'
all_image_paths = os.listdir(data_path)
IMG_SIZE = 64
BUFFER_SIZE = 20579
BATCH_SIZE = 256

def get_images(directory):
    Images = []
    for image_file in all_image_paths:
        image = cv2.imread(directory + '/' + image_file)
        image = cv2.resize(image, (IMG_SIZE, IMG_SIZE))
        Images.append(image)
    return shuffle(Images, random_state=81732)
data_images = get_images(data_path)

plt.figure(figsize=(15, 15))
i = 0
for i in range(25):
    plt.subplot(5, 5, i + 1)
    plt.xticks([])
    plt.yticks([])
    plt.imshow(data_images[i])
    i += 1
plt.show()