我无法导入这个模块
import keras.applications.resnet
ModuleNotFoundError 在() ->1进口keras.applications.resnet中
ModuleNotFoundError: No module named 'keras.applications.resnet'
keras 链接
发布于 2020-08-04 14:45:08
有一个名为“keras”的python包,它包含ResNet50、ResNet101、ResNet152和更多的ResNet变体。(https://pypi.org/project/keras-resnet/)
安装也相当容易。只是打字
pip install keras-resnet
它将安装这个模块,然后使用它如下:
from keras_resnet.models import ResNet50, ResNet101, ResNet152
backbone = ResNet50(inputs=image_input, include_top=False, freeze_bn=True)
C2, C3, C4, C5 = backbone.outputs # this will give you intermediate
# outputs of four blocks of resnet if you want to merge low and high level features
我正在使用这个模块的骨干,并且为我工作的很好!
https://stackoverflow.com/questions/54682539
复制相似问题