From 0c3599e8ee0fea4e8b8135131bb6381acd2fee61 Mon Sep 17 00:00:00 2001 From: David Novotny Date: Mon, 1 Aug 2022 04:53:59 -0700 Subject: [PATCH] Correct MC rasterization pt. radius Summary: Fixes the MC rasterization bug Reviewed By: bottler Differential Revision: D38312234 fbshipit-source-id: 910cf809ef3faff3de7a8d905b0821f395a52edf --- pytorch3d/implicitron/models/generic_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch3d/implicitron/models/generic_model.py b/pytorch3d/implicitron/models/generic_model.py index 7b85780a..0340e0d1 100644 --- a/pytorch3d/implicitron/models/generic_model.py +++ b/pytorch3d/implicitron/models/generic_model.py @@ -838,7 +838,7 @@ class GenericModel(ImplicitronModelBase): # pyre-ignore: 13 # Estimate the rasterization point radius so that we approximately fill # the whole image given the number of rasterized points. - pt_radius = 2.0 * math.sqrt(xys.shape[1]) + pt_radius = 2.0 / math.sqrt(xys.shape[1]) # Rasterize the samples. features_depth_render, masks_render = rasterize_mc_samples(