from matplotlib import pyplot as plt
import numpy as np
%matplotlib inline
#show and tell
fig = plt.figure(figsize=(16,12))
n_images_per_row=4
choices=np.random.choice(len(imgs),16)
#choices=range(16)
for i,id in enumerate(choices):
ax = fig.add_subplot(4,n_images_per_row,i+1)
plt.imshow(imgs[id].astype('uint8'))