Skip to content

Commit

Permalink
Update open3d interface in completion example visualization (#184)
Browse files Browse the repository at this point in the history
* Update resnet.py

remove dimension from `MinkowskiGlobalMaxPooling`

* update open3d api
  • Loading branch information
rancheng authored Jul 23, 2020
1 parent 423f526 commit 6b6a2df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,11 @@ def visualize(net, dataloader, device, config):
pcd = PointCloud(coords)
pcd.estimate_normals()
pcd.translate([0.6 * config.resolution, 0, 0])
pcd.rotate(M)
pcd.rotate(M, np.array([[0.0],[0.0],[0.0]]))
opcd = PointCloud(data_dict['cropped_coords'][b])
opcd.translate([-0.6 * config.resolution, 0, 0])
opcd.estimate_normals()
opcd.rotate(M)
opcd.rotate(M, np.array([[0.0],[0.0],[0.0]]))
o3d.visualization.draw_geometries([pcd, opcd])

n_vis += 1
Expand Down

0 comments on commit 6b6a2df

Please sign in to comment.