HyperEfficientNet

[源代码]

HyperEfficientNet

keras_tuner.applications.HyperEfficientNet(
    input_shape=None, input_tensor=None, classes=None, augmentation_model=None, **kwargs
)

一个 EfficientNet 超模型。

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

参数

  • input_shape: 可选的形状元组,例如 (256, 256, 3)。必须指定 input_shapeinput_tensor 中的一个。
  • input_tensor: 可选的 Keras 张量(即 layers.Input() 的输出),用作模型的图像输入。必须指定 input_shapeinput_tensor 中的一个。
  • classes: 可选的图像分类类别数,仅当 include_top 为 True 且未指定 weights 参数时才指定。
  • augmentation_model: 可选的 ModelHyperModel 实例,用于图像增强。
  • **kwargs: 应用于所有超模型的其他关键字参数。请参阅 keras_tuner.HyperModel