报错ImportError: cannot import name 'normalize_data_format'

问题描述运行from keras.utils.conv_utils import normalize_data_format
报错ImportError: cannot import name 'normalize_data_format’
原因:Keras版本问题,原先Keras版本过高,一些模块的形式发生了变化,因此出现了调用不成功的现象
解决办法:重新安装低版本的Keras


 pip install  keras==2.1.0

安装指定版本Keras,问题解决,不再报错.

猜你喜欢

转载自blog.csdn.net/DoReAGON/article/details/84145990
今日推荐