ModuleNotFoundError: 没有名为efficientnet.tfkeras 的模块

use*_*619 6 python keras

我试图做import segmentation_models as sm,但我收到一个错误,说efficientnet没有找到。所以我做了pip install efficientnet并再次尝试。我现在得到了ModuleNotFoundError: no module named efficientnet.tfkeras,即使安装了 Keras,因为我可以from keras.models import *使用 Keras 或其他任何东西

我怎样才能摆脱这个错误?

小智 5

要安装分段模型,请使用以下命令: pip install git+https://github.com/qubvel/segmentation_models