【发布时间】:2019-03-06 19:25:53
【问题描述】:
我有以下代码在 Keras 中使用预训练的 ResNet50 模型和 imagenet 数据集:
from keras.applications.resnet50 import ResNet50
from keras.preprocessing import image
from keras.applications.resnet50 import preprocess_input, decode_predictions
import numpy as np
model = ResNet50(weights='imagenet')
print(model)
它工作正常..我的问题是我可以在 Keras 或 Torchvision 或 TensorFlow 中找到一个预训练的模型但是对于以下之一:
1) LeNet5 for MNIST DataSet
2) 32-Layer ResNet for the CIFAR-10 Dataset
我知道另一种方法是例如我自己训练 LeNet5,但预训练模型将是首选,据我搜索,我没有找到它们。 谢谢。
【问题讨论】:
标签: python tensorflow keras deep-learning pytorch