skillfed

tensorflow-graphics

A library that contains well defined, reusable and cleanly written graphics related ops and utility functions for TensorFlow.

tensorflow-graphics v2021.12.3 132.2K downloads/30d#11,563 on PyPI2,781
Permissive license Apache 2.0 Active released

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 on this page — 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

tensorflow-graphics on PyPI

pip

pip install tensorflow-graphics

uv

uv add tensorflow-graphics

poetry

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 not specified
Install friction low — pure-Python wheel
Runtime dependencies 14 — tensorflow, tensorflow-addons, tensorflow-datasets, absl-py, h5py, matplotlib, numpy, psutil, scipy, tqdm, OpenEXR, termcolor, trimesh, networkx
Maintenance actively maintained — 1,715 days since the last release
Last repo commit
First released
Downloads 132,180/month — #11,563 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: tensorflow_graphics-2021.12.3-py3-none-any.whl

Keywords: machine learning, tensorflow, graphics, geometry, 3D

Development Status :: 5 - Production/StableProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Mathematics

Tags

differentiable graphics tensorflow3D neural networks geometrymesh convolutions deep learningdifferentiable rendering3D computer vision tensorflowgeometric deep learningcamera pose estimation neural networks
3d-graphicsdifferentiable-renderinggeometric-learning

More Artificial Intelligence packages

Further reading