mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-22 07:10:34 +08:00
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:
committed by
Facebook GitHub Bot
parent
3eb4233844
commit
67778caee8
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user