module ‘tensorflow._api.v1.image‘ has no attribute ‘resize‘
module 'tensorflow._api.v1.image' has no attribute 'resize' 报错解决
TensorFlow版本兼容问题,1.x和2版本部分函数不同。
目前适用版本TensorFlow1.12
image = tf.image.resize(image, [28, 28])
报错:module ‘tensorflow._api.v1.image’ has no attribute ‘resize’ 。
改成tf.image.resize_bilinear数据维度报
原创
2021-06-21 19:58:39 ·
1279 阅读 ·
0 评论