การติดตั้ง TensorFlow Graphics

โครงสร้างที่มั่นคง

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