mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
fix pts scale, save ply
Summary: Fix: * Scaling of point clouds for scalars * save_ply compatible cat Reviewed By: nikhilaravi Differential Revision: D22298609 fbshipit-source-id: abe94a5b64baf325587202d20adfc36912cc1478
This commit is contained in:
committed by
Facebook GitHub Bot
parent
275ddade66
commit
2f0fd60186
@@ -783,7 +783,11 @@ def save_ply(
|
||||
decimal_places: Number of decimal places for saving.
|
||||
"""
|
||||
|
||||
verts_normals = torch.FloatTensor([]) if verts_normals is None else verts_normals
|
||||
verts_normals = (
|
||||
torch.tensor([], dtype=torch.float32, device=verts.device)
|
||||
if verts_normals is None
|
||||
else verts_normals
|
||||
)
|
||||
faces = torch.LongTensor([]) if faces is None else faces
|
||||
|
||||
if len(verts) and not (verts.dim() == 2 and verts.size(1) == 3):
|
||||
|
||||
Reference in New Issue
Block a user