Skip to content

Commit 5a1d714

Browse files
bottlerfacebook-github-bot
authored andcommitted
post-release v0.1.1 updates.
Reviewed By: nikhilaravi Differential Revision: D20218481 fbshipit-source-id: b153282cc30ad75de970c89ae64526b6be62ee95
1 parent 112d32e commit 5a1d714

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

INSTALL.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ pip install scikit-image matplotlib imageio
4545
pip install black isort flake8 flake8-bugbear flake8-comprehensions
4646
```
4747

48-
## Build/Install Pytorch3d
48+
## Installing prebuilt binaries for Pytorch3d
4949
After installing the above dependencies, run one of the following commands:
5050

51-
### 1. Install from Anaconda Cloud
51+
### 1. Install with CUDA support from Anaconda Cloud, on Linux only
5252

5353
```
5454
# Anaconda Cloud
@@ -60,14 +60,26 @@ Or, to install a nightly (non-official, alpha) build:
6060
# Anaconda Cloud
6161
conda install pytorch3d -c pytorch3d-nightly
6262
```
63+
### 2. Install without CUDA support from PyPI, on Linux and Mac
64+
```
65+
pip install pytorch3d
66+
```
67+
68+
## Building / installing from source.
69+
CUDA support will be included if CUDA is enabled or if the environment variable
70+
`FORCE_CUDA` is set to `1`.
6371

64-
### 2. Install from GitHub
72+
### 1. Install from GitHub
6573
```
6674
pip install 'git+https://github.com/facebookresearch/pytorch3d.git'
67-
# (add --user if you don't have permission)
6875
```
6976

70-
### 3. Install from a local clone
77+
**Install from Github on macOS:**
78+
```
79+
MACOSX_DEPLOYMENT_TARGET=10.14 CC=clang CXX=clang++ pip install 'git+https://github.com/facebookresearch/pytorch3d.git'
80+
```
81+
82+
### 2. Install from a local clone
7183
```
7284
git clone https://github.com/facebookresearch/pytorch3d.git
7385
cd pytorch3d && pip install -e .

pytorch3d/renderer/mesh/renderer.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ def __init__(self, rasterizer, shader):
3838

3939
def forward(self, meshes_world, **kwargs) -> torch.Tensor:
4040
"""
41-
Render a batch of images from a batch of meshes by rasterizing and then shading.
41+
Render a batch of images from a batch of meshes by rasterizing and then
42+
shading.
4243
43-
NOTE: If the blur radius for rasterization is > 0.0, some pixels can have one or
44-
more barycentric coordinates lying outside the range [0, 1]. For a pixel with
45-
out of bounds barycentric coordinates with respect to a face f, clipping is required
46-
before interpolating the texture uv coordinates and z buffer so that the colors and
47-
depths are limited to the range for the corresponding face.
44+
NOTE: If the blur radius for rasterization is > 0.0, some pixels can
45+
have one or more barycentric coordinates lying outside the range [0, 1].
46+
For a pixel with out of bounds barycentric coordinates with respect to a
47+
face f, clipping is required before interpolating the texture uv
48+
coordinates and z buffer so that the colors and depths are limited to
49+
the range for the corresponding face.
4850
"""
4951
fragments = self.rasterizer(meshes_world, **kwargs)
5052
raster_settings = kwargs.get(

0 commit comments

Comments
 (0)