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.