I am not able to import resnet from keras.applications module

后端 未结 5 1766
滥情空心
滥情空心 2020-12-11 16:12

I\'m unable to import this module

import keras.applications.resnet

ModuleNotFoundError
in () ----> 1 import keras.a

5条回答
  •  感动是毒
    2020-12-11 16:53

    Check the versions.

    pip list | grep Keras
    

    If it's already installed,uninstall and upgrade.

    pip uninstall Keras
    pip install Keras==2.3.1
    
    pip uninstall Keras-Applications
    pip install Keras-Applications==1.0.8
    
    pip uninstall Keras-Preprocessing
    pip install Keras-Preprocessing==1.1.0
    

    Hope it helps.

提交回复
热议问题