--- id: tensorflow-graphics version: "2021.12.3" license: Apache 2.0 license_treatment: permissive maintenance: active --- # tensorflow-graphics — A library that contains well defined, reusable and cleanly written graphics related ops and utility functions for TensorFlow. License: permissive · Maintenance: active · Downloads: 132.2K/mo ## What it is and what it does TensorFlow Graphics bridges computer vision and graphics by providing differentiable layers that can be embedded in neural networks to jointly learn 3D scene understanding and rendering. It supplies primitives for cameras, materials, lighting, transformations, and mesh operations—enabling networks to reason about 3D geometry while training on unlabeled data through analysis-by-synthesis (rendering a predicted scene and comparing it to the input image). The library is built on TensorFlow and integrates with its graph and eager execution modes, making it suitable for research in self-supervised 3D learning, object pose estimation, material inference, and non-rigid deformation. The package depends on a large ecosystem: TensorFlow itself, TensorFlow Addons and Datasets, plus scientific libraries (NumPy, SciPy, h5py), visualization tools (Matplotlib, trimesh), and utilities (networkx, OpenEXR, absl-py, psutil, tqdm, termcolor). This means installation pulls in many transitive dependencies, but the wheel is pure Python and installs without compilation. Use it for: - Train 3D object pose estimation networks using differentiable rendering and self-supervised loss. - Optimize camera intrinsics and scene parameters by backpropagating through a differentiable graphics pipeline. - Build mesh convolution layers for semantic segmentation or shape analysis tasks in neural networks. - Implement non-rigid surface deformation models that learn from image data without 3D ground truth. - Visualize 3D meshes and point clouds during training using the TensorBoard 3D plugin for debugging. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. TensorFlow Graphics provides differentiable graphics and geometry layers—cameras, reflectance models, spatial transformations, mesh operations—that integrate into neural networks for 3D vision and graphics tasks. Yes, if you are building neural networks that reason about 3D geometry or rendering. The library is actively maintained, has no known vulnerabilities, and offers well-integrated differentiable graphics primitives. Install friction is low for the wheel itself, but the dependency stack is substantial; verify TensorFlow version compatibility with your project first, and note that the TensorBoard 3D plugin has known limitations with eager execution. ## Install pip install tensorflow-graphics uv add tensorflow-graphics poetry add tensorflow-graphics ## Installing tensorflow-graphics Before you install: Low friction; pure Python wheel. Depends on TensorFlow and a substantial stack (tensorflow-addons, tensorflow-datasets, scipy, trimesh, networkx, OpenEXR, h5py, matplotlib), so installation time and disk footprint are non-trivial. Maintained actively as of July 2026. License in practice: Apache 2.0 permissive license allows commercial and private use without restriction, making it suitable for production and research projects. Quickstart: pip install tensorflow-graphics import tensorflow_graphics as tfg # Example: use tfg.geometry.transformation for 3D transformations transformed = tfg.geometry.transformation.quaternion.rotate(points, quaternion) Requires TensorFlow and its ecosystem (tensorflow-addons, tensorflow-datasets); OpenEXR system library may need separate installation on some platforms. Verify before relying: - Current compatibility with TensorFlow 2.x versions beyond the 2021 release date. - Whether TensorBoard 3D plugin (noted as incompatible with eager execution and TF 2 in the description) has been updated. - Performance characteristics and scalability limits for large-scale 3D mesh operations. ## Package facts - License: Apache 2.0 (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 132.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags differentiable graphics tensorflow, 3D neural networks geometry, mesh convolutions deep learning, differentiable rendering, 3D computer vision tensorflow, geometric deep learning, camera pose estimation neural networks, 3d-graphics, differentiable-rendering, geometric-learning [View on SkillFed](https://skillfed.io/packages/tensorflow-graphics) · [View on PyPI](https://pypi.org/project/tensorflow-graphics/)