facebookresearch /pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data

★ 9,999⑂ 1,483👁 148⑃ 231● 1,695▤ 20
PythonNOASSERTIONCreated 2019-10-25pytorch3d.org/
下载:Version 0.7.9Version-0.7.9 ↓0.7.92025-11-28
+2
日增长
9,999
stars
1,483
forks
148
watchers
231
prs
1,695
issues
20
releases

README

Introduction

PyTorch3D provides efficient, reusable components for 3D Computer Vision research with PyTorch.

Key features include:

- Data structure for storing and manipulating triangle meshes
- Efficient operations on triangle meshes (projective transformations, graph convolution, sampling, loss functions)
- A differentiable mesh renderer
- Implicitron, see its README, a framework for new-view synthesis via implicit representations. (blog post)

PyTorch3D is designed to integrate smoothly with deep learning methods for predicting and manipulating 3D data.
For this reason, all operators in PyTorch3D:

- Are implemented using PyTorch tensors
- Can handle minibatches of hetereogenous data
- Can be differentiated
- Can utilize GPUs for acceleration

Within FAIR, PyTorch3D has been used to power research projects such as Mesh R-CNN.

See our blog post to see more demos and learn about PyTorch3D.

 Installation

For detailed instructions refer to INSTALL.md.

 License

PyTorch3D is released under the BSD License.

 Tutorials

Get started with PyTorch3D by trying one of the tutorial notebooks.

|||
|:-----------------------------------------------------------------------------------------------------------:|:--------------------------------------------------:|
| Deform a sphere mesh to dolphin| Bundle adjustment |

|  | 
|:------------------------------------------------------------:|:--------------------------------------------------:|
| Render textured meshes| Camera position optimization|

|  | 
|:------------------------------------------------------------:|:--------------------------------------------------:|
| Render textured pointclouds| Fit a mesh with texture|

|  | 
|:------------------------------------------------------------:|:--------------------------------------------------:|
| Render DensePose data| Load & Render ShapeNet data|

|  | 
|:------------------------------------------------------------:|:--------------------------------------------------:|
| Fit Textured Volume| Fit A Simple Neural Radiance Field|

|  | 
|:------------------------------------------------------------:|:--------------------------------------------------:|
| Fit Textured Volume in Implicitron| Implicitron Config System|





 Documentation

Learn more about the API by reading the PyTorch3D documentation.

We also have deep dive notes on several API components:

- Heterogeneous Batching
- Mesh IO
- Differentiable Rendering

 Overview Video

We have created a short (~14 min) video tutorial providing an overview of the PyTorch3D codebase including several code examples. Click on the image below to watch the video on YouTube:



 Development

We welcome new contributions to PyTorch3D and we will be actively maintaining this library! Please refer to CONTRIBUTING.md for full instructions on how to run the code, tests and linter, and submit your pull requests.

 Development and Compatibility

- main branch: actively developed, without any guarantee, Anything can be

Top issues

Discussions

Latest release

Version 0.7.9 v0.7.9 2025-11-28
Miscellaneous fixes and improvements.

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON