原因:
在 TensorFlow 2.x 版本中,resize_images
函数已经不再作为 tensorflow.image
模块的一部分。相应的函数被替换为 resize
,这是 TensorFlow 图像处理函数中的标准方法。因此,如果你的代码中有 resize_images
的引用,你应该更新它为 resize
方法。
原因:
在 TensorFlow 2.x 版本中,resize_images
函数已经不再作为 tensorflow.image
模块的一部分。相应的函数被替换为 resize
,这是 TensorFlow 图像处理函数中的标准方法。因此,如果你的代码中有 resize_images
的引用,你应该更新它为 resize
方法。