data_helpers.py 文件源码

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

项目:leaf-classification 作者: MWransky 项目源码 文件源码
def augment_test_data(images):
    more_images = np.zeros((4*images.shape[0], images.shape[1], images.shape[2],))
    for i in range(images.shape[0]):
        for j in range(4):
            rotation = j*90
            more_images[4*i+j] = ndimage.rotate(images[i], rotation)
    return more_images
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号