ModuleNotFoundError:没有名为“classification_models.resnet”的模块
from classification_models.resnet import ResNet18, preprocess_input
model = ResNet18((224, 224, 3), weights='imagenet')
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-43-ff8b34ae99fa> in <module>()
----> 1 from classification_models.resnet import ResNet18, preprocess_input
2
3 model = ResNet18((224, 224, 3), weights='imagenet')
ModuleNotFoundError: No module named 'classification_models.resnet'
我无法在 google colab 上导入预训练的 ResNet18 模型。请帮忙
from classification_models.resnet import ResNet18, preprocess_input
model = ResNet18((224, 224, 3), weights='imagenet')
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-43-ff8b34ae99fa> in <module>()
----> 1 from classification_models.resnet import ResNet18, preprocess_input
2
3 model = ResNet18((224, 224, 3), weights='imagenet')
ModuleNotFoundError: No module named 'classification_models.resnet'
I am not able to import pre-trained ResNet18 model on google colab. Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以访问所有ResNet
(ResNet50, ResNet101, ResNet152)
模型及其preprocess_input()
可以轻松地从tf.keras.applications
API如下:请检查此链接了解有关如何使用和应用ResNet模型的更多详细信息。
You can access all ResNet
(ResNet50, ResNet101, ResNet152)
models and itspreprocess_input()
easily fromtf.keras.applications
API as below:Please check this link for more details on how to use and apply ResNet model.