HyperEfficientNet

[源代码]

HyperEfficientNet

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

一个EfficientNet超模型。

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