class pytorch3d.renderer.points.renderer.PointsRenderer(rasterizer, compositor)[source]

Bases: Module

A class for rendering a batch of points. The class should be initialized with a rasterizer and compositor class which each have a forward function.

The points are rendered with with varying alpha (weights) values depending on the distance of the pixel center to the true point in the xy plane. The purpose of this is to soften the hard decision boundary, for differentiability. See Section 3.2 of “SynSin: End-to-end View Synthesis from a Single Image” ( for more details.

forward(point_clouds, **kwargs) Tensor[source]