使用ResNet模型进行实时预测 (Real Time Prediction using ResNet Model)
ResNet is a pre-trained model. It is trained using ImageNet. ResNet model weights pre-trained on ImageNet. It has the following syntax −
ResNet是一个预先训练的模型。 它使用ImageNet进行培训。 在ImageNet上预训练的ResNet模型权重。 它具有以下语法-
keras.applications.resnet.ResNet50 (
include_top = True,
weights = 'imagenet',
input_tensor = None,
input_shape = None,
pooling = None,
classes = 1000
)
Here,
这里,
include_top refers the fully-connected layer at the top of the network.
include_top指网络顶部的完全连接层。
weights refer pre-training on ImageNet.
权重参考ImageNet上的预训练。
input_tensor refers optional Keras tensor to use as image input for the model.
input_tensor引用可选的Keras张量,以用作模型的图像输入。