2024-05-04 04:42:27 发布
网友
当尝试执行set_image_dim_ordering('th')
set_image_dim_ordering('th')
from keras import backend as K K.set_image_dim_ordering('th')
我得到属性错误:
AttributeError: module 'keras.backend' has no attribute 'set_image_dim_ordering'
改用这个:
K.set_image_data_format('channels_first')
最新版本已将image_dim_ordering替换为image_data_format
image_dim_ordering
image_data_format
有关更多信息,请参阅thiesissue
改用这个:
最新版本已将
image_dim_ordering
替换为image_data_format
有关更多信息,请参阅thiesissue
相关问题 更多 >
编程相关推荐