From 8c8004853ac2d5b41d0f08693dfd67df3bf69976 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005307016 Date: Fri, 17 Mar 2023 18:33:54 -0700 Subject: [PATCH] upgrade pyre version in `fbcode/vision` - batch 2 Differential Revision: D44182699 fbshipit-source-id: bdc5f495eaaee8ce461b91271d476d7b3ec3f8a2 --- pytorch3d/implicitron/tools/model_io.py | 1 + pytorch3d/loss/mesh_laplacian_smoothing.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pytorch3d/implicitron/tools/model_io.py b/pytorch3d/implicitron/tools/model_io.py index c08b86eb..f8410a87 100644 --- a/pytorch3d/implicitron/tools/model_io.py +++ b/pytorch3d/implicitron/tools/model_io.py @@ -147,6 +147,7 @@ def find_last_checkpoint( # pyre-fixme[61]: `fls` is undefined, or not always defined. fl = [f[0 : -len(ext)] + ".pth" for f in fls] else: + # pyre-fixme[61]: `ext` is undefined, or not always defined. fl = fls[-1][0 : -len(ext)] + ".pth" return fl diff --git a/pytorch3d/loss/mesh_laplacian_smoothing.py b/pytorch3d/loss/mesh_laplacian_smoothing.py index 5f4bea23..3ce9298a 100644 --- a/pytorch3d/loss/mesh_laplacian_smoothing.py +++ b/pytorch3d/loss/mesh_laplacian_smoothing.py @@ -124,6 +124,7 @@ def mesh_laplacian_smoothing(meshes, method: str = "uniform"): if method == "uniform": loss = L.mm(verts_packed) elif method == "cot": + # pyre-fixme[61]: `norm_w` is undefined, or not always defined. loss = L.mm(verts_packed) * norm_w - verts_packed elif method == "cotcurv": # pyre-fixme[61]: `norm_w` may not be initialized here.