paul007pl / MVP_Benchmark

MVP Benchmark for Multi-View Partial Point Cloud Completion and Registration
https://mvp-dataset.github.io/
Apache License 2.0
116 stars 10 forks source link

Error with function vis_utils.plot_single_pcd #23

Open Yuchen-Tao opened 2 years ago

Yuchen-Tao commented 2 years ago

Hi,

Thank you for the amazing work. I tried to use the function plot_single_pcd to plot a point cloud from the training dataset, and I got the following error:


NotImplementedError                 Traceback (most recent call last)
<ipython-input-12-768b3faf1813> in <module>
----> 1 plot_single_pcd(Input['incomplete_pcds'][1],'incomplete.png')

~/internship/MVP_Benchmark/completion/vis_utils.py in plot_single_pcd(points, save_path)
     36     fig = plt.figure()
     37     ax = fig.add_subplot(111, projection='3d')
---> 38     ax.set_aspect('equal')
     39     pcd = o3d.geometry.PointCloud(o3d.utility.Vector3dVector(points))
     40     rotation_matrix = np.asarray([[1, 0, 0, 0], [0, 0, -1, 0], [0, 1, 0, 0], [0, 0, 0, 1]])

~/anaconda3/lib/python3.8/site-packages/mpl_toolkits/mplot3d/axes3d.py in set_aspect(self, aspect, adjustable, anchor, share)
    321         """
    322         if aspect != 'auto':
--> 323             raise NotImplementedError(
    324                 "Axes3D currently only supports the aspect argument "
    325                 f"'auto'. You passed in {aspect!r}."

NotImplementedError: Axes3D currently only supports the aspect argument 'auto'. You passed in 'equal'.

Then I changed 'equal' to 'auto', and the error disappeared. Seems like a bug?