HyperXception

[源代码]

HyperXception

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

一个 Xception 超模型。

HyperXception 构建的模型接受形状为 (height, width, channels) 的图像作为输入。输出是独热编码的,其长度与 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