VGG16Backbone
类keras_cv.models.VGG16Backbone(
include_rescaling,
include_top,
input_tensor=None,
num_classes=None,
input_shape=(224, 224, 3),
pooling=None,
classifier_activation="softmax",
name="VGG16",
**kwargs
)
参考: - 用于大规模图像识别的超深卷积网络 (ICLR 2015) 此类表示 VGG16 模型的 Keras 主干网络。 **参数**
Rescaling(1/255.0)
层。include_top
为 True 时指定。layers.Input()
的输出),用作模型的图像输入。include_top
为 False
时用于特征提取的池化模式。None
表示模型的输出将是最后一个卷积块的 4D 张量输出。avg
表示将对最后一个卷积块的输出应用全局平均池化,因此模型的输出将是一个 2D 张量。max
表示将应用全局最大池化。str
或可调用对象。要对“顶层”使用的激活函数。仅在 include_top=True
时忽略。将 classifier_activation=None
设置为返回“顶层”的 logits。加载预训练权重时,classifier_activation
只能为 None
或 "softmax"
。返回
一个 keras.Model
实例。
from_preset
方法VGG16Backbone.from_preset()
未实现。
此类没有可用的预设。