From 85eccbbf7742e2bf59864086fe7b141bf9170da8 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005307016 Date: Thu, 25 Jan 2024 21:13:30 -0800 Subject: [PATCH] suppress errors in `vision/fair/pytorch3d` Differential Revision: D53111480 fbshipit-source-id: 0f506bf29cf908e40b058ae72f51e828cd597825 --- pytorch3d/implicitron/models/visualization/render_flyaround.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytorch3d/implicitron/models/visualization/render_flyaround.py b/pytorch3d/implicitron/models/visualization/render_flyaround.py index 2a3afadb..a3164c13 100644 --- a/pytorch3d/implicitron/models/visualization/render_flyaround.py +++ b/pytorch3d/implicitron/models/visualization/render_flyaround.py @@ -304,6 +304,7 @@ def _show_predictions( pred_all = [] # Randomly choose a subset of the rendered images, sort by ordr in the sequence n_samples = min(n_samples, len(preds)) + # pyre-fixme[20]: Argument `k` expected. pred_idx = sorted(random.sample(list(range(len(preds))), n_samples)) for predi in pred_idx: # Make the concatentation for the same camera vertically