Spaces:
Runtime error
Runtime error
File size: 510 Bytes
883428d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import glob
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
%matplotlib inline
images = []
for img_path in sorted(glob.glob('brain.png'), reverse=True):
images.append(mpimg.imread(img_path))
images = images[:15]
plt.figure(figsize=(20,10))
columns = 5
for i, image in enumerate(images):
ax = plt.subplot(len(images) / columns + 1, columns, i + 1)
ax.axes.xaxis.set_visible(False)
ax.axes.yaxis.set_visible(False)
ax.axis('off')
plt.imshow(image)
gc.collect()
|