TensorFlow Graphics をインストールする
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
安定ビルド
TensorFlow Graphics には TensorFlow 1.13.1 以上が必要です。TensorFlow のナイトリービルド(tf-nightly)もサポートされています。
PyPI から最新の CPU バージョンをインストールするには、次のコードを実行します。
# Installing with the `--upgrade` flag ensures you'll get the latest version.
pip install --upgrade tensorflow-graphics
最新の GPU バージョンをインストールするには、次のコードを実行します。
# Installing with the `--upgrade` flag ensures you'll get the latest version.
pip install --upgrade tensorflow-graphics-gpu
インストールに関するヘルプや、前提要件のインストールと仮想環境のセットアップ(オプション)に関する案内については、TensorFlow インストールガイドをご覧ください。
ソースからインストールする(macOS/Linux)
次のコマンドを実行して、ソースからインストールすることも可能です。
git clone https://github.com/tensorflow/graphics.git
sh build_pip_pkg.sh
pip install --upgrade dist/*.whl
オプションパッケージのインストール(Linux)
TensorFlow Graphics EXR データローダーを使用するには、OpenEXR がインストールされている必要があります。このインストールは次のコマンドを実行して行います。
sudo apt-get install libopenexr-dev
pip install --upgrade OpenEXR
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2022-08-09 UTC。
[null,null,["最終更新日 2022-08-09 UTC。"],[],[],null,["# Installing TensorFlow Graphics\n\n\u003cbr /\u003e\n\nStable builds\n-------------\n\nTensorFlow Graphics depends on [TensorFlow](https://www.tensorflow.org/install)\n1.13.1 or above. Nightly builds of TensorFlow (tf-nightly) are also supported.\n\nTo install the latest CPU version from\n[PyPI](https://pypi.org/project/tensorflow-graphics/), run the following: \n\n # Installing with the `--upgrade` flag ensures you'll get the latest version.\n pip install --upgrade tensorflow-graphics\n\nand to install the latest GPU version, run: \n\n # Installing with the `--upgrade` flag ensures you'll get the latest version.\n pip install --upgrade tensorflow-graphics-gpu\n\nFor additional installation help, guidance installing prerequisites, and\n(optionally) setting up virtual environments, see the\n[TensorFlow installation guide](https://www.tensorflow.org/install).\n\nInstalling from source - macOS/Linux\n------------------------------------\n\nYou can also install from source by executing the following commands: \n\n git clone https://github.com/tensorflow/graphics.git\n sh build_pip_pkg.sh\n pip install --upgrade dist/*.whl\n\nInstalling optional packages - Linux\n------------------------------------\n\nTo use the TensorFlow Graphics EXR data loader, OpenEXR needs to be installed.\nThis can be done by running the following commands: \n\n sudo apt-get install libopenexr-dev\n pip install --upgrade OpenEXR"]]