3. You may add addition that may be helpful for locating the problem, such as
- How you installed PyTorch \[e.g., pip, conda, source\]
- Other environment variables that may be related (such as `$PATH`, `$LD_LIBRARY_PATH`, `$PYTHONPATH`, etc.)
**Error traceback**
If applicable, paste the error trackback here.
[Open3D WARNING] GLFW Error: X11: The DISPLAY environment variable is missing
[Open3D WARNING] Failed to initialize GLFW
Traceback (most recent call last):
File "demo/pcd_demo.py", line 64, in
main(args)
File "demo/pcd_demo.py", line 50, in main
visualizer.add_datasample(
File "/opt/conda/envs/torch1.10.0/lib/python3.8/site-packages/mmengine/dist/utils.py", line 360, in wrapper
return func(*args, *kwargs)
File "/root/workspace/mmdetection3d/mmdet3d/visualization/local_visualizer.py", line 754, in add_datasample
pred_data_3d = self._draw_instances_3d(data_input,
File "/root/workspace/mmdetection3d/mmdet3d/visualization/local_visualizer.py", line 575, in _draw_instances_3d
self.set_points(points, pcd_mode=2)
File "/opt/conda/envs/torch1.10.0/lib/python3.8/site-packages/mmengine/dist/utils.py", line 360, in wrapper
return func(args, **kwargs)
File "/root/workspace/mmdetection3d/mmdet3d/visualization/local_visualizer.py", line 197, in set_points
self.o3d_vis.get_render_option().point_size = points_size
AttributeError: 'NoneType' object has no attribute 'point_size'
**Bug fix**
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug visualization failed on headless server
Reproduction
Environment
python mmdet3d/utils/collect_env.py
to collect necessary environment information and paste it here.TorchVision: 0.11.0+cu113 OpenCV: 4.5.5 MMEngine: 0.7.2 MMDetection: 3.0.0 MMDetection3D: 1.1.0+47e56e1 spconv2.0: False
[Open3D WARNING] GLFW Error: X11: The DISPLAY environment variable is missing [Open3D WARNING] Failed to initialize GLFW Traceback (most recent call last): File "demo/pcd_demo.py", line 64, in
main(args)
File "demo/pcd_demo.py", line 50, in main
visualizer.add_datasample(
File "/opt/conda/envs/torch1.10.0/lib/python3.8/site-packages/mmengine/dist/utils.py", line 360, in wrapper
return func(*args, *kwargs)
File "/root/workspace/mmdetection3d/mmdet3d/visualization/local_visualizer.py", line 754, in add_datasample
pred_data_3d = self._draw_instances_3d(data_input,
File "/root/workspace/mmdetection3d/mmdet3d/visualization/local_visualizer.py", line 575, in _draw_instances_3d
self.set_points(points, pcd_mode=2)
File "/opt/conda/envs/torch1.10.0/lib/python3.8/site-packages/mmengine/dist/utils.py", line 360, in wrapper
return func(args, **kwargs)
File "/root/workspace/mmdetection3d/mmdet3d/visualization/local_visualizer.py", line 197, in set_points
self.o3d_vis.get_render_option().point_size = points_size
AttributeError: 'NoneType' object has no attribute 'point_size'