From 355d6332cb4babcd702aa9ef44501319bedbff03 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005307016 Date: Tue, 11 Apr 2023 17:15:12 -0700 Subject: [PATCH] upgrade pyre version in `fbcode/vision` - batch 2 Differential Revision: D44881859 fbshipit-source-id: 4ed410724a14d580f811c1288f51a71ce8fb0c9a --- pytorch3d/implicitron/evaluation/evaluator.py | 1 + pytorch3d/implicitron/models/model_dbir.py | 2 ++ pytorch3d/implicitron/models/renderer/raymarcher.py | 2 ++ pytorch3d/renderer/mesh/textures.py | 6 ++++++ 4 files changed, 11 insertions(+) diff --git a/pytorch3d/implicitron/evaluation/evaluator.py b/pytorch3d/implicitron/evaluation/evaluator.py index 59981091..40a003f3 100644 --- a/pytorch3d/implicitron/evaluation/evaluator.py +++ b/pytorch3d/implicitron/evaluation/evaluator.py @@ -57,6 +57,7 @@ class ImplicitronEvaluator(EvaluatorBase): def __post_init__(self): run_auto_creation(self) + # pyre-fixme[14]: `run` overrides method defined in `EvaluatorBase` inconsistently. def run( self, model: ImplicitronModelBase, diff --git a/pytorch3d/implicitron/models/model_dbir.py b/pytorch3d/implicitron/models/model_dbir.py index 826731fc..4f470a6e 100644 --- a/pytorch3d/implicitron/models/model_dbir.py +++ b/pytorch3d/implicitron/models/model_dbir.py @@ -41,6 +41,8 @@ class ModelDBIR(ImplicitronModelBase): bg_color: Tuple[float, float, float] = (0.0, 0.0, 0.0) max_points: int = -1 + # pyre-fixme[14]: `forward` overrides method defined in `ImplicitronModelBase` + # inconsistently. def forward( self, *, # force keyword-only arguments diff --git a/pytorch3d/implicitron/models/renderer/raymarcher.py b/pytorch3d/implicitron/models/renderer/raymarcher.py index 3e42815d..dffc505a 100644 --- a/pytorch3d/implicitron/models/renderer/raymarcher.py +++ b/pytorch3d/implicitron/models/renderer/raymarcher.py @@ -111,6 +111,8 @@ class AccumulativeRaymarcherBase(RaymarcherBase, torch.nn.Module): "minimum": lambda curr, acc: torch.minimum(curr, acc), }[self.weight_function_type] + # pyre-fixme[14]: `forward` overrides method defined in `RaymarcherBase` + # inconsistently. def forward( self, rays_densities: torch.Tensor, diff --git a/pytorch3d/renderer/mesh/textures.py b/pytorch3d/renderer/mesh/textures.py index 5b96fd0e..67abf2ef 100644 --- a/pytorch3d/renderer/mesh/textures.py +++ b/pytorch3d/renderer/mesh/textures.py @@ -491,6 +491,8 @@ class TexturesAtlas(TexturesBase): new_tex._num_faces_per_mesh = new_props["_num_faces_per_mesh"] return new_tex + # pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase` + # inconsistently. def sample_textures(self, fragments, **kwargs) -> torch.Tensor: """ This is similar to a nearest neighbor sampling and involves a @@ -927,6 +929,8 @@ class TexturesUV(TexturesBase): new_tex._num_faces_per_mesh = new_props["_num_faces_per_mesh"] return new_tex + # pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase` + # inconsistently. def sample_textures(self, fragments, **kwargs) -> torch.Tensor: """ Interpolate a 2D texture map using uv vertex texture coordinates for each @@ -1450,6 +1454,8 @@ class TexturesVertex(TexturesBase): new_tex._num_verts_per_mesh = new_props["_num_verts_per_mesh"] return new_tex + # pyre-fixme[14]: `sample_textures` overrides method defined in `TexturesBase` + # inconsistently. def sample_textures(self, fragments, faces_packed=None) -> torch.Tensor: """ Determine the color for each rasterized face. Interpolate the colors for