common.py 文件源码

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

项目:SegmentationService 作者: jingchaoluan 项目源码 文件源码
def plotgrid(data,d=10,shape=(30,30)):
    """Plot a list of images on a grid."""
    ion()
    gray()
    clf()
    for i in range(min(d*d,len(data))):
        subplot(d,d,i+1)
        row = data[i]
        if shape is not None: row = row.reshape(shape)
        imshow(row)
    ginput(1,timeout=0.1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号