From 44d2a9b623d7559e98688afb1c4c99aa620b1873 Mon Sep 17 00:00:00 2001 From: Pyre Bot Jr <> Date: Tue, 6 Jul 2021 17:28:41 -0700 Subject: [PATCH] suppress errors in `vision/fair/pytorch3d` Differential Revision: D29573014 fbshipit-source-id: 87083e30d757fcceb4e380edc9973e07e6da6c76 --- pytorch3d/ops/points_to_volumes.py | 2 -- pytorch3d/renderer/blending.py | 1 - 2 files changed, 3 deletions(-) diff --git a/pytorch3d/ops/points_to_volumes.py b/pytorch3d/ops/points_to_volumes.py index 4e29fec1..3a27ebc0 100644 --- a/pytorch3d/ops/points_to_volumes.py +++ b/pytorch3d/ops/points_to_volumes.py @@ -385,7 +385,6 @@ def splat_points_to_volumes( volume_features.scatter_add_(2, idx_valid, w_valid * points_features) # divide each feature by the total weight of the votes - # pyre-fixme[20]: Argument `max` expected. volume_features = volume_features / volume_densities.view(ba, 1, n_voxels).clamp( min_weight ) @@ -495,7 +494,6 @@ def round_points_to_volumes( volume_features.scatter_add_(2, idx_valid, w_valid * points_features) # divide each feature by the total weight of the votes - # pyre-fixme[20]: Argument `max` expected. volume_features = volume_features / volume_densities.view(ba, 1, n_voxels).clamp( 1.0 ) diff --git a/pytorch3d/renderer/blending.py b/pytorch3d/renderer/blending.py index d91a4969..8bc26ea0 100644 --- a/pytorch3d/renderer/blending.py +++ b/pytorch3d/renderer/blending.py @@ -209,7 +209,6 @@ def softmax_rgb_blend( # Also apply exp normalize trick for the background color weight. # Clamp to ensure delta is never 0. - # pyre-fixme[20]: Argument `max` expected. # pyre-fixme[6]: Expected `Tensor` for 1st param but got `float`. delta = torch.exp((eps - z_inv_max) / blend_params.gamma).clamp(min=eps)