首页 > 解决方案 > AttributeError:模块“tensorflow_core._api.v2.image”没有属性“resize_images”

问题描述

我想将图像从 28*28 调整为 32*32,使用。tf.image.resize_images(x_train, (32, 32))它返回AttributeError: module 'tensorflow_core._api.v2.image' has no attribute 'resize_images' 。 tersorflow 的版本是 2.0.0。我该如何解决?

标签: pythontensorflow2.0

解决方案


应该是tf.image.resize查看更新的文档https://www.tensorflow.org/api_docs/python/tf/image/resize


推荐阅读