1 2 3 4 5 6 7 8 9 10 11 12
| import numpy as np from skimage import io
imgs = np.empty(shape=(0,28,28)) img = io.imread("data.png")
imgs = np.append(imgs, [img] , axis=0) imgs = np.append(imgs, [img] , axis=0) imgs = np.append(imgs, [img] , axis=0) imgs = np.append(imgs, [img] , axis=0) imgs = np.append(imgs, [img] , axis=0)
|