charlesq34 / frustum-pointnets

Frustum PointNets for 3D Object Detection from RGB-D Data
Apache License 2.0
1.59k stars 538 forks source link

Problem when runing mayavi/test_drawline.py #50

Closed licj15 closed 5 years ago

licj15 commented 6 years ago

Hi friends, I want to run mayavi/test_drawline.py on my remote machine via Xvnc. This is no error about OpenGL like we may meet if we use ssh-X. But there is an error said:

Xlib: extension "XInputExtension" missing on display ":1". Segmentation fault (core dumped) I am not familiar with the X-server series. So does anyone know how to solve it or meet the same problem?

walzimmer commented 6 years ago

You cannot use mayavi visualizations if you are remotely connected to your machine.

Instead, save the visualization on your machine as jpg and transfer is to your local machine with scp.

Replace this line: l = plot3d(x, y, z, numpy.sin(mu), tube_radius=0.025, colormap='Spectral') with: fig = mlab.figure(figure=None, bgcolor=(0, 0, 0), fgcolor=None, engine=None, size=(1600, 1000)) mlab.plot3d(x, y, z, numpy.sin(mu), tube_radius=0.025, colormap='Spectral', figure=fig) mlab.savefig('draw_line.jpg', figure=fig)

licj15 commented 6 years ago

Thanks a lot, this provides a good solution to see what happens to point cloud on my local machine.

sisrfeng commented 3 years ago

from mayavi import mlab causes sunrgbd_data.py: cannot connect to X server