gpt4 book ai didi

python - 属性错误 : module 'tensorflow_core._api.v2.image' has no attribute 'resize_images'

转载 作者:行者123 更新时间:2023-12-03 23:11:51 31 4
gpt4 key购买 nike

我想将图像从 28*28 调整为 32*32,使用 tf.image.resize_images(x_train, (32, 32)) .它返回 AttributeError:模块“tensorflow_core._api.v2.image”没有属性“resize_images” .tersorflow的版本是2.0.0。我该如何解决?

最佳答案

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

关于python - 属性错误 : module 'tensorflow_core._api.v2.image' has no attribute 'resize_images' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60948568/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com