read_preprocess.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:drmad 作者: bigaidream-projects 项目源码 文件源码
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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号