HyperXception

[原始碼]

HyperXception 類別

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

一個 Xception 超模型。

HyperXception 建構的模型,將形狀為 (高度, 寬度, 通道數) 的圖片作為輸入。輸出結果為 one-hot 編碼,其長度與 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