examples and docs.

Summary: This diff updates the documentation and tutorials with information about the new pulsar backend. For more information about the pulsar backend, see the release notes and the paper (https://arxiv.org/abs/2004.07484). For information on how to use the backend, see the point cloud rendering notebook and the examples in the folder docs/examples.

Reviewed By: nikhilaravi

Differential Revision: D24498129

fbshipit-source-id: e312b0169a72b13590df6e4db36bfe6190d742f9
This commit is contained in:
Christoph Lassner
2020-11-03 13:05:02 -08:00
committed by Facebook GitHub Bot
parent 960fd6d8b6
commit 039e02601d
21 changed files with 759 additions and 60 deletions

View File

@@ -7,7 +7,12 @@ pulsar interface. For this, reference images have been pre-generated
The camera parameters are assumed given. The scene is initialized with
random spheres. Gradient-based optimization is used to optimize sphere
parameters and prune spheres to converge to a 3D representation.
This example is not available yet through the 'unified' interface,
because opacity support has not landed in PyTorch3D for general data
structures yet.
"""
import math
from os import path
import cv2
@@ -77,7 +82,7 @@ class SceneModel(nn.Module):
0.0,
30.0 - np.cos(angle) * 35.0,
0.0,
-angle,
-angle + math.pi,
0.0,
5.0,
2.0,
@@ -87,7 +92,7 @@ class SceneModel(nn.Module):
dtype=torch.float32,
),
)
self.renderer = Renderer(width, height, n_points)
self.renderer = Renderer(width, height, n_points, right_handed_system=True)
def forward(self, cam=None):
if cam is None:
@@ -184,7 +189,7 @@ for i in range(300):
0.0,
30.0 - np.cos(angle) * 35.0,
0.0,
-angle,
-angle + math.pi,
0.0,
5.0,
2.0,