image_size_augment.py 文件源码

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

项目:Tensormodels 作者: asheshjain399 项目源码 文件源码
def resize(img, label, new_size, interpolation=cv2.INTER_CUBIC):
    """
    Resizes the image
    TODO: Make this method more generic to modify the label
    Args:
        img: input image
        new_size: new image size [new_width,new_height]
        interpolation: Kind of interpolation to use
    """

    return cv2.resize(img, new_size, interpolation=interpolation), label
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号