การติดตั้งกราฟิก TensorFlow
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
งานสร้างที่มั่นคง
กราฟิก TensorFlow ขึ้นอยู่กับ TensorFlow 1.13.1 หรือสูงกว่า นอกจากนี้ยังรองรับการสร้าง TensorFlow ทุกคืน (tf-nightly) อีกด้วย
หากต้องการติดตั้ง CPU เวอร์ชันล่าสุดจาก PyPI ให้รันสิ่งต่อไปนี้:
# 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 และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 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"]]