precomputeVGG16.py 文件源码

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

项目:gcnet 作者: chcaru 项目源码 文件源码
def preprocessImage(imagePath):
    img = load_img(imagePath, target_size=(244, 244))
    img = img_to_array(img)
    img = np.expand_dims(img, axis=0)
    img = vgg16.preprocess_input(img)
    img = img.reshape(img.shape[1:])
    return img
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号