Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error with function vis_utils.plot_single_pcd #23

Open
Yuchen-Tao opened this issue Nov 12, 2021 · 0 comments
Open

Error with function vis_utils.plot_single_pcd #23

Yuchen-Tao opened this issue Nov 12, 2021 · 0 comments

Comments

@Yuchen-Tao
Copy link

Yuchen-Tao commented Nov 12, 2021

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant