Skip to content

Commit 1f39537

Browse files
Pyre Bot Jrfacebook-github-bot
Pyre Bot Jr
authored andcommitted
suppress errors in vision/fair/pytorch3d
Differential Revision: D36269817 fbshipit-source-id: 47b8a77747e8297af3731fd0a388d4c5432dc1ff
1 parent a6dada3 commit 1f39537

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pytorch3d/implicitron/evaluation/evaluate_new_view_synthesis.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ def eval_batch(
204204

205205
imode = "bilinear" if k == "image_render" else "nearest"
206206
cloned_render[k] = (
207-
F.interpolate(field[:1], size=image_resol, mode=imode).detach().clone()
207+
# pyre-fixme[6]: For 2nd param expected `Optional[int]` but got
208+
# `Tuple[Any, ...]`.
209+
F.interpolate(field[:1], size=image_resol, mode=imode)
210+
.detach()
211+
.clone()
208212
)
209213

210214
frame_data = copy.deepcopy(frame_data)
@@ -301,6 +305,8 @@ def eval_batch(
301305
# only record depth metrics for the foreground
302306
_, abs_ = eval_depth(
303307
cloned_render["depth_render"],
308+
# pyre-fixme[6]: For 2nd param expected `Tensor` but got
309+
# `Optional[Tensor]`.
304310
frame_data.depth_map,
305311
get_best_scale=True,
306312
mask=loss_mask_now,

0 commit comments

Comments
 (0)