mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-22 23:30:35 +08:00
suppress errors in fbcode/vision - batch 2
Differential Revision: D29458533 fbshipit-source-id: d9ef216fdbb677e49371ad91ea5e9355146c1c52
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b8790474f1
commit
14f7fe4a65
@@ -463,7 +463,6 @@ def round_points_to_volumes(
|
||||
|
||||
# valid - binary indicators of votes that fall into the volume
|
||||
grid_sizes = grid_sizes.type_as(XYZ)
|
||||
# pyre-fixme[16]: `int` has no attribute `long`.
|
||||
valid = (
|
||||
(0 <= X)
|
||||
* (X < grid_sizes_xyz[:, None, 0:1])
|
||||
|
||||
@@ -137,10 +137,14 @@ def sample_points_from_meshes(
|
||||
# return
|
||||
# TODO(gkioxari) consider returning a Pointclouds instance [breaking]
|
||||
if return_normals and return_textures:
|
||||
# pyre-fixme[61]: `normals` may not be initialized here.
|
||||
# pyre-fixme[61]: `textures` may not be initialized here.
|
||||
return samples, normals, textures
|
||||
if return_normals: # return_textures is False
|
||||
# pyre-fixme[61]: `normals` may not be initialized here.
|
||||
return samples, normals
|
||||
if return_textures: # return_normals is False
|
||||
# pyre-fixme[61]: `textures` may not be initialized here.
|
||||
return samples, textures
|
||||
return samples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user