"clients/vscode:/vscode.git/clone" did not exist on "b9e33c4953dc237b224b5a4b3a268b799b3e3744"
Commit 1f395379 authored by Pyre Bot Jr's avatar Pyre Bot Jr Committed by Facebook GitHub Bot
Browse files

suppress errors in `vision/fair/pytorch3d`

Differential Revision: D36269817

fbshipit-source-id: 47b8a77747e8297af3731fd0a388d4c5432dc1ff
parent a6dada39
......@@ -204,7 +204,11 @@ def eval_batch(
imode = "bilinear" if k == "image_render" else "nearest"
cloned_render[k] = (
F.interpolate(field[:1], size=image_resol, mode=imode).detach().clone()
# pyre-fixme[6]: For 2nd param expected `Optional[int]` but got
# `Tuple[Any, ...]`.
F.interpolate(field[:1], size=image_resol, mode=imode)
.detach()
.clone()
)
frame_data = copy.deepcopy(frame_data)
......@@ -301,6 +305,8 @@ def eval_batch(
# only record depth metrics for the foreground
_, abs_ = eval_depth(
cloned_render["depth_render"],
# pyre-fixme[6]: For 2nd param expected `Tensor` but got
# `Optional[Tensor]`.
frame_data.depth_map,
get_best_scale=True,
mask=loss_mask_now,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment