mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 11:52:50 +08:00
suppress errors in fbcode/vision
- batch 2
Differential Revision: D32509948 fbshipit-source-id: 762ad27c7e6c76c30eb97fd44f1739295f63b98b
This commit is contained in:
parent
7ce18f38cd
commit
a8cb7fa862
@ -839,8 +839,10 @@ def _get_verts_column_indices(
|
|||||||
color_scale = 1.0 / 255
|
color_scale = 1.0 / 255
|
||||||
return (
|
return (
|
||||||
point_idxs,
|
point_idxs,
|
||||||
|
# pyre-fixme[22]: The cast is redundant.
|
||||||
None if None in color_idxs else cast(List[int], color_idxs),
|
None if None in color_idxs else cast(List[int], color_idxs),
|
||||||
color_scale,
|
color_scale,
|
||||||
|
# pyre-fixme[22]: The cast is redundant.
|
||||||
None if None in normal_idxs else cast(List[int], normal_idxs),
|
None if None in normal_idxs else cast(List[int], normal_idxs),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -79,6 +79,7 @@ def _opencv_from_cameras_projection(
|
|||||||
scale = scale.expand(-1, 2)
|
scale = scale.expand(-1, 2)
|
||||||
c0 = (image_size_wh - 1) / 2.0
|
c0 = (image_size_wh - 1) / 2.0
|
||||||
|
|
||||||
|
# pyre-fixme[29]: `Union[BoundMethod[typing.Callable(torch.Tensor.__neg__)[[Named...
|
||||||
principal_point = -p0_pytorch3d * scale + c0
|
principal_point = -p0_pytorch3d * scale + c0
|
||||||
focal_length = focal_pytorch3d * scale
|
focal_length = focal_pytorch3d * scale
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user