org.tensorflow
TensorFlowモデルを構築、保存、読み込み、実行するためのクラスを定義します。
開始するには、インストール手順を参照してください。
LabelImageの例は、このAPIを使用して、事前にトレーニングされたInceptionアーキテクチャの畳み込みニューラルネットワークを使用して画像を分類する方法を示しています。それは次のことを示しています。
- グラフの作成:OperationBuilderクラスを使用して、JPEG画像をデコード、サイズ変更、および正規化するためのグラフを作成します。
- モデルのロード:Graph.importGraphDef()を使用して、事前にトレーニングされたInceptionモデルをロードします。
- グラフの実行:セッションを使用してグラフを実行し、画像に最適なラベルを見つけます。
追加の例は、 tensorflow / javaGitHubリポジトリにあります。
インターフェース
クラス
列挙型
例外
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-05-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]