遇到
ImportError: cannot import name 'img_to_array' from 'keras.preprocessing.image' 问题时
我的办法是降低keras的版本,用的是keras==2.3.1
先pip install tensorflow==2.2.0 再 pip install keras==2.3.1
遇到
ImportError: cannot import name 'img_to_array' from 'keras.preprocessing.image' 问题时
我的办法是降低keras的版本,用的是keras==2.3.1
先pip install tensorflow==2.2.0 再 pip install keras==2.3.1