HyperXception

[源代码]

HyperXception

keras_tuner.applications.HyperXception(
    include_top=True, input_shape=None, input_tensor=None, classes=None, **kwargs
)

一个 Xception 超模型。

HyperXception 构建的模型将形状为 (高度,宽度,通道) 的图像作为输入。输出为独热编码,长度与 classes 参数指定的类别数匹配。

参数

  • include_top:布尔值,是否包含网络顶部的全连接层。
  • input_shape:可选形状元组,例如 (256, 256, 3)。必须指定 input_shapeinput_tensor 中的一个。
  • input_tensor:可选 Keras 张量(即 layers.Input() 的输出),用作模型的图像输入。必须指定 input_shapeinput_tensor 中的一个。
  • classes:可选的类别数,用于将图像分类到其中,仅在 include_top 为 True 且未指定 weights 参数时指定。
  • **kwargs:适用于所有超模型的其他关键字参数。请参阅 keras_tuner.HyperModel