安装 TensorFlow Graphics
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
稳定版本
TensorFlow Graphics 依赖于 TensorFlow 1.13.1 或更高版本。此外,它还支持 Nightly 版本的 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 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-06-07。
[null,null,["最后更新时间 (UTC):2022-06-07。"],[],[],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"]]