我试着执行一些教学转移学习项目。
但我有属性错误。
我检查了tensorflow和keras的版本。
张力流:1.14.0
路缘石:2.2.5
以及python 3.6.9版本。
密码在这里。
if(K.image_dim_ordering() == 'th'):
input_tensor = Input(shape=(3, 299, 299))
此处显示错误消息。
AttributeError: module 'keras.backend' has no attribute 'image_dim_ordering'
Tags:
对和我有同样问题的人的自我回答。 从Keras 2.x将image_dim_排序更改为image_data_格式。 因为将图像的顺序更改为图像的数据格式。
参考链接
https://github.com/keras-team/keras/issues/12649
https://keras.io/backend/
keras.backend.common
模块有image_dim_ordering()
相关问题 更多 >
编程相关推荐