def show_samples(samples, nShow):
"""
Show some input samples.
"""
import math
import matplotlib.pyplot as plt
_, nFeatures, x, y = samples.shape
nColumns = int(math.ceil(nShow/5.))
for i in range(nShow):
plt.subplot(5, nColumns, i+1)
image = samples[i]
image = np.rollaxis(image, 0, 3)*5.
plt.imshow(image)
# plt.axis('off')
评论列表
文章目录