mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
suppress errors in vision/fair/pytorch3d
Differential Revision: D36269817 fbshipit-source-id: 47b8a77747e8297af3731fd0a388d4c5432dc1ff
This commit is contained in:
parent
a6dada399d
commit
1f3953795c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user