avoid deprecated raysamplers

Summary: Migrate away from NDCGridRaysampler and GridRaysampler to their more flexible replacements.

Reviewed By: patricklabatut

Differential Revision: D33281584

fbshipit-source-id: 65f8702e700a32d38f7cd6bda3924bb1707a0633
This commit is contained in:
Jeremy Reizenstein
2022-01-24 10:51:03 -08:00
committed by Facebook GitHub Bot
parent 3eb4233844
commit 67778caee8
6 changed files with 30 additions and 30 deletions

View File

@@ -10,7 +10,7 @@ import torch
from common_testing import TestCaseMixin
from pytorch3d.renderer import (
MeshRasterizer,
NDCGridRaysampler,
NDCMultinomialRaysampler,
PerspectiveCameras,
PointsRasterizationSettings,
PointsRasterizer,
@@ -172,7 +172,7 @@ class TestPixels(TestCaseMixin, unittest.TestCase):
def test_raysampler(self):
data = _CommonData()
gridsampler = NDCGridRaysampler(
gridsampler = NDCMultinomialRaysampler(
image_width=data.W,
image_height=data.H,
n_pts_per_ray=2,