Keras 3 API 文件 / KerasTuner / 超模型 / HyperEfficientNet

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